Commit b6e1badb by zhangkb

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

parent 8b03a412
......@@ -74,8 +74,8 @@ public class ObjScoreRuleCtrl {
@ApiOperation(value = "删除", notes = "删除")
@PostMapping(value = "/delete")
public void delete(@RequestParam Integer id) {
scoreRuleService.delete(id);
public void delete(@RequestParam List<Integer> ids) {
scoreRuleService.delete(ids);
}
@ApiOperation(value = "根据单位评分规则目录获取单位评分规则", notes = "根据单位评分规则目录获取单位评分规则")
......
......@@ -74,8 +74,8 @@ public class ShortboardRuleCtrl {
@ApiOperation(value = "删除", notes = "删除")
@PostMapping(value = "/delete")
public void delete(@RequestParam Integer id) {
shortboardRuleService.delete(id);
public void delete(@RequestParam List<Integer> ids) {
shortboardRuleService.delete(ids);
}
@ApiOperation(value = "根据短板筛选规则目录获取短板筛选规则", notes = "根据短板筛选规则目录获取短板筛选规则")
......
......@@ -60,8 +60,10 @@ public class ScoreRuleService {
return scoreRule.getId();
}
public void delete(Integer id) {
scoreRuleMapper.deleteByPrimaryKey(id);
public void delete(List<Integer> ids) {
for(Integer id : ids) {
scoreRuleMapper.deleteByPrimaryKey(id);
}
}
public List<ScoreRule> getAll(String code){
......
......@@ -56,8 +56,10 @@ public class ShortboardRuleService {
return shortboardRule.getId();
}
public void delete(Integer id) {
shortboardRuleMapper.deleteByPrimaryKey(id);
public void delete(List<Integer> ids) {
for(Integer id : ids) {
shortboardRuleMapper.deleteByPrimaryKey(id);
}
}
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