优化效率接口

master 大庆1.0
chen 4 years ago
parent 54dd50431f
commit e1542733b7
  1. 39
      dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgEfficiencyServiceImpl.java

@ -25,6 +25,7 @@ import com.daqing.framework.domain.guarantee.GuaranteeCode;
import com.daqing.framework.domain.guarantee.po.DgWorkConferencePO;
import com.daqing.framework.domain.guarantee.po.StatusPO;
import com.daqing.framework.exception.ExceptionCast;
import com.daqing.framework.model.StatusCode;
import com.daqing.framework.model.response.PromptSuccess;
import com.daqing.framework.util.RedisUtil;
import com.google.common.collect.Maps;
@ -308,7 +309,11 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA
statusPO.setProcessId(2);
statusPO.setName(name);
statusPO.setStatus(status);
//相同业务中,如果已经是待处理则数据不覆盖
StatusPO po = (StatusPO)hashMap.get(businessId);
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){
hashMap.put(businessId, statusPO);
}
});
}
}
@ -330,7 +335,11 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA
statusPO.setProcessId(3);
statusPO.setName(name);
statusPO.setStatus(status);
//相同业务中,如果已经是待处理则数据不覆盖
StatusPO po = (StatusPO)hashMap.get(businessId);
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){
hashMap.put(businessId, statusPO);
}
});
}
}
@ -352,7 +361,11 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA
statusPO.setProcessId(4);
statusPO.setName(name);
statusPO.setStatus(status);
//相同业务中,如果已经是待处理则数据不覆盖
StatusPO po = (StatusPO)hashMap.get(businessId);
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){
hashMap.put(businessId, statusPO);
}
});
}
}
@ -375,7 +388,11 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA
statusPO.setProcessId(5);
statusPO.setName(name);
statusPO.setStatus(status);
//相同业务中,如果已经是待处理则数据不覆盖
StatusPO po = (StatusPO)hashMap.get(businessId);
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){
hashMap.put(businessId, statusPO);
}
});
}
}
@ -396,7 +413,11 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA
statusPO.setProcessId(6);
statusPO.setName(name);
statusPO.setStatus(status);
//相同业务中,如果已经是待处理则数据不覆盖
StatusPO po = (StatusPO)hashMap.get(businessId);
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){
hashMap.put(businessId, statusPO);
}
});
}
}
@ -417,7 +438,11 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA
statusPO.setProcessId(7);
statusPO.setName(name);
statusPO.setStatus(status);
//相同业务中,如果已经是待处理则数据不覆盖
StatusPO po = (StatusPO)hashMap.get(businessId);
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){
hashMap.put(businessId, statusPO);
}
});
}
}
@ -439,7 +464,11 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA
statusPO.setProcessId(8);
statusPO.setName(name);
statusPO.setStatus(status);
//相同业务中,如果已经是待处理则数据不覆盖
StatusPO po = (StatusPO)hashMap.get(businessId);
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){
hashMap.put(businessId, statusPO);
}
});
}
}
@ -461,7 +490,11 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA
statusPO.setProcessId(9);
statusPO.setName(name);
statusPO.setStatus(status);
//相同业务中,如果已经是待处理则数据不覆盖
StatusPO po = (StatusPO)hashMap.get(businessId);
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){
hashMap.put(businessId, statusPO);
}
});
}
}
@ -483,7 +516,11 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA
statusPO.setProcessId(10);
statusPO.setName(name);
statusPO.setStatus(status);
//相同业务中,如果已经是待处理则数据不覆盖
StatusPO po = (StatusPO)hashMap.get(businessId);
if (!po.getOperatingStatus().equals(StatusCode.CZ_ON_HAND)){
hashMap.put(businessId, statusPO);
}
});
}
}
@ -501,8 +538,6 @@ public class DgEfficiencyServiceImpl extends ServiceImpl<DgEfficiencyMapper, DgA
DgApplyAmountInfo dgApplyAmountInfo = applyAmountInfoMapper.selectById(key);
//业务申请日期
Date createTime = dgApplyAmountInfo.getCreateTime();
//客户公司id
Integer companyId = dgApplyAmountInfo.getCompanyId();
//提单人id
Integer presenterId = dgApplyAmountInfo.getPresenterId();
efficiencyListResponse.setOperatingStatus(operatingStatus);

Loading…
Cancel
Save