From 287fd25b1a21b11d0cf3515d65b216456af1619f Mon Sep 17 00:00:00 2001 From: wangh <123456> Date: Tue, 6 Sep 2022 19:05:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/broad/ZZJXBroadController.java | 3 +- .../ruoyi/system/domain/BaseProductQty.java | 11 +- .../ruoyi/system/mapper/BroadDataMapper.java | 2 + .../system/service/IBroadDataService.java | 4 +- .../service/impl/BroadDataServiceImpl.java | 5 + .../mapper/system/BaseProductQtyMapper.xml | 6 +- .../mapper/system/BroadDataMapper.xml | 105 ++++++++++++++++-- .../templates/system/base_productqty/add.html | 9 +- .../base_productqty/base_productqty.html | 7 +- .../system/base_productqty/edit.html | 9 +- 10 files changed, 143 insertions(+), 18 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/broad/ZZJXBroadController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/broad/ZZJXBroadController.java index 9126936..77c1957 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/broad/ZZJXBroadController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/broad/ZZJXBroadController.java @@ -37,7 +37,8 @@ public class ZZJXBroadController { private String selectProductInByTeam(@PathVariable("id") int id) { if (id == 0) { - int tag = service.zz_countNightProductIn(); +// int tag = service.zz_countNightProductIn(); + int tag = service.zz_countNightProductInTag(); if (tag > 0) { return JSONArray.toJSONString(service.zz_selectProductInByTeamNight()); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/BaseProductQty.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/BaseProductQty.java index 4d9fd1b..5f12710 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/BaseProductQty.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/BaseProductQty.java @@ -28,8 +28,17 @@ public class BaseProductQty extends BaseEntity /** 目标数量 */ @Excel(name = "目标数量") private Long qty; + private Long qtyB; - public void setId(Long id) + public Long getQtyB() { + return qtyB; + } + + public void setQtyB(Long qtyB) { + this.qtyB = qtyB; + } + + public void setId(Long id) { this.id = id; } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/BroadDataMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/BroadDataMapper.java index 456ef80..e7154de 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/BroadDataMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/BroadDataMapper.java @@ -119,4 +119,6 @@ public interface BroadDataMapper { void deleteWorkTime(); void deleteBoxOutput(); + + int zz_countNightProductInTag(); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IBroadDataService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IBroadDataService.java index 3f22738..e7eea93 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/IBroadDataService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IBroadDataService.java @@ -79,7 +79,7 @@ public interface IBroadDataService { List mtk_sselectQATop3(); - + int zz_countNightProductInTag(); List zz_selectLossInfo(int state); List mtk_selectQAZD(); @@ -98,4 +98,6 @@ public interface IBroadDataService { List pqk_selectProductInStore(); + + } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/BroadDataServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/BroadDataServiceImpl.java index 71dd108..82404fc 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/BroadDataServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/BroadDataServiceImpl.java @@ -161,6 +161,11 @@ public class BroadDataServiceImpl implements IBroadDataService return mapper.zz_countNightProductIn(); } + @Override + public int zz_countNightProductInTag() { + return mapper.zz_countNightProductInTag(); + } + @Override public List zz_selectLossInfo(int state) { return mapper.zz_selectLossInfo( state); diff --git a/ruoyi-system/src/main/resources/mapper/system/BaseProductQtyMapper.xml b/ruoyi-system/src/main/resources/mapper/system/BaseProductQtyMapper.xml index 1f5e32c..b546927 100644 --- a/ruoyi-system/src/main/resources/mapper/system/BaseProductQtyMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/BaseProductQtyMapper.xml @@ -10,10 +10,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + - select id, day, qty, create_time, create_by from base_product_qty + select id, day, qty,qty_b, create_time, create_by from base_product_qty + +
+ +
+ +
+
+ diff --git a/ruoyi-system/src/main/resources/templates/system/base_productqty/base_productqty.html b/ruoyi-system/src/main/resources/templates/system/base_productqty/base_productqty.html index 32f5089..15d2f1e 100644 --- a/ruoyi-system/src/main/resources/templates/system/base_productqty/base_productqty.html +++ b/ruoyi-system/src/main/resources/templates/system/base_productqty/base_productqty.html @@ -72,8 +72,13 @@ }, { field: 'qty', - title: '目标数量' + title: '白班目标数量' }, + { + field: 'qtyB', + title: '夜班目标数量' + }, + { field: 'createTime', title: '创建时间' diff --git a/ruoyi-system/src/main/resources/templates/system/base_productqty/edit.html b/ruoyi-system/src/main/resources/templates/system/base_productqty/edit.html index 1279da1..5d01d52 100644 --- a/ruoyi-system/src/main/resources/templates/system/base_productqty/edit.html +++ b/ruoyi-system/src/main/resources/templates/system/base_productqty/edit.html @@ -18,11 +18,18 @@
- +
+
+ +
+ +
+
+