Commit c215ee79 authored by huyuchen's avatar huyuchen

Merge remote-tracking branch 'origin/develop' into develop

parents 0459f4d4 d8a37730
......@@ -1635,32 +1635,19 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
* @return: int
**/
private int judgeStatus(TInsuranceDetail detail) {
// DELETE_FLAG = 0
// AND IS_EFFECT = 0 #是否有效
// AND IS_USE = 0 #是否出险
// AND IS_OVERDUE = 0 #是否过期
// AND DELETE_FLAG = 0 #是否删除
// AND BUY_HANDLE_STATUS = 3 #投保状态
// AND ( REDUCE_HANDLE_STATUS IS NULL OR REDUCE_HANDLE_STATUS = 3 ) #减员状态
if (detail.getIsEffect() == CommonConstants.ZERO_INT
&& detail.getIsOverdue() == CommonConstants.ZERO_INT
&& detail.getIsUse() == CommonConstants.ZERO_INT
&& (detail.getBuyHandleStatus() == CommonConstants.THREE_INT
&& (Common.isEmpty(detail.getReduceHandleStatus()) || detail.getReduceHandleStatus() == CommonConstants.THREE_INT))) {
return CommonConstants.TWO_INT;
} else {
}
// (0无2正常3失效4处理中)
if (detail.getBuyHandleStatus() == CommonConstants.FOUR_INT) {
return CommonConstants.ZERO_INT;
} else if (detail.getIsOverdue() == CommonConstants.ZERO_INT
} else if (detail.getIsEffect() == CommonConstants.ZERO_INT
&& detail.getIsOverdue() == CommonConstants.ZERO_INT
&& (detail.getBuyHandleStatus() == CommonConstants.THREE_INT
&& (Common.isEmpty(detail.getReduceHandleStatus()) || detail.getReduceHandleStatus() != CommonConstants.FOUR_INT))) {
return CommonConstants.TWO_INT;
} else if (detail.getIsOverdue() == CommonConstants.ONE_INT
|| detail.getIsEffect() == CommonConstants.ONE_INT
|| detail.getBuyHandleStatus() == CommonConstants.FOUR_INT
|| detail.getReduceHandleStatus() == CommonConstants.FOUR_INT
|| detail.getBuyHandleStatus() == CommonConstants.FIVE_INT) {
return CommonConstants.THREE_INT;
} else if (detail.getBuyHandleStatus() == CommonConstants.THREE_INT) {
return CommonConstants.TWO_INT;
} else {
return CommonConstants.FOUR_INT;
}
......
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