Skip to content

Commit

Permalink
商品参数编辑问题处理
Browse files Browse the repository at this point in the history
  • Loading branch information
chopper711 committed Jun 25, 2021
1 parent 1b5add1 commit d99a4d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 48 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public class ParameterManagerController {
@Autowired
private ParametersService parametersService;

@Autowired
private GoodsParamsService goodsParamsService;

@ApiOperation(value = "添加参数")
@PostMapping
Expand All @@ -47,9 +45,6 @@ public ResultMessage<Parameters> save(@Valid Parameters parameters) {
public ResultMessage<Parameters> update(@Valid Parameters parameters) {

if (parametersService.updateById(parameters)) {
if (parameters.getIsIndex() != null) {
goodsParamsService.updateParametersIsIndex(parameters.getId(), parameters.getIsIndex());
}
return ResultUtil.data(parameters);
}
throw new ServiceException(ResultCode.PARAMETER_UPDATE_ERROR);
Expand All @@ -60,7 +55,6 @@ public ResultMessage<Parameters> update(@Valid Parameters parameters) {
@DeleteMapping(value = "/{id}")
public ResultMessage<Object> delById(@PathVariable String id) {
parametersService.removeById(id);
goodsParamsService.deleteByParamId(id);
return ResultUtil.success();

}
Expand Down

0 comments on commit d99a4d2

Please sign in to comment.