master:档口需求详情新增仓库冗余字段;

pull/1121/head
liujiang 2025-09-15 10:07:05 +08:00
parent 94100d8f46
commit c2e2ef02d8
3 changed files with 8 additions and 1 deletions

View File

@ -3583,6 +3583,7 @@ CREATE TABLE `store_product_demand_detail`
(
`id` bigint UNSIGNED NOT NULL AUTO_INCREMENT 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_color_id` bigint UNSIGNED NOT NULL COMMENT '档口颜色ID',
`store_prod_id` bigint UNSIGNED NOT NULL COMMENT '档口商品ID',

View File

@ -39,6 +39,11 @@ public class StoreProductDemandDetail extends XktBaseEntity {
@Excel(name = "档口商品需求ID")
private Long storeProdDemandId;
/**
* ID
*/
private Long storeFactoryId;
/**
* ID
*/

View File

@ -167,7 +167,8 @@ public class StoreProductDemandServiceImpl implements IStoreProductDemandService
int count = this.storeProdDemandMapper.insert(demand);
// 生产需求详情
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());
detail.setCreateBy(SecurityUtils.getUsername());
return detail;