用户经验值设置

This commit is contained in:
lifenlong
2021-06-05 17:13:04 +08:00
parent e379a2eb34
commit bbe01e9e67
9 changed files with 30 additions and 18 deletions

View File

@@ -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;
/**

View File

@@ -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;

View File

@@ -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);
/**
* 修改商品库存数量

View File

@@ -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);

View File

@@ -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,