Browse Source

客户信息导入创建人字段维护

pull/2/head
汤建军 10 months ago
parent
commit
72ffb92316
  1. 4
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java

4
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java

@ -33,6 +33,8 @@ import lombok.extern.slf4j.Slf4j;
import org.springblade.common.constant.DictBizConstant; import org.springblade.common.constant.DictBizConstant;
import org.springblade.core.log.exception.ServiceException; import org.springblade.core.log.exception.ServiceException;
import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.core.tool.utils.BeanUtil; import org.springblade.core.tool.utils.BeanUtil;
import org.springblade.system.cache.DictBizCache; import org.springblade.system.cache.DictBizCache;
import org.springblade.system.entity.DictBiz; import org.springblade.system.entity.DictBiz;
@ -333,7 +335,9 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl<BasicdataClientM
//查询是不是重复 //查询是不是重复
List<BasicdataClientEntity> basicdataClientEntities = baseMapper.selectList(Wrappers.<BasicdataClientEntity>query().lambda().eq(BasicdataClientEntity::getClientCode, i.getClientCode())); List<BasicdataClientEntity> basicdataClientEntities = baseMapper.selectList(Wrappers.<BasicdataClientEntity>query().lambda().eq(BasicdataClientEntity::getClientCode, i.getClientCode()));
if(basicdataClientEntities.isEmpty()){ if(basicdataClientEntities.isEmpty()){
BladeUser user = AuthUtil.getUser();
basicdataClient.setPid(0L); basicdataClient.setPid(0L);
basicdataClient.setCreateUser(user.getUserId());
basicdataClient.setCargoControl(false); basicdataClient.setCargoControl(false);
basicdataClient.setStatus(0); basicdataClient.setStatus(0);
basicdataClient.setIsDeleted(0); basicdataClient.setIsDeleted(0);

Loading…
Cancel
Save