|
|
|
@ -10,6 +10,7 @@ import com.google.common.collect.Maps;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import weaver.general.Util;
|
|
|
|
|
|
|
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
@ -232,34 +233,30 @@ public class BySchedulePaymentWay implements HolidayGenerationWay{
|
|
|
|
|
double restTime=0.0;
|
|
|
|
|
//折算
|
|
|
|
|
if (changeMethodEnum == QuotaChangeMethodEnum.CONVERT){
|
|
|
|
|
int beginYearMonth = DateUtil.getBetWeenMonths(qsrq,sxrq);
|
|
|
|
|
if (beginYearMonth < 0){
|
|
|
|
|
beginYearMonth = 0;
|
|
|
|
|
}
|
|
|
|
|
beginYearMonth = beginYearMonth+seniority;
|
|
|
|
|
int endYearMonth = DateUtil.getBetWeenMonths(qsrq,nextSxrq);
|
|
|
|
|
endYearMonth = endYearMonth+seniority;
|
|
|
|
|
int beginYear = beginYearMonth/12;
|
|
|
|
|
int endYear = endYearMonth/12;
|
|
|
|
|
|
|
|
|
|
//残年分割日期
|
|
|
|
|
String divideTime = DateUtil.beforeMonth(qsrq,seniority);
|
|
|
|
|
divideTime = sxrq.split("-")[0]+"-"+divideTime.split("-")[1]+"-"+divideTime.split("-")[2];
|
|
|
|
|
divideTime = DateUtil.nextMonth(divideTime,1,DateUtil.yyyyMM)+"-01";
|
|
|
|
|
int beginYear=0;//生效日期对应的年度
|
|
|
|
|
int endYear=0;//失效日期对应的年度
|
|
|
|
|
String divideTime = "";//工龄变更日期
|
|
|
|
|
if (jgscsf.equals("2")){
|
|
|
|
|
//直接取工龄字段
|
|
|
|
|
beginYear = seniority/12;
|
|
|
|
|
beginYear = Double.valueOf(ljcrglyfslwz).intValue();
|
|
|
|
|
endYear = beginYear+1;
|
|
|
|
|
|
|
|
|
|
//分割日期
|
|
|
|
|
// int month = DateUtil.getBetWeenMonths(qsrq,sxrq);
|
|
|
|
|
// if (month < 0){
|
|
|
|
|
// month = 0;
|
|
|
|
|
// }
|
|
|
|
|
// int historySeniority = seniority-month;
|
|
|
|
|
// divideTime = DateUtil.beforeMonth(qsrq,historySeniority);
|
|
|
|
|
divideTime = sxrq.split("-")[0]+"-"+qsrq.split("-")[1]+"-"+qsrq.split("-")[2];
|
|
|
|
|
divideTime = DateUtil.nextMonth(divideTime,1,DateUtil.yyyyMM)+"-01";
|
|
|
|
|
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
|
|
double divdemonths = Double.valueOf(ljcrglyfslwz) - Double.valueOf(ljcrglyfslwz).intValue();
|
|
|
|
|
divideTime = DateUtil.nextMonth(sxrq,(int)Math.ceil(divdemonths*12),dateTimeFormatter);
|
|
|
|
|
}else {
|
|
|
|
|
int beginYearMonth = DateUtil.getBetWeenMonths(qsrq, sxrq);
|
|
|
|
|
if (beginYearMonth < 0) {
|
|
|
|
|
beginYearMonth = 0;
|
|
|
|
|
}
|
|
|
|
|
beginYearMonth = beginYearMonth + seniority;
|
|
|
|
|
int endYearMonth = DateUtil.getBetWeenMonths(qsrq, nextSxrq);
|
|
|
|
|
endYearMonth = endYearMonth + seniority;
|
|
|
|
|
beginYear = beginYearMonth / 12;
|
|
|
|
|
endYear = endYearMonth / 12;
|
|
|
|
|
|
|
|
|
|
//残年分割日期
|
|
|
|
|
divideTime = DateUtil.beforeMonth(qsrq, seniority);
|
|
|
|
|
divideTime = sxrq.split("-")[0] + "-" + divideTime.split("-")[1] + "-" + divideTime.split("-")[2];
|
|
|
|
|
divideTime = DateUtil.nextMonth(divideTime, 1, DateUtil.yyyyMM) + "-01";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map<String,Object> beginYearmap = VocationCommonUtil.getVocationMap(vocationList, beginYear, yjzd,userId);
|
|
|
|
|