|
|
@ -267,7 +267,7 @@ public class ZyjhController {
|
|
|
|
Message result = Message.result(webSocketService.getErpId(), "1");
|
|
|
|
Message result = Message.result(webSocketService.getErpId(), "1");
|
|
|
|
webSocketService.sendMessage(result.toString());
|
|
|
|
webSocketService.sendMessage(result.toString());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
this.sendSuccessTips(dto.getDeviceId());
|
|
|
|
return new ResultBean<>();
|
|
|
|
return new ResultBean<>();
|
|
|
|
} catch (NoSuchFieldException | IllegalAccessException e) {
|
|
|
|
} catch (NoSuchFieldException | IllegalAccessException e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
@ -339,7 +339,7 @@ public class ZyjhController {
|
|
|
|
zyjhService.updateBatchById(list);
|
|
|
|
zyjhService.updateBatchById(list);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.sendSuccessTips(dto.getDeviceId());
|
|
|
|
return new ResultBean<>();
|
|
|
|
return new ResultBean<>();
|
|
|
|
} catch (NoSuchFieldException | IllegalAccessException e) {
|
|
|
|
} catch (NoSuchFieldException | IllegalAccessException e) {
|
|
|
|
throw new ServiceException(10001,"属性字段不存在");
|
|
|
|
throw new ServiceException(10001,"属性字段不存在");
|
|
|
@ -451,8 +451,6 @@ public class ZyjhController {
|
|
|
|
//更新月度计划上料相关字段
|
|
|
|
//更新月度计划上料相关字段
|
|
|
|
zyjhService.updateForSl(sl);
|
|
|
|
zyjhService.updateForSl(sl);
|
|
|
|
|
|
|
|
|
|
|
|
//todo 更新库存信息
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch (sl.getType()){
|
|
|
|
switch (sl.getType()){
|
|
|
|
case YCL:
|
|
|
|
case YCL:
|
|
|
|
wsHandler.sendSlComplete((JSONObject)JSONObject.toJSON(info));
|
|
|
|
wsHandler.sendSlComplete((JSONObject)JSONObject.toJSON(info));
|
|
|
@ -461,7 +459,7 @@ public class ZyjhController {
|
|
|
|
wsHandler.sendLLComplete((JSONObject)JSONObject.toJSON(info));
|
|
|
|
wsHandler.sendLLComplete((JSONObject)JSONObject.toJSON(info));
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
this.sendSuccessTips(sl.getDeviceId());
|
|
|
|
return new ResultBean<>();
|
|
|
|
return new ResultBean<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -496,8 +494,13 @@ public class ZyjhController {
|
|
|
|
wsHandler.tip(msg.toJson());
|
|
|
|
wsHandler.tip(msg.toJson());
|
|
|
|
if (msg.getCode()==3000){
|
|
|
|
if (msg.getCode()==3000){
|
|
|
|
wsHandler.zyjhzx(msg.toJson());
|
|
|
|
wsHandler.zyjhzx(msg.toJson());
|
|
|
|
|
|
|
|
//this.sendSuccessTips();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return new ResultBean<>();
|
|
|
|
return new ResultBean<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void sendSuccessTips(String deviceId){
|
|
|
|
|
|
|
|
wsHandler.tip((JSONObject) JSONObject.toJSON(new ResultBean<>(deviceId)));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|