Commit 86d652ec authored by 张森's avatar 张森

条件添加

parent d6626e93
...@@ -88,7 +88,7 @@ public class EmergencyTaskController extends BaseController{ ...@@ -88,7 +88,7 @@ public class EmergencyTaskController extends BaseController{
@ApiOperation(httpMethod = "GET",value = "分工内容列表", notes = "分工内容列表") @ApiOperation(httpMethod = "GET",value = "分工内容列表", notes = "分工内容列表")
@RequestMapping(value = "/list", method = RequestMethod.GET) @RequestMapping(value = "/list", method = RequestMethod.GET)
public CommonResponse list(Long obligationId ,@RequestParam int pageNumber, public CommonResponse list(Long obligationId , @RequestParam(required = false) String planType,@RequestParam int pageNumber,
@RequestParam int pageSize){ @RequestParam int pageSize){
if (pageNumber >=1 ){ if (pageNumber >=1 ){
pageNumber = pageNumber -1 ; pageNumber = pageNumber -1 ;
...@@ -97,8 +97,7 @@ public class EmergencyTaskController extends BaseController{ ...@@ -97,8 +97,7 @@ public class EmergencyTaskController extends BaseController{
obligationId = null; obligationId = null;
} }
CommonPageable commonPageable = new CommonPageable(pageNumber, pageSize); CommonPageable commonPageable = new CommonPageable(pageNumber, pageSize);
String planType = null; if (StringUtils.isEmpty(planType) && redisTemplate.hasKey("planType")) {
if (redisTemplate.hasKey("planType")) {
planType = redisTemplate.boundValueOps("planType").get(0, -1); planType = redisTemplate.boundValueOps("planType").get(0, -1);
} }
Page<EmergencyTaskContent> list = iEmergencyTaskService.list(obligationId, planType, commonPageable); Page<EmergencyTaskContent> list = iEmergencyTaskService.list(obligationId, planType, commonPageable);
......
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