新增筛选人员

parent 9ce33dbe
...@@ -59,6 +59,7 @@ public class DqPersonelController { ...@@ -59,6 +59,7 @@ public class DqPersonelController {
@ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType="String") , @ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType="String") ,
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType="String"), @ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType="String"),
@ApiImplicitParam(name = "idcard", value = "身份证号", paramType = "query", dataType="String"), @ApiImplicitParam(name = "idcard", value = "身份证号", paramType = "query", dataType="String"),
@ApiImplicitParam(name = "name", value = "身份证号", paramType = "query", dataType="String"),
@ApiImplicitParam(name = "dqRegionId", value = "社区id", paramType = "query", dataType="int") @ApiImplicitParam(name = "dqRegionId", value = "社区id", paramType = "query", dataType="int")
}) })
@RequiresPermissions("dq:dqpersonel:page") @RequiresPermissions("dq:dqpersonel:page")
......
...@@ -50,6 +50,10 @@ public class DqPersonelServiceImpl extends CrudServiceImpl<DqPersonelDao, DqPers ...@@ -50,6 +50,10 @@ public class DqPersonelServiceImpl extends CrudServiceImpl<DqPersonelDao, DqPers
String idcard = (String)params.get("idcard"); String idcard = (String)params.get("idcard");
wrapper.like("idcard",idcard); wrapper.like("idcard",idcard);
} }
if(params.get("name") !=null){
String name = (String)params.get("name");
wrapper.like("name",name);
}
wrapper.eq(StringUtils.isNotBlank(id), "id", id).orderByDesc("dq_region_id"); wrapper.eq(StringUtils.isNotBlank(id), "id", id).orderByDesc("dq_region_id");
if(params.get(Constant.SQL_FILTER)!=null){ if(params.get(Constant.SQL_FILTER)!=null){
wrapper.apply(params.get(Constant.SQL_FILTER) != null, params.get(Constant.SQL_FILTER).toString()); wrapper.apply(params.get(Constant.SQL_FILTER) != null, params.get(Constant.SQL_FILTER).toString());
......
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