diff --git a/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/order/domain/Order.java b/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/order/domain/Order.java index 23c029b..3a48021 100644 --- a/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/order/domain/Order.java +++ b/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/order/domain/Order.java @@ -62,4 +62,19 @@ public class Order extends BaseEntity @ApiModelProperty("用料") @Size(max = 200, message = "用料长度不能超过200个字符") private String material; + + @Excel(name = "装量") + @ApiModelProperty("装量") + @Min(value = 0, message = "装量不能小于0") + private BigDecimal contentNum; + + @Excel(name = "包装大小") + @ApiModelProperty("包装大小") + @Size(max = 200, message = "包装大小长度不能超过200个字符") + private String packageSize; + + @Excel(name = "名称") + @ApiModelProperty("名称") + private String name; + } diff --git a/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/order/mapper/OrderMapper.xml b/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/order/mapper/OrderMapper.xml index 1bba876..129b2b9 100644 --- a/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/order/mapper/OrderMapper.xml +++ b/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/order/mapper/OrderMapper.xml @@ -20,7 +20,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" bo.deleted, bo.status, bo.order_date, - bo.material + bo.material, + bo.content_num, + bo.package_size, + bo.name from bst_order bo @@ -36,6 +39,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and bo.material like concat('%', #{query.material}, '%') and bo.id != #{query.excludeId} and bo.order_no = #{query.eqOrderNo} + and bo.package_size like concat('%', #{query.packageSize}, '%') + and bo.name like concat('%', #{query.name}, '%') and bo.status in @@ -86,6 +91,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" `status`, order_date, material, + content_num, + package_size, + `name`, #{orderNo}, @@ -100,6 +108,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{status}, #{orderDate}, #{material}, + #{contentNum}, + #{packageSize}, + #{name}, @@ -134,6 +145,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" `status` = #{data.status}, order_date = #{data.orderDate}, material = #{data.material}, + content_num = #{data.contentNum}, + package_size = #{data.packageSize}, + `name` = #{data.name}, diff --git a/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/order/service/impl/OrderConverterImpl.java b/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/order/service/impl/OrderConverterImpl.java index d01ded9..ba5e7e4 100644 --- a/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/order/service/impl/OrderConverterImpl.java +++ b/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/order/service/impl/OrderConverterImpl.java @@ -47,6 +47,9 @@ public class OrderConverterImpl implements OrderConverter { bo.setOrderNo(data.getOrderNo()); bo.setOrderDate(data.getOrderDate()); bo.setMaterial(data.getMaterial()); + bo.setContentNum(data.getContentNum()); + bo.setPackageSize(data.getPackageSize()); + bo.setName(data.getName()); if (submit) { bo.setStatus(OrderStatus.RELEASED.getStatus()); } else { @@ -73,6 +76,9 @@ public class OrderConverterImpl implements OrderConverter { bo.setOrderNo(data.getOrderNo()); bo.setOrderDate(data.getOrderDate()); bo.setMaterial(data.getMaterial()); + bo.setContentNum(data.getContentNum()); + bo.setPackageSize(data.getPackageSize()); + bo.setName(data.getName()); if (submit) { bo.setStatus(OrderStatus.RELEASED.getStatus()); } diff --git a/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/prodProcess/domain/ProdProcessVO.java b/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/prodProcess/domain/ProdProcessVO.java index d63468c..661dacf 100644 --- a/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/prodProcess/domain/ProdProcessVO.java +++ b/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/prodProcess/domain/ProdProcessVO.java @@ -31,6 +31,12 @@ public class ProdProcessVO extends ProdProcess{ @ApiModelProperty("订单日期") private LocalDate orderDate; + @ApiModelProperty("订单装量") + private BigDecimal orderContentNum; + + @ApiModelProperty("订单包装大小") + private String orderPackageSize; + @ApiModelProperty("客户") private String orderCustomer; diff --git a/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/prodProcess/mapper/ProdProcessMapper.xml b/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/prodProcess/mapper/ProdProcessMapper.xml index f71b8d5..866d4ed 100644 --- a/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/prodProcess/mapper/ProdProcessMapper.xml +++ b/common-ruoyi/ruoyi-system/src/main/java/com/ruoyi/bst/prodProcess/mapper/ProdProcessMapper.xml @@ -38,6 +38,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" bo.create_by as order_create_by, bo.create_time as order_create_time, bo.num as order_num, + bo.content_num as order_content_num, + bo.package_size as order_package_size, sd.dept_name as dept_name from bst_prod_process bpp left join bst_order_prod bop on bop.id = bpp.order_prod_id