Commit 1b478bee authored by fangxinjiang's avatar fangxinjiang

B端调优---证件列表 商险减员BUG修复

parent 42bf819a
......@@ -543,6 +543,14 @@ public class TCertInfoServiceImpl extends ServiceImpl<TCertInfoMapper, TCertInfo
if (null == cert) {
return R.failed(CommonConstants.NO_DATA_TO_HANDLE);
}
TCertInfo certTemp = baseMapper.selectOne(Wrappers.<TCertInfo>query().lambda()
.eq(TCertInfo::getCertNum, cert.getCertNum())
.eq(TCertInfo::getDeleteFlag, CommonConstants.ZERO_STRING)
.ne(TCertInfo::getId,certInfo.getId())
.last(CommonConstants.LAST_ONE_SQL));
if (Common.isNotNull(certTemp)) {
return R.failed("已存在对应证件编号的信息!");
}
certInfo.setCreateTime(cert.getCreateTime());
certInfo.setCreateUser(cert.getCreateUser());
certInfo.setPost(cert.getPost());
......
......@@ -21,9 +21,9 @@ public class HrEquator extends GetterBaseEquator {
@Override
protected boolean isFieldEquals(FieldInfo fieldInfo) {
//空字段空串不更新忽略(单独处理的地方记录)
if(null == fieldInfo.getSecondVal() || (fieldInfo.getSecondVal() instanceof String && "" == ((String) fieldInfo.getSecondVal()).trim())){
/*if(null == fieldInfo.getSecondVal() || (fieldInfo.getSecondVal() instanceof String && "" == ((String) fieldInfo.getSecondVal()).trim())){
return true;
}
}*/
if (fieldInfo.getFirstVal() instanceof BigDecimal) {
BigDecimal first = (BigDecimal) fieldInfo.getFirstVal();
BigDecimal second = (BigDecimal) fieldInfo.getSecondVal();
......
......@@ -5660,6 +5660,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
.eq(TInsuranceDetail::getPolicyEnd,LocalDateUtil.parseLocalDate(policyEnd))
.eq(TInsuranceDetail::getBuyStandard,buyStandard)
.orderByDesc(TInsuranceDetail::getUpdateTime)
.eq(TInsuranceDetail::getIsEffect,CommonConstants.ZERO_STRING)
.last(CommonConstants.LAST_ONE_SQL);
List<TInsuranceDetail> list = list(queryWrapper);
if (list.size()>1){
......
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