用户经验值设置
This commit is contained in:
@@ -112,9 +112,6 @@ public class DraftGoods extends BaseEntity {
|
||||
@ApiModelProperty(value = "运费模板id")
|
||||
private String templateId;
|
||||
|
||||
@ApiModelProperty(value = "运费承担者")
|
||||
private String freightPayer;
|
||||
|
||||
@ApiModelProperty(value = "是否自营")
|
||||
private Boolean selfOperated;
|
||||
/**
|
||||
|
||||
@@ -66,9 +66,6 @@ public class GoodsOperationDTO implements Serializable {
|
||||
@Max(value = 99999999, message = "重量不能超过99999999")
|
||||
private Double weight;
|
||||
|
||||
@ApiModelProperty(value = "谁承担运费 BUYER:买家承担,STORE:卖家承担", required = true)
|
||||
private String freightPayer;
|
||||
|
||||
@ApiModelProperty(value = "详情")
|
||||
private String intro;
|
||||
|
||||
|
||||
@@ -109,11 +109,10 @@ public interface GoodsService extends IService<Goods> {
|
||||
* 设置商品运费模板
|
||||
*
|
||||
* @param goodsIds 商品列表
|
||||
* @param freightPayer 承担运费者
|
||||
* @param templateId 运费模板ID
|
||||
* @return 操作结果
|
||||
*/
|
||||
Boolean freight(List<String> goodsIds, String freightPayer, String templateId);
|
||||
Boolean freight(List<String> goodsIds, String templateId);
|
||||
|
||||
/**
|
||||
* 修改商品库存数量
|
||||
|
||||
@@ -272,7 +272,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean freight(List<String> goodsIds, String freightPayer, String templateId) {
|
||||
public Boolean freight(List<String> goodsIds, String templateId) {
|
||||
LambdaUpdateWrapper<Goods> lambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
||||
lambdaUpdateWrapper.set(Goods::getTemplateId, templateId);
|
||||
lambdaUpdateWrapper.in(Goods::getId, goodsIds);
|
||||
|
||||
@@ -237,7 +237,9 @@ public class PointsGoodsServiceImpl extends ServiceImpl<PointsGoodsMapper, Point
|
||||
* @param pointsGoods 积分商品信息
|
||||
*/
|
||||
private void addPointsGoodsPromotionTask(PointsGoodsVO pointsGoods) {
|
||||
PromotionMessage promotionMessage = new PromotionMessage(pointsGoods.getId(), PromotionTypeEnum.POINTS_GOODS.name(), PromotionStatusEnum.START.name(), pointsGoods.getStartTime(), pointsGoods.getEndTime());
|
||||
PromotionMessage promotionMessage = new PromotionMessage(pointsGoods.getId(), PromotionTypeEnum.POINTS_GOODS.name(),
|
||||
PromotionStatusEnum.START.name(),
|
||||
pointsGoods.getStartTime(), pointsGoods.getEndTime());
|
||||
TimeTriggerMsg timeTriggerMsg = new TimeTriggerMsg(TimeExecuteConstant.PROMOTION_EXECUTOR,
|
||||
promotionMessage.getStartTime().getTime(),
|
||||
promotionMessage,
|
||||
|
||||
Reference in New Issue
Block a user