Przeglądaj źródła

面损表流程删除逻辑

fenghaifu 2 lat temu
rodzic
commit
8815f0e68c

+ 12 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/report/controller/FabricLossController.java

@@ -183,7 +183,7 @@ public class FabricLossController {
 	 *  ccode - 计划号
 	 *  actionUser - 执行人
 	 *  actionTime - 执行时间
-	 *  action - 执行内容:提交,面损表初审,面损表终审,面损表初审驳回,面损表终审驳回
+	 *  action - 执行内容:提交,面损表初审,面损表终审,面损表初审驳回,面损表终审驳回,删除
 	 * @return
 	 */
 	@AutoLog(value = "面料损耗-流程回调")
@@ -226,6 +226,17 @@ public class FabricLossController {
 					fabricLossReport.setRejectDate(dtActionTime);
 					fabricLossReport.setStatus("返单");
 					syFabricLossReportService.updateById(fabricLossReport);
+				}else if ("删除".equalsIgnoreCase(action)){
+					fabricLossReport.setFirstApproveBy(null);
+					fabricLossReport.setFirstApproveDate(null);
+					fabricLossReport.setSubmitBy(null);
+					fabricLossReport.setSubmitDate(null);
+					fabricLossReport.setRejectBy(null);
+					fabricLossReport.setRejectDate(null);
+					fabricLossReport.setFinalApproveBy(null);
+					fabricLossReport.setFinalApproveDate(null);
+					fabricLossReport.setStatus("保存");
+					syFabricLossReportService.updateById(fabricLossReport);
 				}
 			}
 			result.success("");