首页代码完善实现
This commit is contained in:
@@ -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("批量修改删除状态")
|
||||
@RequestMapping(value = "/update/deleteStatus", method = RequestMethod.POST)
|
||||
@ResponseBody
|
||||
|
||||
@@ -60,17 +60,6 @@ public interface PmsProductService {
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
//积分区域
|
||||
@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
|
||||
public int updateDeleteStatus(List<Long> ids, Integer deleteStatus) {
|
||||
|
||||
Reference in New Issue
Block a user