diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java index 3ca0cc29f..7a7148d77 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataClientServiceImpl.java +++ b/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.core.log.exception.ServiceException; 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.system.cache.DictBizCache; import org.springblade.system.entity.DictBiz; @@ -333,7 +335,9 @@ public class BasicdataClientServiceImpl extends BaseServiceImpl basicdataClientEntities = baseMapper.selectList(Wrappers.query().lambda().eq(BasicdataClientEntity::getClientCode, i.getClientCode())); if(basicdataClientEntities.isEmpty()){ + BladeUser user = AuthUtil.getUser(); basicdataClient.setPid(0L); + basicdataClient.setCreateUser(user.getUserId()); basicdataClient.setCargoControl(false); basicdataClient.setStatus(0); basicdataClient.setIsDeleted(0);