Jelajahi Sumber

钢坯装运单添加失败

qiangxuan 5 bulan lalu
induk
melakukan
cfda16ed7b

+ 1 - 1
zgztBus/jeecg-module-sbm/src/main/java/org/jeecg/modules/billet/storageBill/controller/StorageBillController.java

@@ -156,7 +156,7 @@ public class StorageBillController extends JeecgController<StorageBill, IStorage
 			 storageBill.setAmountTotal(0);
 			 storageBill.setShiftGroup(text1);
 			 storageBill.setShift(text2);
-			 String uniqueCode = DateUtils.date2Str(new Date(), DateUtils.yyyymmddhhmmss.get()) + "-" + storageBill.getCcmNo() + "#" +ShiftEnum.fromCode(text1).name()+ "-" + ShiftGroupEnum.fromCode(text1).name();
+			 String uniqueCode = DateUtils.date2Str(new Date(), DateUtils.yyyymmddhhmmss.get()) + "-" + storageBill.getCcmNo() + "#" +ShiftEnum.fromCode(text2).name()+ "-" + ShiftGroupEnum.fromCode(text1).name();
 			 storageBill.setUniqueCode(uniqueCode);
 			 storageBillService.save(storageBill);
 			 operateLogService.add(storageBill,null,StorageBill.class);