|
@@ -11,9 +11,11 @@ import com.shcd.mapper.SpStatementContainerMapper;
|
|
|
import com.shcd.mapper.SpStatementShipUsageMonthMapper;
|
|
|
import com.shcd.service.SpStatementQuarterReportService;
|
|
|
import com.shcd.mapper.SpStatementQuarterReportMapper;
|
|
|
+import com.shcd.utils.PrintLogUtils;
|
|
|
import com.shcd.vo.SpQuarterReportBlVo;
|
|
|
import com.shcd.vo.SpQuarterReportOriginVo;
|
|
|
import com.shcd.vo.SpShipUsageMonthQuarterVo;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -32,6 +34,7 @@ import org.springframework.util.CollectionUtils;
|
|
|
* @createDate 2024-02-01 10:59:29
|
|
|
*/
|
|
|
@Service
|
|
|
+@Slf4j
|
|
|
public class SpStatementQuarterReportServiceImpl extends
|
|
|
ServiceImpl<SpStatementQuarterReportMapper, SpStatementQuarterReport>
|
|
|
implements SpStatementQuarterReportService {
|
|
@@ -49,6 +52,7 @@ public class SpStatementQuarterReportServiceImpl extends
|
|
|
@Override
|
|
|
public void generateReportSpQuarterReport(String currentDate) {
|
|
|
try {
|
|
|
+ log.info("开始计算季度报表 ===========");
|
|
|
|
|
|
|
|
|
|
|
@@ -396,9 +400,10 @@ public class SpStatementQuarterReportServiceImpl extends
|
|
|
|
|
|
|
|
|
this.saveBatch(spStatementQuarterReports);
|
|
|
+ log.info("季度报表生成结束 当前季度为 :{}",currentQuarter);
|
|
|
} catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- log.error("异常内容{}" + e.getMessage());
|
|
|
+ PrintLogUtils.printErrorLogInfo(e);
|
|
|
+ log.info("季度报表生成异常 异常内容{}" + e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|