bug 6273
This commit is contained in:
parent
a466bab26d
commit
50a9a56452
|
|
@ -12,9 +12,9 @@ public class ImportRecipeDishesDTO {
|
|||
@ApiModelProperty("销售数量")
|
||||
private Integer saleNum;
|
||||
@ApiModelProperty("剩余数量")
|
||||
private Integer surplusNum;
|
||||
private Integer remanentNum;
|
||||
@ApiModelProperty("个人限购数量")
|
||||
private Integer restrictNum;
|
||||
private Integer limitNum;
|
||||
@ApiModelProperty("菜品价格(优惠价)")
|
||||
private Integer salePrice;
|
||||
|
||||
|
|
@ -38,12 +38,12 @@ public class ImportRecipeDishesDTO {
|
|||
return this.saleNum;
|
||||
}
|
||||
|
||||
public Integer getSurplusNum() {
|
||||
return this.surplusNum;
|
||||
public Integer getRemanentNum() {
|
||||
return remanentNum;
|
||||
}
|
||||
|
||||
public Integer getRestrictNum() {
|
||||
return this.restrictNum;
|
||||
public Integer getLimitNum() {
|
||||
return limitNum;
|
||||
}
|
||||
|
||||
public Integer getSalePrice() {
|
||||
|
|
@ -75,13 +75,13 @@ public class ImportRecipeDishesDTO {
|
|||
return this;
|
||||
}
|
||||
|
||||
public ImportRecipeDishesDTO setSurplusNum(final Integer surplusNum) {
|
||||
this.surplusNum = surplusNum;
|
||||
public ImportRecipeDishesDTO setRemanentNum(final Integer remanentNum) {
|
||||
this.remanentNum = remanentNum;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ImportRecipeDishesDTO setRestrictNum(final Integer restrictNum) {
|
||||
this.restrictNum = restrictNum;
|
||||
public ImportRecipeDishesDTO setLimitNum(final Integer limitNum) {
|
||||
this.limitNum = limitNum;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ public class CookRecipeImportListener extends AnalysisEventListener<Map<Integer,
|
|||
this.dishesNames.add(dishesName);
|
||||
BigDecimal price = (new BigDecimal((String)integerStringMap.get(i + 1))).multiply(this.decimal);
|
||||
BigDecimal salePrice = (new BigDecimal((String)integerStringMap.get(i + 2))).multiply(this.decimal);
|
||||
importRecipeDishesDto.setSurplusNum(9999).setIndex(i).setDishesName(dishesName).setSaleNum(0).setSupplyNum(9999).setRestrictNum(9999).setPrice(price.intValue()).setSalePrice(salePrice.intValue());
|
||||
importRecipeDishesDto.setRemanentNum(9999).setIndex(i).setDishesName(dishesName).setSaleNum(0).setSupplyNum(9999).setLimitNum(9999).setPrice(price.intValue()).setSalePrice(salePrice.intValue());
|
||||
if (this.datas.containsKey(this.dateMap.get(i))) {
|
||||
((List)this.datas.get(this.dateMap.get(i))).add(importRecipeDishesDto);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue