|
|
@@ -149,7 +149,9 @@ public class WsSettlementService extends CrudService<WsSettlementMapper, WsCompa
|
|
|
Date weekLastDate = localDate2Date(currentWeekList.get(1));
|
|
|
//判断本周是否跨月
|
|
|
boolean isNextMonth = isNextMonth(currentWeekList.get(0), currentWeekList.get(1), wsCompany);
|
|
|
- if (!isNextMonth) {
|
|
|
+ //头部跨月的计算金额
|
|
|
+ boolean isFirstNextMonth = isNextMonth && i == 0;
|
|
|
+ if (!isNextMonth || isFirstNextMonth) {
|
|
|
wsPunchClockDto.setStartDate(weekFirstDate);
|
|
|
wsPunchClockDto.setEndDate(weekLastDate);
|
|
|
WsPunchClock wsPunchClockEntity = weekSettlement(wsPunchClockDto);
|
|
|
@@ -205,7 +207,9 @@ public class WsSettlementService extends CrudService<WsSettlementMapper, WsCompa
|
|
|
Date weekLastDate = localDate2Date(currentWeekList.get(1));
|
|
|
//判断本周是否跨月
|
|
|
boolean isNextMonth = isNextMonth(currentWeekList.get(0), currentWeekList.get(1), wsCompany);
|
|
|
- if (!isNextMonth) {
|
|
|
+ //头部跨月的计算金额
|
|
|
+ boolean isFirstNextMonth = isNextMonth && i == 0;
|
|
|
+ if (!isNextMonth || isFirstNextMonth) {
|
|
|
wsPunchClockDto.setStartDate(weekFirstDate);
|
|
|
wsPunchClockDto.setEndDate(weekLastDate);
|
|
|
WsPunchClock wsPunchClockEntity = weekSettlement(wsPunchClockDto);
|