From 62ed341ec5c10041669b189e094d53b6cdc44bda Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Mon, 29 Jul 2024 15:27:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E9=80=80=E6=96=99=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bonus/sgzb/common/core/constant/Constants.java | 6 ++++++ .../material/controller/BackApplyController.java | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/sgzb-common/sgzb-common-core/src/main/java/com/bonus/sgzb/common/core/constant/Constants.java b/sgzb-common/sgzb-common-core/src/main/java/com/bonus/sgzb/common/core/constant/Constants.java index 203e01a8..fa7e626a 100644 --- a/sgzb-common/sgzb-common-core/src/main/java/com/bonus/sgzb/common/core/constant/Constants.java +++ b/sgzb-common/sgzb-common-core/src/main/java/com/bonus/sgzb/common/core/constant/Constants.java @@ -158,4 +158,10 @@ public class Constants /** 调试分公司*/ public static final String TS = "调试分公司"; + /** 退库任务*/ + public static final int BACK_TASK_TYPE = 36; //退料核查中 + + /** 退库状态 - 退料核查中*/ + public static final String BACK_CHECKING_STATUS = "39"; //退料核查中 + } diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/BackApplyController.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/BackApplyController.java index 9c5fa296..3d8c078d 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/BackApplyController.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/controller/BackApplyController.java @@ -2,6 +2,7 @@ package com.bonus.sgzb.material.controller; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.convert.Convert; +import com.bonus.sgzb.common.core.constant.Constants; import com.bonus.sgzb.common.core.utils.DateUtils; import com.bonus.sgzb.common.core.utils.ListPagingUtil; import com.bonus.sgzb.common.core.utils.ServletUtils; @@ -162,8 +163,8 @@ public class BackApplyController extends BaseController { return AjaxResult.error("后台退料编号生成异常,请重试!"); } bean.setCode(code); - bean.setTaskType(36); - bean.setTaskStatus("37"); + bean.setTaskType(Constants.BACK_TASK_TYPE); + bean.setTaskStatus(Constants.BACK_CHECKING_STATUS); // 创建任务 boolean addTaskResult = backApplyService.insertSelective(bean) > 0; if (addTaskResult && bean.getTaskId() != null) { @@ -251,8 +252,8 @@ public class BackApplyController extends BaseController { return AjaxResult.error("后台退料编号生成异常,请重试!"); } bean.setCode(code); - bean.setTaskType(36); - bean.setTaskStatus("38"); + bean.setTaskType(Constants.BACK_TASK_TYPE); + bean.setTaskStatus(Constants.BACK_CHECKING_STATUS); bean.setCreateBy(SecurityUtils.getLoginUser().getUserid().toString()); // 创建任务 boolean addTaskResult = backApplyService.insertSelective(bean) > 0; @@ -350,8 +351,8 @@ public class BackApplyController extends BaseController { return AjaxResult.error("后台退料编号生成异常,请重试!"); } bean.setCode(code); - bean.setTaskType(36); - bean.setTaskStatus("37"); + bean.setTaskType(Constants.BACK_TASK_TYPE); + bean.setTaskStatus(Constants.BACK_CHECKING_STATUS); boolean addTaskResult = backApplyService.insertSelective(bean) > 0; // 创建任务 if (addTaskResult && bean.getTaskId() != null) {