|
@@ -629,7 +629,7 @@ public class SpStatementShipUsageMonthServiceImpl extends
|
|
|
thisYear + "-" + (thisMonth < 10 ? "0" + thisMonth : thisMonth)));
|
|
|
log.info("开始计算靠泊上港集团码头的集装箱船舶部分报表 ===========");
|
|
|
try {
|
|
|
- executeSg(toDate, thisYear, thisMonth, snowflakeGenerator, lastMonth);
|
|
|
+ executeSg(toDate, thisYear, thisMonth, snowflakeGenerator, lastMonth,lastDate, thisDate);
|
|
|
} catch (Exception e) {
|
|
|
PrintLogUtils.printErrorLogInfo(e);
|
|
|
log.info("计算靠泊上港集团码头的集装箱船舶部分报表出错 ========== 原因:{}",
|
|
@@ -674,9 +674,10 @@ public class SpStatementShipUsageMonthServiceImpl extends
|
|
|
}
|
|
|
|
|
|
private void executeSg(Date toDate, int thisYear, int thisMonth,
|
|
|
- SnowflakeGenerator snowflakeGenerator, int lastMonth) {
|
|
|
- SpStatementShipUsageMonthVo underLineSg = spStatementShipUsageMonthMapper.getUnderLineMonthDataSg(
|
|
|
- toDate);
|
|
|
+ SnowflakeGenerator snowflakeGenerator, int lastMonth,Date lastDate,Date thisDate) {
|
|
|
+// SpStatementShipUsageMonthVo underLineSg = spStatementShipUsageMonthMapper.getUnderLineMonthDataSg(
|
|
|
+// toDate);
|
|
|
+ SpStatementShipUsageMonthVo underLineSg = spStatementShipUsageMonthMapper.getUnderLineMonthDataSgNew(lastDate,thisDate);
|
|
|
if (underLineSg == null) {
|
|
|
underLineSg = new SpStatementShipUsageMonthVo();
|
|
|
}
|