|
@@ -805,19 +805,19 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
|
logger.info("=========" + "计量检查" + format.format(new Date()));
|
|
|
logger.info(jsonObject.toString());
|
|
|
logger.info("=========" + "计量检查" + format.format(new Date()));
|
|
|
- try{
|
|
|
- new Thread( new Runnable() {
|
|
|
- public void run(){
|
|
|
- try {
|
|
|
- newFileTool.newFile(jsonObject.toString(),"计量物流金蝶核对");
|
|
|
- } catch (IOException e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- }
|
|
|
- }).start();
|
|
|
- }catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
+ //try{
|
|
|
+ // new Thread( new Runnable() {
|
|
|
+ // public void run(){
|
|
|
+ // try {
|
|
|
+ // newFileTool.newFile(jsonObject.toString(),"计量物流金蝶核对");
|
|
|
+ // } catch (IOException e) {
|
|
|
+ // e.printStackTrace();
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }).start();
|
|
|
+ //}catch (Exception e) {
|
|
|
+ // e.printStackTrace();
|
|
|
+ //}
|
|
|
//判断该车的运输订单号是否是钢材且是否是正在作业中的,如果不是就返回true
|
|
|
int i = tmstruckWeightResultMapper.checkOrderIsSteel(map);
|
|
|
if (i == 0) {
|
|
@@ -826,8 +826,6 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
|
//判断该分录是不是在物流系统,如果不在返回true
|
|
|
int j = tmstruckWeightResultMapper.checkOrder(map);
|
|
|
if (j == 0) {
|
|
|
- //判断是否自提
|
|
|
- String isSelfMention = tmstruckWeightResultMapper.getIsSelfMention(map);
|
|
|
//如果是自提,则更换规格
|
|
|
BigDecimal jlSaleOrderMaterialId = tmstruckWeightResultMapper.getJlSaleOrderMaterialId(map);
|
|
|
BigDecimal wlSaleOrderMaterialId = tmstruckWeightResultMapper.getWlSaleOrderMaterialId(map);
|
|
@@ -852,6 +850,9 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
|
tmstruckWeightResultMapper.updateOrderMaterialId(wlOrderId);
|
|
|
}
|
|
|
}
|
|
|
+ }else {
|
|
|
+ //如果对不上,那么就将运输订单里面的状态变一下
|
|
|
+ tmstruckWeightResultMapper.updateOmsRedQrCode(map);
|
|
|
}
|
|
|
//根据分录ID查询车序号
|
|
|
utilsService.pushMesToWebsocket((String) map.get("carNo"), "计量");
|