|
|
@@ -816,15 +816,21 @@ public class WaybillManagementService {
|
|
|
* @param keyword
|
|
|
* @return
|
|
|
*/
|
|
|
- public HttpResult waybillDataStatisticApp(String keyword) {
|
|
|
+ public HttpResult waybillDataStatisticApp(String keyword, String startDate, String endDate) {
|
|
|
Long entId = LoginUserHolder.getEntId();
|
|
|
+ if(StringUtils.isNotBlank(startDate)) {
|
|
|
+ startDate = startDate.concat(" 00:00:00");
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(endDate)) {
|
|
|
+ endDate = endDate.concat(" 00:00:00");
|
|
|
+ }
|
|
|
// 运输途中
|
|
|
Map<String, String> _onway = new HashMap<>();
|
|
|
_onway.put("name", "运输中");
|
|
|
_onway.put("value", "onway");
|
|
|
_onway.put("total", "0");
|
|
|
List<Long> onWayStates = getWallBillStatues("onway");
|
|
|
- Long onWayCount = kwtWaybillOrderMapper.selectWaybillOrderCountByStatus(entId, onWayStates, keyword);
|
|
|
+ Long onWayCount = kwtWaybillOrderMapper.selectWaybillOrderCountByStatus(entId, onWayStates, keyword, null, null);
|
|
|
_onway.put("total", onWayCount.toString());
|
|
|
// 已完成
|
|
|
Map<String, String> _finish = new HashMap<>();
|
|
|
@@ -832,7 +838,7 @@ public class WaybillManagementService {
|
|
|
_finish.put("value", "finish");
|
|
|
_finish.put("total", "0");
|
|
|
List<Long> finishStates = getWallBillStatues("finish");
|
|
|
- Long finishCount = kwtWaybillOrderMapper.selectWaybillOrderCountByStatus(entId, finishStates, keyword);
|
|
|
+ Long finishCount = kwtWaybillOrderMapper.selectWaybillOrderCountByStatus(entId, finishStates, keyword, startDate, endDate);
|
|
|
_finish.put("total", finishCount.toString());
|
|
|
List<Map<String, String>> _list = new ArrayList<>();
|
|
|
_list.add(_onway);
|
|
|
@@ -952,8 +958,8 @@ public class WaybillManagementService {
|
|
|
LoginUserHolder.getEntId(),
|
|
|
_statuses,
|
|
|
query.getKeyword(),
|
|
|
- query.getStartDate() == null ? null : query.getStartDate().toString().concat(" 00:00:00"),
|
|
|
- query.getEndDate() == null ? null : query.getEndDate().toString().concat(" 23:59:59")
|
|
|
+ StringUtils.isBlank(query.getStartDate()) ? null : query.getStartDate().concat(" 00:00:00"),
|
|
|
+ StringUtils.isBlank(query.getEndDate()) ? null : query.getEndDate().concat(" 23:59:59")
|
|
|
);
|
|
|
return HttpResult.ok(amount);
|
|
|
}
|