|
@@ -252,7 +252,9 @@ public class BmstruckDetailsOrderServiceImpl implements IBmstruckDetailsOrderSer
|
|
public synchronized int insertSelectiveNew(BigDecimal orderId) throws Exception {
|
|
public synchronized int insertSelectiveNew(BigDecimal orderId) throws Exception {
|
|
List<Map<String,Object>> weightTaskResultIdList = bmstruckDetailsOrderMapper.getSteelWeightTaskResultId(orderId);
|
|
List<Map<String,Object>> weightTaskResultIdList = bmstruckDetailsOrderMapper.getSteelWeightTaskResultId(orderId);
|
|
System.out.println("根据运单查询到的计量实绩数据为," + weightTaskResultIdList);
|
|
System.out.println("根据运单查询到的计量实绩数据为," + weightTaskResultIdList);
|
|
- Map<String,Object> priceMap = getPriceId(orderId);
|
|
|
|
|
|
+ Map<String,Object> priceMap = new HashMap<>();
|
|
|
|
+
|
|
|
|
+ getPriceId(orderId);
|
|
System.out.println("根据运单查询到单价数据为," + priceMap);
|
|
System.out.println("根据运单查询到单价数据为," + priceMap);
|
|
if (priceMap == null || priceMap.size() == 0 || DataChange.dataToBigDecimal(priceMap.get("priceId")).intValue() == 0) {
|
|
if (priceMap == null || priceMap.size() == 0 || DataChange.dataToBigDecimal(priceMap.get("priceId")).intValue() == 0) {
|
|
return 0;
|
|
return 0;
|
|
@@ -903,8 +905,8 @@ public class BmstruckDetailsOrderServiceImpl implements IBmstruckDetailsOrderSer
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
System.out.println("e"+e.getMessage());
|
|
System.out.println("e"+e.getMessage());
|
|
}
|
|
}
|
|
- omstruckOrderMapper.updateByPrimaryKeySelective(omstruckOrder);
|
|
|
|
List<BigDecimal> detailIds = bmstruckDetailsOrderMapper.getDetailIds(orderId);
|
|
List<BigDecimal> detailIds = bmstruckDetailsOrderMapper.getDetailIds(orderId);
|
|
|
|
+ omstruckOrderMapper.updateByPrimaryKeySelective(omstruckOrder);
|
|
int result = 0;
|
|
int result = 0;
|
|
for (BigDecimal detailsId : detailIds) {
|
|
for (BigDecimal detailsId : detailIds) {
|
|
BmstruckDetailsOrder bmstruckDetailsOrder = bmstruckDetailsOrderMapper.selectByPrimaryKey(detailsId);
|
|
BmstruckDetailsOrder bmstruckDetailsOrder = bmstruckDetailsOrderMapper.selectByPrimaryKey(detailsId);
|
|
@@ -1414,6 +1416,7 @@ public class BmstruckDetailsOrderServiceImpl implements IBmstruckDetailsOrderSer
|
|
//获取详单ID
|
|
//获取详单ID
|
|
BigDecimal detailsId = bmstruckDetailsOrderMapper.getDetailsIdByBatchId(weightBatchId);
|
|
BigDecimal detailsId = bmstruckDetailsOrderMapper.getDetailsIdByBatchId(weightBatchId);
|
|
BmstruckDetailsOrder bmstruckDetailsOrder = bmstruckDetailsOrderMapper.selectByPrimaryKey(detailsId);
|
|
BmstruckDetailsOrder bmstruckDetailsOrder = bmstruckDetailsOrderMapper.selectByPrimaryKey(detailsId);
|
|
|
|
+ bmstruckDetailsOrder.setOrderId(orderId);
|
|
bmstruckDetailsOrder.setDetailsId(detailsId);
|
|
bmstruckDetailsOrder.setDetailsId(detailsId);
|
|
bmstruckDetailsOrder.setDetailsAmount(detailsAmount);
|
|
bmstruckDetailsOrder.setDetailsAmount(detailsAmount);
|
|
result += bmstruckDetailsOrderMapper.updateByPrimaryKeySelective(bmstruckDetailsOrder);
|
|
result += bmstruckDetailsOrderMapper.updateByPrimaryKeySelective(bmstruckDetailsOrder);
|