From 0d4f9898e40a797047e054740ef15dedc6c1eaf3 Mon Sep 17 00:00:00 2001 From: yinq <1345442242@qq.com> Date: Tue, 10 Oct 2023 14:58:34 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E9=80=9A=E8=BF=87=E7=94=9F?= =?UTF-8?q?=E4=BA=A7BOM=E7=94=9F=E6=88=90=E7=94=9F=E4=BA=A7=E8=AE=A1?= =?UTF-8?q?=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/aucma/base/domain/BaseOrderInfo.java | 14 ++++ .../mapper/base/BaseOrderInfoMapper.xml | 7 ++ .../controller/ProductPlanInfoController.java | 13 +++- .../production/domain/ProductPlanInfo.java | 18 ++++- .../service/IBaseBomInfoService.java | 7 ++ .../service/IProductPlanInfoService.java | 8 ++ .../service/impl/BaseBomInfoServiceImpl.java | 18 ++++- .../impl/ProductPlanInfoServiceImpl.java | 61 +++++++++++++++ .../production/ProductPlanInfoMapper.xml | 74 ++++++++++--------- 9 files changed, 181 insertions(+), 39 deletions(-) diff --git a/aucma-base/src/main/java/com/aucma/base/domain/BaseOrderInfo.java b/aucma-base/src/main/java/com/aucma/base/domain/BaseOrderInfo.java index 138b2ae..cb6a423 100644 --- a/aucma-base/src/main/java/com/aucma/base/domain/BaseOrderInfo.java +++ b/aucma-base/src/main/java/com/aucma/base/domain/BaseOrderInfo.java @@ -108,6 +108,12 @@ public class BaseOrderInfo extends BaseEntity { @Excel(name = "启用标识") private Long isFlag; + /** + * 是否已下达计划(0-是,1-否) + */ + @Excel(name = "是否已下达计划") + private Long isRelease; + /** * 创建人 */ @@ -141,6 +147,14 @@ public class BaseOrderInfo extends BaseEntity { @Excel(name = "完成日期", width = 30, dateFormat = "yyyy-MM-dd") private Date completeDate; + public Long getIsRelease() { + return isRelease; + } + + public void setIsRelease(Long isRelease) { + this.isRelease = isRelease; + } + public void setObjId(Long objId) { this.objId = objId; } diff --git a/aucma-base/src/main/resources/mapper/base/BaseOrderInfoMapper.xml b/aucma-base/src/main/resources/mapper/base/BaseOrderInfoMapper.xml index 4879b0f..c428617 100644 --- a/aucma-base/src/main/resources/mapper/base/BaseOrderInfoMapper.xml +++ b/aucma-base/src/main/resources/mapper/base/BaseOrderInfoMapper.xml @@ -25,6 +25,7 @@ + @@ -43,6 +44,7 @@ end_date, factory_code, is_flag, + is_release, created_by, created_time, updated_by, @@ -77,7 +79,9 @@ and updated_by = #{updatedBy} and updated_time = #{updatedTime} and complete_date = #{completeDate} + and is_release = #{isRelease} + order by order_code desc - and plan_code like concat(concat('%', #{planCode}), '%') + and pp.plan_code like concat(concat('%', #{planCode}), '%') - and order_code = #{orderCode} - and saleorder_code = #{saleOrderCode} - and saleorder_linenumber = + and pp.order_code = #{orderCode} + and pp.saleorder_code = #{saleOrderCode} + and pp.saleorder_linenumber = #{saleorderLinenumber} - and material_code = #{materialCode} - and material_name like concat(concat('%', + and pp.material_code = #{materialCode} + and pp.material_name like concat(concat('%', #{materialName}), '%') - and productline_code = #{productLineCode} - and plan_amount = #{planAmount} - and complete_amount = #{completeAmount} + and pp.productline_code = #{productLineCode} + and pp.plan_amount = #{planAmount} + and pp.complete_amount = #{completeAmount} - and begin_time between to_date(#{params.beginBeginTime}, 'yyyy-mm-dd hh24:mi:ss') and + and pp.begin_time between to_date(#{params.beginBeginTime}, 'yyyy-mm-dd hh24:mi:ss') and to_date(#{params.endBeginTime}, 'yyyy-mm-dd hh24:mi:ss') - and end_time between to_date(#{params.beginEndTime}, 'yyyy-mm-dd hh24:mi:ss') and + and pp.end_time between to_date(#{params.beginEndTime}, 'yyyy-mm-dd hh24:mi:ss') and to_date(#{params.endEndTime}, 'yyyy-mm-dd hh24:mi:ss') - and is_flag = #{isFlag} - and created_by = #{createdBy} - and created_time = #{createdTime} - and updated_by = #{updatedBy} - and updated_time = #{updatedTime} + and pp.is_flag = #{isFlag} + and pp.created_by = #{createdBy} + and pp.created_time = #{createdTime} + and pp.updated_by = #{updatedBy} + and pp.updated_time = #{updatedTime} + order by pp.plan_code desc