Commit 1b478bee authored by fangxinjiang's avatar fangxinjiang

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

parent 42bf819a
...@@ -543,6 +543,14 @@ public class TCertInfoServiceImpl extends ServiceImpl<TCertInfoMapper, TCertInfo ...@@ -543,6 +543,14 @@ public class TCertInfoServiceImpl extends ServiceImpl<TCertInfoMapper, TCertInfo
if (null == cert) { if (null == cert) {
return R.failed(CommonConstants.NO_DATA_TO_HANDLE); 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.setCreateTime(cert.getCreateTime());
certInfo.setCreateUser(cert.getCreateUser()); certInfo.setCreateUser(cert.getCreateUser());
certInfo.setPost(cert.getPost()); certInfo.setPost(cert.getPost());
......
...@@ -21,9 +21,9 @@ public class HrEquator extends GetterBaseEquator { ...@@ -21,9 +21,9 @@ public class HrEquator extends GetterBaseEquator {
@Override @Override
protected boolean isFieldEquals(FieldInfo fieldInfo) { 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; return true;
} }*/
if (fieldInfo.getFirstVal() instanceof BigDecimal) { if (fieldInfo.getFirstVal() instanceof BigDecimal) {
BigDecimal first = (BigDecimal) fieldInfo.getFirstVal(); BigDecimal first = (BigDecimal) fieldInfo.getFirstVal();
BigDecimal second = (BigDecimal) fieldInfo.getSecondVal(); BigDecimal second = (BigDecimal) fieldInfo.getSecondVal();
......
...@@ -5660,6 +5660,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap ...@@ -5660,6 +5660,7 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
.eq(TInsuranceDetail::getPolicyEnd,LocalDateUtil.parseLocalDate(policyEnd)) .eq(TInsuranceDetail::getPolicyEnd,LocalDateUtil.parseLocalDate(policyEnd))
.eq(TInsuranceDetail::getBuyStandard,buyStandard) .eq(TInsuranceDetail::getBuyStandard,buyStandard)
.orderByDesc(TInsuranceDetail::getUpdateTime) .orderByDesc(TInsuranceDetail::getUpdateTime)
.eq(TInsuranceDetail::getIsEffect,CommonConstants.ZERO_STRING)
.last(CommonConstants.LAST_ONE_SQL); .last(CommonConstants.LAST_ONE_SQL);
List<TInsuranceDetail> list = list(queryWrapper); List<TInsuranceDetail> list = list(queryWrapper);
if (list.size()>1){ 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