v1.0.18 #27

Merged
timi merged 6 commits from dev into master 2026-08-20 17:40:22 +00:00
2 changed files with 13 additions and 0 deletions
Showing only changes of commit 7808d22775 - Show all commits
@@ -3,6 +3,7 @@ package com.imyeyu.api.modules.gao.entity;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.JsonNode;
import com.imyeyu.api.modules.common.entity.Attachment; import com.imyeyu.api.modules.common.entity.Attachment;
import com.imyeyu.api.modules.common.entity.TagApply;
import com.imyeyu.api.modules.user.bean.Gender; import com.imyeyu.api.modules.user.bean.Gender;
import com.imyeyu.api.modules.user.entity.User; import com.imyeyu.api.modules.user.entity.User;
import com.imyeyu.java.TimiJava; import com.imyeyu.java.TimiJava;
@@ -109,6 +110,9 @@ public class GaoCustomer extends UUIDEntity {
@Transient @Transient
private List<GaoEventRecord> eventRecordList; private List<GaoEventRecord> eventRecordList;
@Transient
private TagApply tagApply;
public boolean hasIntroducer() { public boolean hasIntroducer() {
return TimiJava.isNotEmpty(introducerCustomerId); return TimiJava.isNotEmpty(introducerCustomerId);
} }
@@ -121,6 +121,10 @@ public class GaoCustomerServiceImplement extends AbstractEntityService<GaoCustom
customer.setCreatorUserId(userLoginService.getRequireLoginUserId()); customer.setCreatorUserId(userLoginService.getRequireLoginUserId());
super.create(customer); super.create(customer);
// 标签
if (customer.getTagApply() != null) {
tagService.apply(TagApply.BizType.GAO_CUSTOMER, customer.getId(), customer.getTagApply().getTagIdList());
}
// 附件 // 附件
attachmentService.updateByBizId(Attachment.BizType.GAO_CUSTOMER, customer.getId(), customer.getAttachmentList()); attachmentService.updateByBizId(Attachment.BizType.GAO_CUSTOMER, customer.getId(), customer.getAttachmentList());
@@ -178,6 +182,11 @@ public class GaoCustomerServiceImplement extends AbstractEntityService<GaoCustom
dbCustomer.setConditioningPart(customer.getConditioningPart()); dbCustomer.setConditioningPart(customer.getConditioningPart());
mapper.update(dbCustomer); mapper.update(dbCustomer);
// 标签
if (customer.getTagApply() != null) {
tagService.apply(TagApply.BizType.GAO_CUSTOMER, customer.getId(), customer.getTagApply().getTagIdList());
}
logger.setLevel(Logger.Level.INFO); logger.setLevel(Logger.Level.INFO);
logger.setResult(customer.getId()); logger.setResult(customer.getId());
} catch (TimiException e) { } catch (TimiException e) {