|
@@ -3,6 +3,7 @@ package com.steerinfo.dil.service.impl;
|
|
import com.steerinfo.dil.mapper.StatisticalReportMapper;
|
|
import com.steerinfo.dil.mapper.StatisticalReportMapper;
|
|
import com.steerinfo.dil.service.IStatisticalReportService;
|
|
import com.steerinfo.dil.service.IStatisticalReportService;
|
|
import com.steerinfo.dil.util.DataChange;
|
|
import com.steerinfo.dil.util.DataChange;
|
|
|
|
+import oracle.sql.DATE;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -84,7 +85,27 @@ public class StatisticalReportImpl implements IStatisticalReportService {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public List<Map<String, Object>> getAllSaleReportNum(Map<String, Object> map) {
|
|
public List<Map<String, Object>> getAllSaleReportNum(Map<String, Object> map) {
|
|
- return statisticalReportMapper.getAllSaleReport(map);
|
|
|
|
|
|
+ List<Map<String, Object>> listMap = statisticalReportMapper.getAllSaleReport(map);
|
|
|
|
+ for(Map<String, Object> map1 : listMap) {
|
|
|
|
+ if ( map1.get("resultEntryGateTime") == null) {
|
|
|
|
+ map1.put("transportStatus", "未进厂");
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+ if (map1.get("resultOutGateTime") == null) {
|
|
|
|
+ map1.put("transportStatus", "已进厂");
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+ if (map1.get("arrivaladdress") == null) {
|
|
|
|
+ map1.put("transportStatus", "运输中");
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+ if (map1.get("receiveTime") == null) {
|
|
|
|
+ map1.put("transportStatus", "已抵达");
|
|
|
|
+ continue;
|
|
|
|
+ } else
|
|
|
|
+ map1.put("transportStatus", "已签收");
|
|
|
|
+ }
|
|
|
|
+ return listMap;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|