|
|
|
@ -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<BasicdataClientM
|
|
|
|
|
//查询是不是重复
|
|
|
|
|
List<BasicdataClientEntity> basicdataClientEntities = baseMapper.selectList(Wrappers.<BasicdataClientEntity>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); |
|
|
|
|