|
@@ -196,14 +196,14 @@ public class MachineController {
|
|
|
ptsMachineLogs.setLogsErrorType(null);
|
|
|
}
|
|
|
|
|
|
- if(!isAbnormality){
|
|
|
PtsMachine ptsMachine2 = new PtsMachine();
|
|
|
ptsMachine2.setMachineId(ptsMachine.getMachineId());
|
|
|
- ptsMachine2.setMachineProcessState(2);
|
|
|
+ if(!isAbnormality){
|
|
|
+ ptsMachine2.setMachineProcessState(2);
|
|
|
+ }
|
|
|
ptsMachine2.setMachineUpdateTime(new Date());
|
|
|
ptsMachine2.setMachineProduceId(produce.getProduceId());
|
|
|
machineService.updateMachine(ptsMachine2);
|
|
|
- }
|
|
|
|
|
|
rj.addResponseKeyValue("barcodeTail",berQrcode.substring(berQrcode.length()-4, berQrcode.length()));
|
|
|
return rj;
|