diff --git a/aucma-base/src/main/java/com/aucma/base/controller/OrderBomInfoController.java b/aucma-base/src/main/java/com/aucma/base/controller/OrderBomInfoController.java index b1ed300..2131c50 100644 --- a/aucma-base/src/main/java/com/aucma/base/controller/OrderBomInfoController.java +++ b/aucma-base/src/main/java/com/aucma/base/controller/OrderBomInfoController.java @@ -3,6 +3,7 @@ package com.aucma.base.controller; import java.util.List; import javax.servlet.http.HttpServletResponse; +import com.aucma.common.core.page.TableDataInfo; import com.aucma.common.utils.DateUtils; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Autowired; @@ -39,9 +40,10 @@ public class OrderBomInfoController extends BaseController { */ @PreAuthorize("@ss.hasPermi('base:orderBomInfo:list')") @GetMapping("/list") - public AjaxResult list(OrderBomInfo orderBomInfo) { + public TableDataInfo list(OrderBomInfo orderBomInfo) { + startPage(); List list = orderBomInfoService.selectOrderBomInfoList(orderBomInfo); - return success(list); + return getDataTable(list); } /** 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 bom_code = #{bomCode} - and material_code = #{materialCode} - and material_name like concat(concat('%', #{materialName}), '%') - and material_type = #{materialType} - and standard_amount = #{standardAmount} - and parent_id = #{parentId} - and plant_code = #{plantCode} - and product_line_code = #{productLineCode} - and is_flag = #{isFlag} - and created_by = #{createdBy} - and created_time = #{createdTime} - and updated_by = #{updatedBy} - and updated_time = #{updatedTime} - and ancestors like concat(concat('%', #{ancestors}), '%') + and bb.bom_code = #{bomCode} + and bb.material_code = #{materialCode} + and bb.material_name like concat(concat('%', #{materialName}), '%') + and bb.material_type = #{materialType} + and bb.standard_amount = #{standardAmount} + and bb.parent_id = #{parentId} + and bb.plant_code = #{plantCode} + and bb.product_line_code = #{productLineCode} + and bb.is_flag = #{isFlag} + and bb.created_by = #{createdBy} + and bb.created_time = #{createdTime} + and bb.updated_by = #{updatedBy} + and bb.updated_time = #{updatedTime} + and bb.ancestors like concat(concat('%', #{ancestors}), '%') + order by bb.created_time 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