|
@@ -10,6 +10,7 @@ import com.ruoyi.common.core.exception.ServiceException;
|
|
|
import com.ruoyi.common.core.utils.DateUtils;
|
|
|
import com.ruoyi.common.core.utils.StringUtils;
|
|
|
import com.ruoyi.common.security.utils.AmountUtils;
|
|
|
+import com.ruoyi.common.security.utils.EncryptionUtils;
|
|
|
import com.ruoyi.common.security.utils.ImportUtils;
|
|
|
import com.ruoyi.common.security.utils.SecurityUtils;
|
|
|
import com.ruoyi.system.api.enums.DataStatus;
|
|
@@ -194,8 +195,11 @@ public class ZwywBtglLrbtglServiceImpl implements IZwywBtglLrbtglService
|
|
|
for (ZwywBtglLrbtgl n: zwywBtglLrbtglList){
|
|
|
msg.append(ImportUtils.checkAndTrans(n));
|
|
|
n.setSljg(ExamineStatus.SNO.getCode());
|
|
|
- if (ObjectUtils.isNotEmpty(zwywBtglLrbtglMapper.getZwywBtglLrbtgl(n.getZjlx(), n.getZjhm(),
|
|
|
- DataStatus.NORMAL.getCode()))){
|
|
|
+ ZwywBtglLrbtgl lrbt = new ZwywBtglLrbtgl();
|
|
|
+ lrbt.setZjlx(n.getZjlx());
|
|
|
+ lrbt.setZjhm(SecurityUtils.sm4encrypt_ECB(EncryptionUtils.key, n.getZjhm()));
|
|
|
+ lrbt.setStatus(DataStatus.NORMAL.getCode());
|
|
|
+ if (ObjectUtils.isNotEmpty(zwywBtglLrbtglMapper.selectOne(new LambdaQueryWrapper<>(lrbt)))){
|
|
|
msg.append("<").append("证件号码:").append(n.getZjhm()).append(" >已存在,请修改。");
|
|
|
}
|
|
|
if (StringUtils.isEmpty(n.getRjsr())) {
|