Commit b067dd86 by 章家宝

feat:插入标签的时候新增更新时间和创建时间

1 parent f2df0a7d
......@@ -22,6 +22,7 @@ import org.springframework.util.CollectionUtils;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
/**
......@@ -146,6 +147,9 @@ public class CustomerTagProfileService {
profile.setSourceType(SOURCE_TYPE_ARCHIVE);
profile.setSourceRefId(String.valueOf(carSeriesId));
profile.setDeletedFlag("N");
profile.setUpdateTime(new Date());
profile.setCreateTime(new Date());
// 先删除该用户已有的建档标签(物理删除)
customerTagProfileMapper.deleteByPhoneAndCategoryCode(phone, CATEGORY_CODE_INIT);
......@@ -438,6 +442,8 @@ public class CustomerTagProfileService {
profile.setSourceType(SOURCE_TYPE_ARCHIVE_SYNC);
profile.setSourceRefId(String.valueOf(carSeriesId));
profile.setDeletedFlag("N");
profile.setUpdateTime(new Date());
profile.setCreateTime(new Date());
return profile;
......
......@@ -473,7 +473,8 @@ public class InspectionCustomerTagSyncService {
profile.setSourceType(SOURCE_TYPE_AI);
profile.setSourceRefId(String.valueOf(recordId));
profile.setDeletedFlag("N");
profile.setUpdateTime(new Date());
profile.setCreateTime(new Date());
result.add(profile);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!