master:档口需求详情新增仓库冗余字段;
parent
94100d8f46
commit
c2e2ef02d8
|
|
@ -3583,6 +3583,7 @@ CREATE TABLE `store_product_demand_detail`
|
||||||
(
|
(
|
||||||
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '档口商品需求明细ID',
|
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '档口商品需求明细ID',
|
||||||
`store_prod_demand_id` bigint UNSIGNED NOT NULL COMMENT '档口商品需求ID',
|
`store_prod_demand_id` bigint UNSIGNED NOT NULL COMMENT '档口商品需求ID',
|
||||||
|
`store_factory_id` bigint UNSIGNED NOT NULL COMMENT '档口工厂ID',
|
||||||
`store_prod_color_id` bigint UNSIGNED NOT NULL COMMENT '档口商品颜色ID',
|
`store_prod_color_id` bigint UNSIGNED NOT NULL COMMENT '档口商品颜色ID',
|
||||||
`store_color_id` bigint UNSIGNED NOT NULL COMMENT '档口颜色ID',
|
`store_color_id` bigint UNSIGNED NOT NULL COMMENT '档口颜色ID',
|
||||||
`store_prod_id` bigint UNSIGNED NOT NULL COMMENT '档口商品ID',
|
`store_prod_id` bigint UNSIGNED NOT NULL COMMENT '档口商品ID',
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,11 @@ public class StoreProductDemandDetail extends XktBaseEntity {
|
||||||
@Excel(name = "档口商品需求ID")
|
@Excel(name = "档口商品需求ID")
|
||||||
private Long storeProdDemandId;
|
private Long storeProdDemandId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 档口工厂ID
|
||||||
|
*/
|
||||||
|
private Long storeFactoryId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 档口商品颜色ID
|
* 档口商品颜色ID
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -167,7 +167,8 @@ public class StoreProductDemandServiceImpl implements IStoreProductDemandService
|
||||||
int count = this.storeProdDemandMapper.insert(demand);
|
int count = this.storeProdDemandMapper.insert(demand);
|
||||||
// 生产需求详情
|
// 生产需求详情
|
||||||
List<StoreProductDemandDetail> detailList = demandDTO.getDetailList().stream().map(x -> {
|
List<StoreProductDemandDetail> detailList = demandDTO.getDetailList().stream().map(x -> {
|
||||||
StoreProductDemandDetail detail = BeanUtil.toBean(x, StoreProductDemandDetail.class).setStoreId(demandDTO.getStoreId())
|
StoreProductDemandDetail detail = BeanUtil.toBean(x, StoreProductDemandDetail.class)
|
||||||
|
.setStoreId(demandDTO.getStoreId()).setStoreFactoryId(demandDTO.getStoreFactoryId())
|
||||||
.setStoreProdDemandId(demand.getId()).setDetailStatus(DemandStatus.PENDING_PRODUCTION.getValue());
|
.setStoreProdDemandId(demand.getId()).setDetailStatus(DemandStatus.PENDING_PRODUCTION.getValue());
|
||||||
detail.setCreateBy(SecurityUtils.getUsername());
|
detail.setCreateBy(SecurityUtils.getUsername());
|
||||||
return detail;
|
return detail;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue