Showing
7 changed files
with
102 additions
and
14 deletions
| @@ -256,20 +256,23 @@ create table `tbl_holidays` | @@ -256,20 +256,23 @@ create table `tbl_holidays` | ||
| 256 | DROP TABLE IF EXISTS `tbl_replenishment_order`; | 256 | DROP TABLE IF EXISTS `tbl_replenishment_order`; |
| 257 | create table `tbl_replenishment_order` | 257 | create table `tbl_replenishment_order` |
| 258 | ( | 258 | ( |
| 259 | - `id` varchar(32) primary key comment 'ID', | ||
| 260 | - `code` varchar(50) NOT NULL COMMENT '编号', | ||
| 261 | - `workshop_id` varchar(32) comment '分厂', | ||
| 262 | - `dept_id` varchar(32) comment '办事处', | ||
| 263 | - `customer_id` varchar(32) comment '购货单位', | ||
| 264 | - `origin_plan_ship_date` DATE COMMENT '原计划发货日期', | ||
| 265 | - `purchase_order_id` varchar(32) COMMENT '订货单', | ||
| 266 | - `status` varchar(20) comment '状态', | ||
| 267 | - `create_by_id` varchar(32) not null comment '创建人ID', | ||
| 268 | - `create_by` varchar(20) not null comment '创建人', | ||
| 269 | - `update_by_id` varchar(32) not null comment '更新人ID', | ||
| 270 | - `update_by` varchar(20) not null comment '更新人', | ||
| 271 | - `create_time` datetime default now() comment '创建时间', | ||
| 272 | - `update_time` datetime default now() comment '更新时间' | 259 | + `id` varchar(32) primary key comment 'ID', |
| 260 | + `code` varchar(50) NOT NULL COMMENT '编号', | ||
| 261 | + `workshop_id` varchar(32) comment '分厂', | ||
| 262 | + `dept_id` varchar(32) comment '办事处', | ||
| 263 | + `customer_id` varchar(32) comment '购货单位', | ||
| 264 | + `origin_plan_ship_date` DATE COMMENT '原计划发货日期', | ||
| 265 | + `purchase_order_id` varchar(32) COMMENT '订货单', | ||
| 266 | + `total_quantity` decimal(15, 4) COMMENT '总需发', | ||
| 267 | + `total_shipped_quantity` decimal(15, 4) COMMENT '总实发', | ||
| 268 | + `total_supplementary_quantity` decimal(15, 4) COMMENT '总补发', | ||
| 269 | + `status` varchar(20) comment '状态', | ||
| 270 | + `create_by_id` varchar(32) not null comment '创建人ID', | ||
| 271 | + `create_by` varchar(20) not null comment '创建人', | ||
| 272 | + `update_by_id` varchar(32) not null comment '更新人ID', | ||
| 273 | + `update_by` varchar(20) not null comment '更新人', | ||
| 274 | + `create_time` datetime default now() comment '创建时间', | ||
| 275 | + `update_time` datetime default now() comment '更新时间' | ||
| 273 | ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '补货单' ROW_FORMAT = DYNAMIC; | 276 | ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '补货单' ROW_FORMAT = DYNAMIC; |
| 274 | 277 | ||
| 275 | -- 补货单物料行 | 278 | -- 补货单物料行 |
| @@ -7,6 +7,7 @@ import com.lframework.xingyun.sc.entity.ReplenishmentOrder; | @@ -7,6 +7,7 @@ import com.lframework.xingyun.sc.entity.ReplenishmentOrder; | ||
| 7 | import io.swagger.annotations.ApiModelProperty; | 7 | import io.swagger.annotations.ApiModelProperty; |
| 8 | import lombok.Data; | 8 | import lombok.Data; |
| 9 | 9 | ||
| 10 | +import java.math.BigDecimal; | ||
| 10 | import java.time.LocalDate; | 11 | import java.time.LocalDate; |
| 11 | 12 | ||
| 12 | /** | 13 | /** |
| @@ -73,6 +74,24 @@ public class QueryReplenishmentOrderBo extends BaseBo<ReplenishmentOrder> { | @@ -73,6 +74,24 @@ public class QueryReplenishmentOrderBo extends BaseBo<ReplenishmentOrder> { | ||
| 73 | private LocalDate originPlanShipDate; | 74 | private LocalDate originPlanShipDate; |
| 74 | 75 | ||
| 75 | /** | 76 | /** |
| 77 | + * 总需发 | ||
| 78 | + */ | ||
| 79 | + @ApiModelProperty(value = "总需发") | ||
| 80 | + private BigDecimal totalQuantity; | ||
| 81 | + | ||
| 82 | + /** | ||
| 83 | + * 总实发 | ||
| 84 | + */ | ||
| 85 | + @ApiModelProperty(value = "总实发") | ||
| 86 | + private BigDecimal totalShippedQuantity; | ||
| 87 | + | ||
| 88 | + /** | ||
| 89 | + * 总补发 | ||
| 90 | + */ | ||
| 91 | + @ApiModelProperty(value = "总补发") | ||
| 92 | + private BigDecimal totalSupplementaryQuantity; | ||
| 93 | + | ||
| 94 | + /** | ||
| 76 | * 状态 | 95 | * 状态 |
| 77 | */ | 96 | */ |
| 78 | @ApiModelProperty("状态") | 97 | @ApiModelProperty("状态") |
| @@ -7,6 +7,7 @@ import com.lframework.starter.web.core.dto.BaseDto; | @@ -7,6 +7,7 @@ import com.lframework.starter.web.core.dto.BaseDto; | ||
| 7 | import com.lframework.starter.web.core.entity.BaseEntity; | 7 | import com.lframework.starter.web.core.entity.BaseEntity; |
| 8 | import lombok.Data; | 8 | import lombok.Data; |
| 9 | 9 | ||
| 10 | +import java.math.BigDecimal; | ||
| 10 | import java.time.LocalDate; | 11 | import java.time.LocalDate; |
| 11 | import java.time.LocalDateTime; | 12 | import java.time.LocalDateTime; |
| 12 | 13 | ||
| @@ -59,6 +60,21 @@ public class ReplenishmentOrder extends BaseEntity implements BaseDto { | @@ -59,6 +60,21 @@ public class ReplenishmentOrder extends BaseEntity implements BaseDto { | ||
| 59 | private String purchaseOrderId; | 60 | private String purchaseOrderId; |
| 60 | 61 | ||
| 61 | /** | 62 | /** |
| 63 | + * 总需发 | ||
| 64 | + */ | ||
| 65 | + private BigDecimal totalQuantity; | ||
| 66 | + | ||
| 67 | + /** | ||
| 68 | + * 总实发 | ||
| 69 | + */ | ||
| 70 | + private BigDecimal totalShippedQuantity; | ||
| 71 | + | ||
| 72 | + /** | ||
| 73 | + * 总补发 | ||
| 74 | + */ | ||
| 75 | + private BigDecimal totalSupplementaryQuantity; | ||
| 76 | + | ||
| 77 | + /** | ||
| 62 | * 状态 | 78 | * 状态 |
| 63 | */ | 79 | */ |
| 64 | private String status; | 80 | private String status; |
| @@ -111,6 +111,9 @@ public class ReplenishmentOrderServiceImpl extends BaseMpServiceImpl<Replenishme | @@ -111,6 +111,9 @@ public class ReplenishmentOrderServiceImpl extends BaseMpServiceImpl<Replenishme | ||
| 111 | data.setCustomerId(vo.getCustomerId()); | 111 | data.setCustomerId(vo.getCustomerId()); |
| 112 | data.setOriginPlanShipDate(vo.getOriginPlanShipDate()); | 112 | data.setOriginPlanShipDate(vo.getOriginPlanShipDate()); |
| 113 | data.setPurchaseOrderId(vo.getPurchaseOrderId()); | 113 | data.setPurchaseOrderId(vo.getPurchaseOrderId()); |
| 114 | + data.setTotalQuantity(vo.getTotalQuantity()); | ||
| 115 | + data.setTotalShippedQuantity(vo.getTotalShippedQuantity()); | ||
| 116 | + data.setTotalSupplementaryQuantity(vo.getTotalSupplementaryQuantity()); | ||
| 114 | data.setStatus("AUDIT"); | 117 | data.setStatus("AUDIT"); |
| 115 | 118 | ||
| 116 | getBaseMapper().insert(data); | 119 | getBaseMapper().insert(data); |
| @@ -152,6 +155,9 @@ public class ReplenishmentOrderServiceImpl extends BaseMpServiceImpl<Replenishme | @@ -152,6 +155,9 @@ public class ReplenishmentOrderServiceImpl extends BaseMpServiceImpl<Replenishme | ||
| 152 | .set(ReplenishmentOrder::getCustomerId, vo.getCustomerId()) | 155 | .set(ReplenishmentOrder::getCustomerId, vo.getCustomerId()) |
| 153 | .set(ReplenishmentOrder::getOriginPlanShipDate, vo.getOriginPlanShipDate()) | 156 | .set(ReplenishmentOrder::getOriginPlanShipDate, vo.getOriginPlanShipDate()) |
| 154 | .set(ReplenishmentOrder::getPurchaseOrderId, vo.getPurchaseOrderId()) | 157 | .set(ReplenishmentOrder::getPurchaseOrderId, vo.getPurchaseOrderId()) |
| 158 | + .set(ReplenishmentOrder::getTotalQuantity, vo.getTotalQuantity()) | ||
| 159 | + .set(ReplenishmentOrder::getTotalShippedQuantity, vo.getTotalShippedQuantity()) | ||
| 160 | + .set(ReplenishmentOrder::getTotalSupplementaryQuantity, vo.getTotalSupplementaryQuantity()) | ||
| 155 | .set(ReplenishmentOrder::getStatus, "AUDIT") | 161 | .set(ReplenishmentOrder::getStatus, "AUDIT") |
| 156 | .eq(ReplenishmentOrder::getId, vo.getId()); | 162 | .eq(ReplenishmentOrder::getId, vo.getId()); |
| 157 | 163 |
| @@ -9,6 +9,7 @@ import org.hibernate.validator.constraints.Length; | @@ -9,6 +9,7 @@ import org.hibernate.validator.constraints.Length; | ||
| 9 | import javax.validation.constraints.NotBlank; | 9 | import javax.validation.constraints.NotBlank; |
| 10 | import javax.validation.constraints.NotNull; | 10 | import javax.validation.constraints.NotNull; |
| 11 | import java.io.Serializable; | 11 | import java.io.Serializable; |
| 12 | +import java.math.BigDecimal; | ||
| 12 | import java.time.LocalDate; | 13 | import java.time.LocalDate; |
| 13 | import java.util.List; | 14 | import java.util.List; |
| 14 | 15 | ||
| @@ -60,6 +61,24 @@ public class CreateReplenishmentOrderVo implements BaseVo, Serializable { | @@ -60,6 +61,24 @@ public class CreateReplenishmentOrderVo implements BaseVo, Serializable { | ||
| 60 | private String purchaseOrderId; | 61 | private String purchaseOrderId; |
| 61 | 62 | ||
| 62 | /** | 63 | /** |
| 64 | + * 总需发 | ||
| 65 | + */ | ||
| 66 | + @ApiModelProperty(value = "总需发") | ||
| 67 | + private BigDecimal totalQuantity; | ||
| 68 | + | ||
| 69 | + /** | ||
| 70 | + * 总实发 | ||
| 71 | + */ | ||
| 72 | + @ApiModelProperty(value = "总实发") | ||
| 73 | + private BigDecimal totalShippedQuantity; | ||
| 74 | + | ||
| 75 | + /** | ||
| 76 | + * 总补发 | ||
| 77 | + */ | ||
| 78 | + @ApiModelProperty(value = "总补发") | ||
| 79 | + private BigDecimal totalSupplementaryQuantity; | ||
| 80 | + | ||
| 81 | + /** | ||
| 63 | * 状态 | 82 | * 状态 |
| 64 | */ | 83 | */ |
| 65 | @ApiModelProperty(value = "状态") | 84 | @ApiModelProperty(value = "状态") |
| @@ -9,6 +9,7 @@ import org.hibernate.validator.constraints.Length; | @@ -9,6 +9,7 @@ import org.hibernate.validator.constraints.Length; | ||
| 9 | import javax.validation.constraints.NotBlank; | 9 | import javax.validation.constraints.NotBlank; |
| 10 | import javax.validation.constraints.NotNull; | 10 | import javax.validation.constraints.NotNull; |
| 11 | import java.io.Serializable; | 11 | import java.io.Serializable; |
| 12 | +import java.math.BigDecimal; | ||
| 12 | import java.time.LocalDate; | 13 | import java.time.LocalDate; |
| 13 | import java.util.List; | 14 | import java.util.List; |
| 14 | 15 | ||
| @@ -73,6 +74,24 @@ public class UpdateReplenishmentOrderVo implements BaseVo, Serializable { | @@ -73,6 +74,24 @@ public class UpdateReplenishmentOrderVo implements BaseVo, Serializable { | ||
| 73 | private String purchaseOrderId; | 74 | private String purchaseOrderId; |
| 74 | 75 | ||
| 75 | /** | 76 | /** |
| 77 | + * 总需发 | ||
| 78 | + */ | ||
| 79 | + @ApiModelProperty(value = "总需发") | ||
| 80 | + private BigDecimal totalQuantity; | ||
| 81 | + | ||
| 82 | + /** | ||
| 83 | + * 总实发 | ||
| 84 | + */ | ||
| 85 | + @ApiModelProperty(value = "总实发") | ||
| 86 | + private BigDecimal totalShippedQuantity; | ||
| 87 | + | ||
| 88 | + /** | ||
| 89 | + * 总补发 | ||
| 90 | + */ | ||
| 91 | + @ApiModelProperty(value = "总补发") | ||
| 92 | + private BigDecimal totalSupplementaryQuantity; | ||
| 93 | + | ||
| 94 | + /** | ||
| 76 | * 补货单物料行 | 95 | * 补货单物料行 |
| 77 | */ | 96 | */ |
| 78 | @ApiModelProperty("补货单物料行") | 97 | @ApiModelProperty("补货单物料行") |
| @@ -10,6 +10,9 @@ | @@ -10,6 +10,9 @@ | ||
| 10 | <result column="customer_id" property="customerId"/> | 10 | <result column="customer_id" property="customerId"/> |
| 11 | <result column="origin_plan_ship_date" property="originPlanShipDate"/> | 11 | <result column="origin_plan_ship_date" property="originPlanShipDate"/> |
| 12 | <result column="purchase_order_id" property="purchaseOrderId"/> | 12 | <result column="purchase_order_id" property="purchaseOrderId"/> |
| 13 | + <result column="total_quantity" property="totalQuantity"/> | ||
| 14 | + <result column="total_shipped_quantity" property="totalShippedQuantity"/> | ||
| 15 | + <result column="total_supplementary_quantity" property="totalSupplementaryQuantity"/> | ||
| 13 | <result column="status" property="status"/> | 16 | <result column="status" property="status"/> |
| 14 | <result column="create_by_id" property="createById"/> | 17 | <result column="create_by_id" property="createById"/> |
| 15 | <result column="create_by" property="createBy"/> | 18 | <result column="create_by" property="createBy"/> |
| @@ -27,6 +30,9 @@ | @@ -27,6 +30,9 @@ | ||
| 27 | tb.customer_id, | 30 | tb.customer_id, |
| 28 | tb.origin_plan_ship_date, | 31 | tb.origin_plan_ship_date, |
| 29 | tb.purchase_order_id, | 32 | tb.purchase_order_id, |
| 33 | + tb.total_quantity, | ||
| 34 | + tb.total_shipped_quantity, | ||
| 35 | + tb.total_supplementary_quantity, | ||
| 30 | tb.status, | 36 | tb.status, |
| 31 | tb.create_by_id, | 37 | tb.create_by_id, |
| 32 | tb.create_by, | 38 | tb.create_by, |