Commit 1afe21cd authored by chenhao's avatar chenhao

提交获取所有消防人员方法的额修改

parent 49c4b9d7
......@@ -174,7 +174,9 @@ public class FirefightersServiceImpl extends BaseService<FirefightersDto, Firefi
if(StringUtils.isNotBlank(jobCode)) {
wrapper.eq(Firefighters::getJobTitleCode, jobCode);
}
wrapper.last("limit "+current+","+size);
if(current!=0) {
wrapper.last("limit "+current+","+size);
}
return this.baseMapper.selectMaps(wrapper);
}
......
......@@ -334,7 +334,7 @@ public class FirefightersController extends BaseController {
@TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/all/fire/person", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "所有的消防人员", notes = "所有的消防人员")
public ResponseModel<Object> getAllFirefightersPerson(@RequestParam int size ,@RequestParam int current,@RequestParam(required = false) String jobCode)throws Exception {
public ResponseModel<Object> getAllFirefightersPerson(@RequestParam int size ,@RequestParam int current,@RequestParam String jobCode)throws Exception {
return ResponseHelper.buildResponse(iFirefightersService.getAllFirefightersPerson(size,current,jobCode));
}
}
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