|
@@ -280,6 +280,10 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
|
map.put("newWeight",newWeight);
|
|
|
|
|
|
}
|
|
|
+ if(map.get("theoryWeight") != null && !"".equals(map.get("theoryWeight"))) {
|
|
|
+ newWeight = DataChange.dataToBigDecimal(map.get("theoryWeight"));
|
|
|
+ map.put("newWeight",newWeight);
|
|
|
+ }
|
|
|
tmstruckWeightResultMapper.updateOrderMaterial(map);
|
|
|
tmstruckWeightResultMapper.updateSaleMaterialId(saleMaterialId,materialNum,newWeight);
|
|
|
}else{
|
|
@@ -831,12 +835,30 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
|
* @return
|
|
|
*/
|
|
|
public String linkUpdateAPO(Map<String, Object> map, Integer orderType){
|
|
|
+
|
|
|
|
|
|
Map<String, Object> mesMap = tmstruckWeightResultMapper.getAPOMes(String.valueOf(map.get("ArrivalBillNo")));
|
|
|
if (mesMap == null){
|
|
|
return map.get("ArrivalBillNo") + "系统没有此订单号!失败";
|
|
|
}
|
|
|
mesMap.put("orderNumber", map.get("orderNumber"));
|
|
|
+
|
|
|
+ try{
|
|
|
+ new Thread( new Runnable() {
|
|
|
+ public void run(){
|
|
|
+ try {
|
|
|
+ Map<String,Object> oldOrderMes = tmstruckWeightResultMapper.getOldOrderMes(mesMap);
|
|
|
+ map.put("oldOrderMes",oldOrderMes);
|
|
|
+ JSONObject jsonObject = new JSONObject(map);
|
|
|
+ newFileTool.newFile(jsonObject.toString(),"计量-物流联动换单");
|
|
|
+ } catch (IOException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).start();
|
|
|
+ }catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
if(orderType == 20 || orderType == 15 || orderType == 16 || orderType == 23 || orderType == 24){
|
|
|
|
|
|
BigDecimal planId = tmstruckWeightResultMapper.selectNewPlanId(mesMap);
|
|
@@ -884,6 +906,11 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
|
|
|
|
BigDecimal weightTaskResultId = tmstruckWeightResultMapper.getWeightTaskResultIdNoNet(map);
|
|
|
BigDecimal saleMaterialId = tmstruckWeightResultMapper.getSaleMaterialId(map);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
if(weightTaskResultId != null && saleMaterialId != null) {
|
|
|
|
|
|
System.out.println("更新计量实绩校验");
|