From 06afd4bd3c3b4273162a3d89301a3a031d8c4c03 Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Fri, 24 May 2024 14:16:45 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E5=93=81=E8=B4=A8=E7=AE=A1=E7=90=86:=20?= =?UTF-8?q?=E9=80=80=E6=8D=A2=E8=B4=A7=20=E6=96=B0=E5=A2=9E=E7=BB=93?= =?UTF-8?q?=E6=A1=88=E6=8E=A5=E5=8F=A3=20=E6=96=B0=E5=A2=9E=E7=BB=93?= =?UTF-8?q?=E6=A1=88=E9=A1=B5=E9=9D=A2closingProcedures.html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../QualityRefundsExchangesController.java | 23 ++++++++++ .../IQualityRefundsExchangesService.java | 3 ++ .../QualityRefundsExchangesServiceImpl.java | 11 +++++ .../refundsExchanges/closingProcedures.html | 46 +++++++++++++++++++ .../refundsExchanges/refundsExchanges.html | 12 +++++ 5 files changed, 95 insertions(+) create mode 100644 ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/closingProcedures.html diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityRefundsExchangesController.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityRefundsExchangesController.java index 1b33d4c1..44c236a9 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityRefundsExchangesController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/controller/QualityRefundsExchangesController.java @@ -140,4 +140,27 @@ public class QualityRefundsExchangesController extends BaseController } + /** + * 结案 + */ + @GetMapping("/closingProcedures/{refundsExchangesId}") + public String closingProcedures(@PathVariable("refundsExchangesId") Long refundsExchangesId, ModelMap mmap) + { + QualityRefundsExchanges qualityRefundsExchanges = qualityRefundsExchangesService.selectQualityRefundsExchangesById(refundsExchangesId); + mmap.put("qualityRefundsExchanges", qualityRefundsExchanges); + return prefix + "/closingProcedures"; + } + + /** + * 修改保存结案 + */ + @RequiresPermissions("quality:refundsExchanges:closingProcedures") + @Log(title = "品质管理退换货单", businessType = BusinessType.UPDATE) + @PostMapping("/closingProcedures") + @ResponseBody + public AjaxResult closingProceduresSave(QualityRefundsExchanges qualityRefundsExchanges) + { + return toAjax(qualityRefundsExchangesService.updateRefundsExchangesStatus(qualityRefundsExchanges)); + } + } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityRefundsExchangesService.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityRefundsExchangesService.java index 8e3cf542..bf8aabcf 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityRefundsExchangesService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/IQualityRefundsExchangesService.java @@ -72,4 +72,7 @@ public interface IQualityRefundsExchangesService * @return */ int restoreQualityRefundsExchangesById(Long refundsExchangesId); + + /*修改退换货状态*/ + int updateRefundsExchangesStatus(QualityRefundsExchanges qualityRefundsExchanges); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityRefundsExchangesServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityRefundsExchangesServiceImpl.java index 31862ddd..17573b23 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityRefundsExchangesServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/quality/service/impl/QualityRefundsExchangesServiceImpl.java @@ -157,6 +157,17 @@ public class QualityRefundsExchangesServiceImpl implements IQualityRefundsExchan return qualityRefundsExchangesMapper.restoreQualityRefundsExchangesById(refundsExchangesId); } + /*修改退换货状态*/ + @Override + public int updateRefundsExchangesStatus(QualityRefundsExchanges qualityRefundsExchanges) { + + String loginName = ShiroUtils.getLoginName(); + qualityRefundsExchanges.setUpdateBy(loginName); + qualityRefundsExchanges.setUpdateTime(DateUtils.getNowDate()); + qualityRefundsExchanges.setRefundsExchangesStatus("1"); + return qualityRefundsExchangesMapper.updateQualityRefundsExchanges(qualityRefundsExchanges); + } + /** *退换货单号: diff --git a/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/closingProcedures.html b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/closingProcedures.html new file mode 100644 index 00000000..71eb673f --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/quality/refundsExchanges/closingProcedures.html @@ -0,0 +1,46 @@ + + +
+