|
@@ -387,15 +387,15 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
|
tmstruckWeightResult.setMaterialNum(DataChange.dataToBigDecimal(codeMap.get("goodNum")));
|
|
|
}
|
|
|
if(resultNetWeight != null && !"".equals(resultNetWeight) && codeMap.get("saleMaterialId") != null) {
|
|
|
-
|
|
|
tmstruckWeightResult.setSaleMaterialId(DataChange.dataToBigDecimal(codeMap.get("saleMaterialId")));
|
|
|
tmstruckWeightResult.setSaleMaterialId(saleMaterialId);
|
|
|
+ tmstruckWeightResultMapper.updateOrderMaterial(codeMap);
|
|
|
+
|
|
|
}
|
|
|
addWeightResult(tmstruckWeightResult, codeMap); //添加计量实绩数据
|
|
|
// 更新订单中路段顺序号,如果毛重时间为空则为计皮:也就是销售第一次计皮,反之有毛重时间则为计毛
|
|
|
if(resultCrossWeightTime == null || resultCrossWeightTime.length() == 0){
|
|
|
codeMap.put("segmentSqe", codeMap.get("tareSegmentSqe")); //皮重路段顺序
|
|
|
-
|
|
|
}else{
|
|
|
//查询有净重的路段顺序号最大的
|
|
|
BigDecimal orderLineSqe = tmstruckWeightResultMapper.selectOrderLineSqe(DataChange.dataToBigDecimal(codeMap.get("resultTotalId")));
|