Commit 67bb138e authored by 刘林's avatar 刘林

fix(jg):历史登记作废,清除96333和监管码修改

parent dced8f97
...@@ -2549,11 +2549,17 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD ...@@ -2549,11 +2549,17 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
).ifPresent(otherInfo -> { ).ifPresent(otherInfo -> {
String supervisoryCode = otherInfo.getSupervisoryCode(); String supervisoryCode = otherInfo.getSupervisoryCode();
//手动输入直接删除 //手动输入直接删除
if ("0".equals(otherInfo.getCode96333Type())) { if ("1".equals(otherInfo.getCode96333Type())) {
supervisoryCodeInfoMapper.delete(new QueryWrapper<SupervisoryCodeInfo>().eq("SUPERVISORY_CODE", supervisoryCode)); supervisoryCodeInfoMapper.delete(new QueryWrapper<SupervisoryCodeInfo>().eq("SUPERVISORY_CODE", supervisoryCode));
} else { } else {
supervisoryCodeInfoMapper.updateStatus(Collections.singletonList(supervisoryCode)); supervisoryCodeInfoMapper.updateStatus(Collections.singletonList(supervisoryCode));
} }
//系统生成的96333把other中的释放
otherInfoMapper.update(null,
new LambdaUpdateWrapper<IdxBizJgOtherInfo>()
.eq(IdxBizJgOtherInfo::getRecord, record)
.set(IdxBizJgOtherInfo::getSupervisoryCode, null)
.set("2".equals(otherInfo.getCode96333Type()), IdxBizJgOtherInfo::getCode96333, null));
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment