|
@@ -1,6 +1,5 @@
|
|
|
package com.steerinfo.dil.service.impl;
|
|
|
|
|
|
-import com.fasterxml.jackson.databind.node.BigIntegerNode;
|
|
|
import com.steerinfo.dil.mapper.BmstruckCheckMapper;
|
|
|
import com.steerinfo.dil.mapper.BmstruckDetailsOrderMapper;
|
|
|
import com.steerinfo.dil.mapper.BmstruckDetailsStatementMapper;
|
|
@@ -8,8 +7,6 @@ import com.steerinfo.dil.model.BmstruckCheck;
|
|
|
import com.steerinfo.dil.model.BmstruckDetailsOrder;
|
|
|
import com.steerinfo.dil.model.BmstruckDetailsStatement;
|
|
|
import com.steerinfo.dil.util.NoUtil;
|
|
|
-import com.steerinfo.framework.mapper.IBaseMapper;
|
|
|
-import com.steerinfo.framework.service.impl.BaseServiceImpl;
|
|
|
import com.steerinfo.dil.model.BmstruckStatement;
|
|
|
import com.steerinfo.dil.mapper.BmstruckStatementMapper;
|
|
|
import com.steerinfo.dil.service.IBmstruckStatementService;
|
|
@@ -59,20 +56,20 @@ public class BmstruckStatementServiceImpl implements IBmstruckStatementService {
|
|
|
public List<Map<String, Object>> getTruckStatementList(Map<String, Object> mapValue) {
|
|
|
List<Map<String, Object>> mapList = bmstruckStatementMapper.getTruckStatementList(mapValue);
|
|
|
String checkStatus = "";
|
|
|
- for (Map<String,Object> map: mapList ) {
|
|
|
+ for (Map<String,Object> map: mapList) {
|
|
|
BigDecimal checkCarrierStatus = (BigDecimal) map.get("checkCarrierStatus");
|
|
|
BigDecimal checkReceiveCustomerStatus = (BigDecimal) map.get("checkReceiveCustomerStatus");
|
|
|
BigDecimal checkShipperStatus = (BigDecimal) map.get("checkShipperStatus");
|
|
|
// 有人拒绝:未通过审核
|
|
|
- if (checkCarrierStatus.intValue() == 0 || checkReceiveCustomerStatus.intValue() == 0 || checkShipperStatus.intValue() == 0){
|
|
|
+ if (checkCarrierStatus != null || checkReceiveCustomerStatus != null || checkShipperStatus != null && (checkCarrierStatus.intValue() == 0 || checkReceiveCustomerStatus.intValue() == 0 || checkShipperStatus.intValue() == 0)){
|
|
|
checkStatus = "未通过审核";
|
|
|
}
|
|
|
// 全部通过:已通过审核
|
|
|
- if (checkCarrierStatus.intValue() == 1 && checkReceiveCustomerStatus.intValue() == 1 && checkShipperStatus.intValue() == 1) {
|
|
|
+ if (checkCarrierStatus != null || checkReceiveCustomerStatus != null || checkShipperStatus != null && (checkCarrierStatus.intValue() == 1 && checkReceiveCustomerStatus.intValue() == 1 && checkShipperStatus.intValue() == 1)) {
|
|
|
checkStatus = "已通过审核";
|
|
|
}
|
|
|
// 有人未审核,且没人拒绝:审核中
|
|
|
- if (checkCarrierStatus == null || checkReceiveCustomerStatus == null || checkShipperStatus == null && checkStatus != "未通过审批"){
|
|
|
+ if (checkCarrierStatus != null || checkReceiveCustomerStatus != null || checkShipperStatus != null && checkStatus != "未通过审批"){
|
|
|
checkStatus = "审核中";
|
|
|
}
|
|
|
// 全部都没审核:待审核
|