|
@@ -249,17 +249,12 @@ public class BmstruckDetailsOrderServiceImpl implements IBmstruckDetailsOrderSer
|
|
|
* @return
|
|
|
*/
|
|
|
@Override
|
|
|
- public synchronized int insertSelectiveNew(BigDecimal orderId) throws Exception {
|
|
|
+ public synchronized int insertSelectiveNew(BigDecimal orderId,BigDecimal priceId) throws Exception {
|
|
|
List<Map<String,Object>> weightTaskResultIdList = bmstruckDetailsOrderMapper.getSteelWeightTaskResultId(orderId);
|
|
|
System.out.println("根据运单查询到的计量实绩数据为," + weightTaskResultIdList);
|
|
|
- Map<String,Object> priceMap = new HashMap<>();
|
|
|
-
|
|
|
- getPriceId(orderId);
|
|
|
- System.out.println("根据运单查询到单价数据为," + priceMap);
|
|
|
- if (priceMap == null || priceMap.size() == 0 || DataChange.dataToBigDecimal(priceMap.get("priceId")).intValue() == 0) {
|
|
|
+ if(priceId == null) {
|
|
|
return 0;
|
|
|
}
|
|
|
- BigDecimal priceId = (BigDecimal) priceMap.get("priceId");
|
|
|
//if (priceId.intValue() == 0) {
|
|
|
// return 0;
|
|
|
//}
|
|
@@ -873,7 +868,7 @@ public class BmstruckDetailsOrderServiceImpl implements IBmstruckDetailsOrderSer
|
|
|
System.out.println("运单Id,为" + orderId);
|
|
|
System.out.println("随接口传输过来的单价Id,为" + priceId);
|
|
|
try {
|
|
|
- int i = insertSelectiveNew(orderId);
|
|
|
+ int i = insertSelectiveNew(orderId,priceId);
|
|
|
} catch (Exception e) {
|
|
|
//不打印给控制台(可能是正常情况)
|
|
|
}
|