首页代码完善实现 #8
@@ -138,32 +138,6 @@ public class PmsProductController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("批量设为积分专区")
|
|
||||||
@RequestMapping(value = "/update/integrationStatus", method = RequestMethod.POST)
|
|
||||||
@ResponseBody
|
|
||||||
public CommonResult updateIntegrationStatus(@RequestParam("ids") List<Long> ids,
|
|
||||||
@RequestParam("pointsAreaStatus") Integer pointsAreaStatus) {
|
|
||||||
int count = productService.updatepointsAreaStatus(ids, pointsAreaStatus);
|
|
||||||
if (count > 0) {
|
|
||||||
return CommonResult.success(count);
|
|
||||||
} else {
|
|
||||||
return CommonResult.failed();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@ApiOperation("批量设为积分兑换专区")
|
|
||||||
@RequestMapping(value = "/update/integrationExchangeStatus", method = RequestMethod.POST)
|
|
||||||
@ResponseBody
|
|
||||||
public CommonResult updateIntegrationExchangeStatus(@RequestParam("ids") List<Long> ids,
|
|
||||||
@RequestParam("pointsExchangeStatus") Integer pointsExchangeStatus) {
|
|
||||||
int count = productService.updatepointsExchangeStatus(ids, pointsExchangeStatus);
|
|
||||||
if (count > 0) {
|
|
||||||
return CommonResult.success(count);
|
|
||||||
} else {
|
|
||||||
return CommonResult.failed();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@ApiOperation("批量修改删除状态")
|
@ApiOperation("批量修改删除状态")
|
||||||
@RequestMapping(value = "/update/deleteStatus", method = RequestMethod.POST)
|
@RequestMapping(value = "/update/deleteStatus", method = RequestMethod.POST)
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
|
|||||||
@@ -60,17 +60,6 @@ public interface PmsProductService {
|
|||||||
*/
|
*/
|
||||||
int updateNewStatus(List<Long> ids, Integer newStatus);
|
int updateNewStatus(List<Long> ids, Integer newStatus);
|
||||||
|
|
||||||
/**
|
|
||||||
*批量设为积分专区
|
|
||||||
*/
|
|
||||||
int updatepointsAreaStatus(List<Long> ids, Integer pointsAreaStatus);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量设为积分兑换专区
|
|
||||||
*/
|
|
||||||
int updatepointsExchangeStatus(List<Long> ids, Integer pointsExchangeStatus);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除商品
|
* 批量删除商品
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -264,26 +264,6 @@ public class PmsProductServiceImpl implements PmsProductService {
|
|||||||
return productMapper.updateByExampleSelective(record, example);
|
return productMapper.updateByExampleSelective(record, example);
|
||||||
}
|
}
|
||||||
|
|
||||||
//积分区域
|
|
||||||
@Override
|
|
||||||
public int updatepointsAreaStatus(List<Long> ids, Integer pointsAreaStatus) {
|
|
||||||
PmsProduct record = new PmsProduct();
|
|
||||||
record.setPointsAreaStatus(pointsAreaStatus);
|
|
||||||
PmsProductExample example = new PmsProductExample();
|
|
||||||
example.createCriteria().andIdIn(ids);
|
|
||||||
return productMapper.updateByExampleSelective(record, example);
|
|
||||||
}
|
|
||||||
|
|
||||||
//积分兑换区域
|
|
||||||
@Override
|
|
||||||
public int updatepointsExchangeStatus(List<Long> ids, Integer pointsExchangeStatus) {
|
|
||||||
PmsProduct record = new PmsProduct();
|
|
||||||
record.setPointsExchangeStatus(pointsExchangeStatus);
|
|
||||||
PmsProductExample example = new PmsProductExample();
|
|
||||||
example.createCriteria().andIdIn(ids);
|
|
||||||
return productMapper.updateByExampleSelective(record, example);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int updateDeleteStatus(List<Long> ids, Integer deleteStatus) {
|
public int updateDeleteStatus(List<Long> ids, Integer deleteStatus) {
|
||||||
|
|||||||
@@ -157,8 +157,7 @@ public class PmsProduct implements Serializable {
|
|||||||
|
|
||||||
@Transient
|
@Transient
|
||||||
private SmsCoupon smsCoupon;
|
private SmsCoupon smsCoupon;
|
||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "评论信息")
|
@ApiModelProperty(value = "评论信息")
|
||||||
@Transient
|
@Transient
|
||||||
private List<PmsComment> pmsComment;
|
private List<PmsComment> pmsComment;
|
||||||
@@ -175,17 +174,18 @@ public class PmsProduct implements Serializable {
|
|||||||
@ApiModelProperty(value = "好评比例")
|
@ApiModelProperty(value = "好评比例")
|
||||||
private PmsComment commentBiLi;
|
private PmsComment commentBiLi;
|
||||||
|
|
||||||
// 会员专区状态
|
@Transient
|
||||||
|
@ApiModelProperty(value = "会员专区状态")
|
||||||
private Integer vipStatus;
|
private Integer vipStatus;
|
||||||
|
|
||||||
// 积分专区状态
|
@Transient
|
||||||
|
@ApiModelProperty(value = "积分专区状态")
|
||||||
private Integer pointsAreaStatus;
|
private Integer pointsAreaStatus;
|
||||||
|
|
||||||
// 积分兑换专区状态
|
@Transient
|
||||||
|
@ApiModelProperty(value = "积分兑换专区状态")
|
||||||
private Integer pointsExchangeStatus;
|
private Integer pointsExchangeStatus;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public List<PmsProductAttribute> getProductAttribute() {
|
public List<PmsProductAttribute> getProductAttribute() {
|
||||||
return productAttribute;
|
return productAttribute;
|
||||||
|
|||||||
@@ -234,6 +234,15 @@
|
|||||||
<if test="newStatus != null">
|
<if test="newStatus != null">
|
||||||
new_status,
|
new_status,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="vipStatus != null">
|
||||||
|
vip_status,
|
||||||
|
</if>
|
||||||
|
<if test="pointsAreaStatus != null">
|
||||||
|
points_area_status,
|
||||||
|
</if>
|
||||||
|
<if test="pointsExchangeStatus != null">
|
||||||
|
points_exchange_status,
|
||||||
|
</if>
|
||||||
<if test="recommandStatus != null">
|
<if test="recommandStatus != null">
|
||||||
recommand_status,
|
recommand_status,
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user