|
@@ -173,6 +173,11 @@ public class BmstruckDetailsOrderServiceImpl implements IBmstruckDetailsOrderSer
|
|
if(bmstruckDetailsOrderMapper.getIsHaveDetailsOrder(weightTaskResultId) > 0 ){
|
|
if(bmstruckDetailsOrderMapper.getIsHaveDetailsOrder(weightTaskResultId) > 0 ){
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
+ BigDecimal netWeightIsNull = bmstruckDetailsOrderMapper.getNetWeight(weightTaskResultId);
|
|
|
|
+ if (netWeightIsNull == null) {
|
|
|
|
+ System.out.println("没有计量实绩,不生成结算数据:" + orderId);
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
//BigDecimal detailsAmountOld=new BigDecimal(0);
|
|
//BigDecimal detailsAmountOld=new BigDecimal(0);
|
|
try {
|
|
try {
|
|
BigDecimal detailsAmountOld = generateTruckFeesNew(orderId, weightTaskResultId);
|
|
BigDecimal detailsAmountOld = generateTruckFeesNew(orderId, weightTaskResultId);
|
|
@@ -1112,17 +1117,17 @@ public class BmstruckDetailsOrderServiceImpl implements IBmstruckDetailsOrderSer
|
|
if (priceIdInt!=null&&priceIdInt.compareTo(BigDecimal.ZERO)!=0){
|
|
if (priceIdInt!=null&&priceIdInt.compareTo(BigDecimal.ZERO)!=0){
|
|
break;
|
|
break;
|
|
}else {
|
|
}else {
|
|
- //新增单价
|
|
|
|
- BigDecimal orderId = DataChange.dataToBigDecimal(map.get("orderId"));
|
|
|
|
- BigDecimal omsTruckOrderPriceId = bmstruckDetailsOrderMapper.getOmsTruckOrderPriceId(orderId);
|
|
|
|
- Map<String,Object> map1=new HashMap<>();
|
|
|
|
- map1.put("orderId",orderId);
|
|
|
|
- map1.put("priceId",omsTruckOrderPriceId);
|
|
|
|
- try {
|
|
|
|
- amsFeign.copySteelPrice(map1);
|
|
|
|
- } catch (Exception e) {
|
|
|
|
- e.printStackTrace();
|
|
|
|
- }
|
|
|
|
|
|
+ ////新增单价
|
|
|
|
+ //BigDecimal orderId = DataChange.dataToBigDecimal(map.get("orderId"));
|
|
|
|
+ //BigDecimal omsTruckOrderPriceId = bmstruckDetailsOrderMapper.getOmsTruckOrderPriceId(orderId);
|
|
|
|
+ //Map<String,Object> map1=new HashMap<>();
|
|
|
|
+ //map1.put("orderId",orderId);
|
|
|
|
+ //map1.put("priceId",omsTruckOrderPriceId);
|
|
|
|
+ //try {
|
|
|
|
+ // amsFeign.copySteelPrice(map1);
|
|
|
|
+ //} catch (Exception e) {
|
|
|
|
+ // e.printStackTrace();
|
|
|
|
+ //}
|
|
//单价的主键
|
|
//单价的主键
|
|
//map1.put("priceId",bmstruckDetailsOrderMapper.selectMaxIdNew());
|
|
//map1.put("priceId",bmstruckDetailsOrderMapper.selectMaxIdNew());
|
|
//map1.put("priceValue",map.get("priceValue"));
|
|
//map1.put("priceValue",map.get("priceValue"));
|