Commit b9fc1e21 by 傅伟强-富德

Update test.txt

1 parent baa9c26b
Showing with 56 additions and 0 deletions
...@@ -7,6 +7,62 @@ ...@@ -7,6 +7,62 @@
</configuration> </configuration>
</plugin> </plugin>
private boolean checkAssessmentPeriod(int premDueYear, int premDueMonth)
{
//例如:当前5月份操作离职交接时,只对应缴月在3月、4月、5月的保单进行规则校验
Date nowDate=DateUtil.getNowDate();
int nowYear=DateUtil.getYear(nowDate);
int nowMonth=DateUtil.getMonth(nowDate);
//最小月
Date earliestDate=DateUtil.getDateMonthFormat(DateUtil.getDateMonthFormat(DateUtil.getFirstMonth(3)));
int earliestYear=DateUtil.getYear(earliestDate);
int earliestMonth=DateUtil.getMonth(earliestDate);
//同年 当前:2019-4 最小月:2019-1 应缴月:2019-3
if(earliestYear==nowYear){
//同年 : 小于等于当前月 && 大于最小月 --3月小于5月,大于2月
if(nowYear==premDueYear && premDueMonth<=nowMonth && premDueMonth>earliestMonth){
return true;
}
}
//不同年
if(earliestYear<nowYear){
//当前:2019-3 最小月:2018-12 应缴月:2019-3
//应缴月与当前时间同年 && 应缴月小于等于当前月
if(nowYear==premDueYear && premDueMonth<=nowMonth){
return true;
}
//应缴月与最小月同年 && 应缴月大于最小月
if(nowYear==earliestYear && premDueMonth>earliestMonth){
return true;
}
}
return false;
}
policySuccessList=quitAssign(policyNoList,policyList,policyFailedList,failedList); policySuccessList=quitAssign(policyNoList,policyList,policyFailedList,failedList);
private List<Map<String, String>> quitAssign(List<String> policyNoList, List<JSONObject> policyList, List<Map<String,String>> policyFailedList,Set<String> failedList) private List<Map<String, String>> quitAssign(List<String> policyNoList, List<JSONObject> policyList, List<Map<String,String>> policyFailedList,Set<String> failedList)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!