Commit c0dccdbb authored by tangwei's avatar tangwei

修改bug

parent a062db1f
...@@ -217,9 +217,9 @@ public class OrgPersonController extends BaseController { ...@@ -217,9 +217,9 @@ public class OrgPersonController extends BaseController {
@RequestMapping(value = "/list", method = RequestMethod.GET) @RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询") @ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public ResponseModel<Object> listPage(@RequestParam Map<String, Object> requestBody) { public ResponseModel<Object> listPage(@RequestParam Map<String, Object> requestBody) {
if(redisUtils.get("userList") != null){ // if(redisUtils.get("userList") != null){
return ResponseHelper.buildResponse(redisUtils.get("userList")); // return ResponseHelper.buildResponse(redisUtils.get("userList"));
} // }
return ResponseHelper.buildResponse(iOrgUsrService.pagePerson( return ResponseHelper.buildResponse(iOrgUsrService.pagePerson(
requestBody.containsKey("pageNum") ? requestBody.get("pageNum").toString() : null , requestBody.containsKey("pageNum") ? requestBody.get("pageNum").toString() : null ,
requestBody.containsKey("pageSize") ? requestBody.get("pageSize").toString() : null , requestBody.containsKey("pageSize") ? requestBody.get("pageSize").toString() : null ,
......
...@@ -646,8 +646,8 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp ...@@ -646,8 +646,8 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
calendar.set(Calendar.MINUTE,0); calendar.set(Calendar.MINUTE,0);
calendar.set(Calendar.MILLISECOND,0); calendar.set(Calendar.MILLISECOND,0);
//当前时间与晚上十二点的秒差 //当前时间与晚上十二点的秒差
Long timeOut = (calendar.getTimeInMillis()-System.currentTimeMillis()) / 1000; // Long timeOut = (calendar.getTimeInMillis()-System.currentTimeMillis()) / 1000;
redisUtils.set("userList", pageBean, timeOut); // redisUtils.set("userList", pageBean, timeOut);
return pageBean; return pageBean;
} }
......
...@@ -525,10 +525,10 @@ public class InputItemController extends AbstractBaseController { ...@@ -525,10 +525,10 @@ public class InputItemController extends AbstractBaseController {
Map<String,Object> map=new HashMap<>(); Map<String,Object> map=new HashMap<>();
map.put("OkScore",param.getOkScore()!=null?param.getOkScore():0); map.put("OkScore",param.getOkScore()!=null?param.getOkScore():0);
map.put("NoScore",param.getNoScore()!=null?param.getNoScore():0); map.put("NoScore",param.getNoScore()!=null?param.getNoScore():0);
map.put("ValidUp",param.getValidUp()!=null?param.getNoScore():""); map.put("ValidUp",param.getValidUp()!=null?param.getValidUp():"");
map.put("ValidDown",param.getValidDown()!=null?param.getNoScore():""); map.put("ValidDown",param.getValidDown()!=null?param.getValidDown():"");
map.put("OkUp",param.getOkUp()!=null?param.getNoScore():""); map.put("OkUp",param.getOkUp()!=null?param.getOkUp():"");
map.put("OkDown",param.getOkDown()!=null?param.getNoScore():""); map.put("OkDown",param.getOkDown()!=null?param.getOkDown():"");
map.put("CheckValidUp",param.getCheckValidUp().equals("false")?false:true); map.put("CheckValidUp",param.getCheckValidUp().equals("false")?false:true);
map.put("CheckValidDown",param.getCheckValidDown().equals("false")?false:true); map.put("CheckValidDown",param.getCheckValidDown().equals("false")?false:true);
map.put("CheckOkUp",param.getCheckOkUp().equals("false")?false:true); map.put("CheckOkUp",param.getCheckOkUp().equals("false")?false:true);
......
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