Commit 4d923797 by hzc

新增通过id集合,或通过code去获取获取短板筛选规则接口。

parent 4f5e6722
......@@ -6,6 +6,7 @@ import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import io.swagger.annotations.ApiParam;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
......@@ -136,4 +137,16 @@ public class ShortboardRuleCtrl {
@RequestParam String code)throws Exception{
return shortboardRuleService.getObjShortboard(compareId, date, compareObjs, driveIds, code);
}
@ApiOperation(value = "根据ids获取批量获取短板筛选规则", notes = "根据ids获取批量获取短板筛选规则")
@PostMapping(value = "/batchSelectByIds")
public List<ShortboardRule> batchSelectByIds(@ApiParam("短板筛选规则id集合") @RequestBody List<Integer> ids){
return shortboardRuleService.getByIdList(ids);
}
@ApiOperation(value = "根据code(机构编码)获取短板筛选规则", notes = "根据code(机构编码)获取短板筛选规则")
@PostMapping(value = "/findByCode")
public List<ShortboardRule> selectByCode(@ApiParam("机构编码") @RequestParam("code") String code){
return shortboardRuleService.selectByCode(code);
}
}
......@@ -31,7 +31,7 @@ public class NoticeInfo extends BaseModel {
@ApiModelProperty("任务id")
private String taskId;
@ApiModelProperty("消息类别 1)数据填报2)数据审核")
@ApiModelProperty("消息类别 1)数据填报2)数据审核3)其他")
private Integer noticeClass;
@ApiModelProperty("跳转路径")
......
......@@ -20,4 +20,7 @@ public interface ShortboardRuleMapper extends BaseMapper<ShortboardRule>{
public void deleteByIdIn(@Param("ids")List<Integer> ids);
public List<ShortboardRule> findByIdList(@Param("ids")List<Integer> ids);
List<ShortboardRule> selectByCode(String code);
}
......@@ -532,4 +532,9 @@ public class ShortboardRuleService {
}
return shortboardRule;
}
public List<ShortboardRule> selectByCode(String code) {
return shortboardRuleMapper.selectByCode(code);
}
}
......@@ -46,4 +46,11 @@
#{id}
</foreach>
</select>
<select id="selectByCode" resultType="com.keymobile.indicators.model.entity.shortboard.ShortboardRule">
select *
from short_board_rule
where code=#{code}
</select>
</mapper>
\ No newline at end of file
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