master:提交生产需求功能完善;
parent
45f17367d8
commit
0087c565d4
|
|
@ -21,6 +21,8 @@ public class StoreProdDemandQuantityVO {
|
|||
private Long storeId;
|
||||
@ApiModelProperty(value = "档口商品ID")
|
||||
private Long storeProdId;
|
||||
@ApiModelProperty(value = "档口颜色ID")
|
||||
private Long storeColorId;
|
||||
@ApiModelProperty(value = "档口商品颜色ID")
|
||||
private Long storeProdColorId;
|
||||
@ApiModelProperty(value = "货号")
|
||||
|
|
|
|||
|
|
@ -42,6 +42,9 @@ public class StoreProdDemandVO {
|
|||
@NotNull(message = "档口商品颜色ID不能为空")
|
||||
@ApiModelProperty(value = "档口商品颜色ID", required = true)
|
||||
private Long storeProdColorId;
|
||||
@NotNull(message = "档口颜色ID不能为空")
|
||||
@ApiModelProperty(value = "档口颜色ID")
|
||||
private Long storeColorId;
|
||||
@NotBlank(message = "货号不能为空")
|
||||
@ApiModelProperty(value = "货号", required = true)
|
||||
private String prodArtNum;
|
||||
|
|
|
|||
|
|
@ -45,6 +45,11 @@ public class StoreProductDemandDetail extends XktBaseEntity {
|
|||
@Excel(name = "档口商品颜色ID")
|
||||
private Long storeProdColorId;
|
||||
|
||||
/**
|
||||
* 档口颜色ID
|
||||
*/
|
||||
private Long storeColorId;
|
||||
|
||||
/**
|
||||
* 档口商品货号
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
|
@ -30,6 +31,8 @@ public class StoreProdDemandDTO {
|
|||
private Long storeProdId;
|
||||
@ApiModelProperty(value = "档口商品颜色ID")
|
||||
private Long storeProdColorId;
|
||||
@ApiModelProperty(value = "档口颜色ID")
|
||||
private Long storeColorId;
|
||||
@ApiModelProperty(value = "货号")
|
||||
private String prodArtNum;
|
||||
@ApiModelProperty(value = "颜色")
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.ruoyi.xkt.dto.storeProductDemand;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
|
@ -33,6 +34,12 @@ public class StoreProdDemandPageResDTO {
|
|||
private String prodArtNum;
|
||||
@ApiModelProperty(value = "颜色")
|
||||
private String colorName;
|
||||
@ApiModelProperty(value = "档口商品颜色ID")
|
||||
private Long storeProdColorId;
|
||||
@ApiModelProperty(value = "档口颜色ID")
|
||||
private Long storeColorId;
|
||||
@ApiModelProperty(value = "档口商品ID")
|
||||
private Long storeProdId;
|
||||
@ApiModelProperty(value = "生产状态")
|
||||
private Integer detailStatus;
|
||||
@ApiModelProperty(value = "紧急单还是正常单")
|
||||
|
|
|
|||
|
|
@ -19,6 +19,8 @@ public class StoreProdDemandQuantityDTO {
|
|||
private Long storeId;
|
||||
@ApiModelProperty(value = "档口商品ID")
|
||||
private Long storeProdId;
|
||||
@ApiModelProperty(value = "档口颜色ID")
|
||||
private Long storeColorId;
|
||||
@ApiModelProperty(value = "档口商品颜色ID")
|
||||
private Long storeProdColorId;
|
||||
@ApiModelProperty(value = "货号")
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ public class StoreProductDemandServiceImpl implements IStoreProductDemandService
|
|||
List<Integer> size42List = Arrays.asList(ObjectUtils.isNotEmpty(stock) && ObjectUtils.isNotEmpty(stock.getSize42()) ? stock.getSize42() : 0, size42Demand);
|
||||
List<Integer> size43List = Arrays.asList(ObjectUtils.isNotEmpty(stock) && ObjectUtils.isNotEmpty(stock.getSize43()) ? stock.getSize43() : 0, size43Demand);
|
||||
return StoreProdDemandQuantityDTO.builder().storeId(storeId).storeProdId(storeProd.getId()).storeProdColorId(prodColor.getId())
|
||||
.prodArtNum(storeProd.getProdArtNum()).colorName(prodColor.getColorName()).compareStrList(compareStrList)
|
||||
.storeColorId(prodColor.getStoreColorId()).prodArtNum(storeProd.getProdArtNum()).colorName(prodColor.getColorName()).compareStrList(compareStrList)
|
||||
// 判断 demandDetailList 中是否有 createTime 为当天的对象
|
||||
.todaySubmitted(demandDetailList.stream().anyMatch(detail -> DateUtils.isSameDay(detail.getCreateTime(), new Date())))
|
||||
.size30List(size30List).size31List(size31List).size32List(size32List).size33List(size33List).size34List(size34List).size35List(size35List)
|
||||
|
|
@ -168,7 +168,7 @@ public class StoreProductDemandServiceImpl implements IStoreProductDemandService
|
|||
// 生产需求详情
|
||||
List<StoreProductDemandDetail> detailList = demandDTO.getDetailList().stream().map(x -> {
|
||||
StoreProductDemandDetail detail = BeanUtil.toBean(x, StoreProductDemandDetail.class).setStoreId(demandDTO.getStoreId())
|
||||
.setStoreProdDemandId(demand.getId()).setDetailStatus(1);
|
||||
.setStoreProdDemandId(demand.getId()).setDetailStatus(DemandStatus.PENDING_PRODUCTION.getValue());
|
||||
detail.setCreateBy(SecurityUtils.getUsername());
|
||||
return detail;
|
||||
}).collect(Collectors.toList());
|
||||
|
|
|
|||
Loading…
Reference in New Issue