Kaynağa Gözat

修复固化时长不提交BUG

jingbo 1 hafta önce
ebeveyn
işleme
bc33987ab8

+ 2 - 1
src/main/java/com/jeesite/modules/scheduling/ProductGh.java

@@ -80,7 +80,7 @@ public class ProductGh {
                     //差别时间转化为秒
                     mesProductRecord = new MesProductRecord();
                     mesProductRecord.setSn(deviceTime.getSn());
-                    mesProductRecord.setOprno(deviceTime.getOprno());
+                    mesProductRecord.setOprno(CommonUitl.formatOprno(deviceTime.getOprno()));
                     mesProductRecord.setLineSn(deviceTime.getProductCate());
                     mesProductRecord.setCraft("100000");
 
@@ -89,6 +89,7 @@ public class ProductGh {
                         //修改生产记录固化时间
                         mesProductRecord1.setContent("OK");
                         mesProductRecord1.setMaterielSn(String.valueOf(time));
+                        mesProductRecord1.setOprno(deviceTime.getOprno());
                         mesProductRecordService.update(mesProductRecord1);
                     }
                 }