Commit b6e1badb by zhangkb

修改指标计分规则和单位评分规则删除接口

parent 8b03a412
...@@ -74,8 +74,8 @@ public class ObjScoreRuleCtrl { ...@@ -74,8 +74,8 @@ public class ObjScoreRuleCtrl {
@ApiOperation(value = "删除", notes = "删除") @ApiOperation(value = "删除", notes = "删除")
@PostMapping(value = "/delete") @PostMapping(value = "/delete")
public void delete(@RequestParam Integer id) { public void delete(@RequestParam List<Integer> ids) {
scoreRuleService.delete(id); scoreRuleService.delete(ids);
} }
@ApiOperation(value = "根据单位评分规则目录获取单位评分规则", notes = "根据单位评分规则目录获取单位评分规则") @ApiOperation(value = "根据单位评分规则目录获取单位评分规则", notes = "根据单位评分规则目录获取单位评分规则")
......
...@@ -74,8 +74,8 @@ public class ShortboardRuleCtrl { ...@@ -74,8 +74,8 @@ public class ShortboardRuleCtrl {
@ApiOperation(value = "删除", notes = "删除") @ApiOperation(value = "删除", notes = "删除")
@PostMapping(value = "/delete") @PostMapping(value = "/delete")
public void delete(@RequestParam Integer id) { public void delete(@RequestParam List<Integer> ids) {
shortboardRuleService.delete(id); shortboardRuleService.delete(ids);
} }
@ApiOperation(value = "根据短板筛选规则目录获取短板筛选规则", notes = "根据短板筛选规则目录获取短板筛选规则") @ApiOperation(value = "根据短板筛选规则目录获取短板筛选规则", notes = "根据短板筛选规则目录获取短板筛选规则")
......
...@@ -60,8 +60,10 @@ public class ScoreRuleService { ...@@ -60,8 +60,10 @@ public class ScoreRuleService {
return scoreRule.getId(); return scoreRule.getId();
} }
public void delete(Integer id) { public void delete(List<Integer> ids) {
scoreRuleMapper.deleteByPrimaryKey(id); for(Integer id : ids) {
scoreRuleMapper.deleteByPrimaryKey(id);
}
} }
public List<ScoreRule> getAll(String code){ public List<ScoreRule> getAll(String code){
......
...@@ -56,8 +56,10 @@ public class ShortboardRuleService { ...@@ -56,8 +56,10 @@ public class ShortboardRuleService {
return shortboardRule.getId(); return shortboardRule.getId();
} }
public void delete(Integer id) { public void delete(List<Integer> ids) {
shortboardRuleMapper.deleteByPrimaryKey(id); for(Integer id : ids) {
shortboardRuleMapper.deleteByPrimaryKey(id);
}
} }
public Map<String,Object> getByCatalogId(Integer catalogId,int page,int rows){ public Map<String,Object> getByCatalogId(Integer catalogId,int page,int rows){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment