修复行政处罚修复查询功能
This commit is contained in:
parent
9251d39b07
commit
65c29ed33d
|
|
@ -127,15 +127,14 @@ public class TBizRemPunishmentController extends BaseController {
|
|||
@PostMapping("/punishmentList")
|
||||
public RestResult<IPage<?>> punishmentList(@RequestBody PageRequestDto pageRequestDto) {
|
||||
AICUser curUser = SSOUtil.getUser();
|
||||
System.out.println(curUser.toString());
|
||||
|
||||
//获取当前用户所在辖区
|
||||
String region = "";
|
||||
if (curUser.getOrgName().indexOf("区") != -1) {
|
||||
region=curUser.getOrgName().substring(curUser.getOrgName().indexOf("市") == -1? 0 : curUser.getOrgName().indexOf("市") + 1, curUser.getOrgName().indexOf("区"));
|
||||
} else {
|
||||
region="市";
|
||||
}
|
||||
String region = curUser.getRegionID();
|
||||
// if (curUser.getOrgName().indexOf("区") != -1) {
|
||||
// region=curUser.getOrgName().substring(curUser.getOrgName().indexOf("市") == -1? 0 : curUser.getOrgName().indexOf("市") + 1, curUser.getOrgName().indexOf("区"));
|
||||
// } else {
|
||||
// region="市";
|
||||
// }
|
||||
System.out.println(region);
|
||||
pageRequestDto.getParamMap().put("region",region);
|
||||
IPage<TbIlcPunInfoQuery> iPage = tbIlcPunInfoQueryService.searchByPage(new Page<>(pageRequestDto.getCurPage(), pageRequestDto.getPageSize()), pageRequestDto.getParamMap());
|
||||
|
|
|
|||
|
|
@ -81,25 +81,10 @@
|
|||
from case_pub_nbaseinfo
|
||||
where ACTYPE = '1'
|
||||
<if test="params.region != null and params.region!= '' and params.region!= '市'.toString()">
|
||||
and PENAUTH_CN like concat('%', #{params.region}, '%')
|
||||
and PENAUTH like concat(#{params.region}, '%')
|
||||
</if>
|
||||
|
||||
<if test="params.region != null and params.region!= '' and params.region == '市'.toString()">
|
||||
and PENAUTH_CN not like '%荔湾%'
|
||||
and PENAUTH_CN not like '%越秀%'
|
||||
and PENAUTH_CN not like '%海珠%'
|
||||
and PENAUTH_CN not like '%天河%'
|
||||
and PENAUTH_CN not like '%南沙%'
|
||||
and PENAUTH_CN not like '%白云%'
|
||||
and PENAUTH_CN not like '%黄埔%'
|
||||
and PENAUTH_CN not like '%花都%'
|
||||
and PENAUTH_CN not like '%从化%'
|
||||
and PENAUTH_CN not like '%增城%'
|
||||
and PENAUTH_CN not like '%番禺%'
|
||||
</if>
|
||||
|
||||
<if test="params.uniscid != null and params.uniscid!= ''">
|
||||
and uniscid = #{params.uniscid}
|
||||
and (uniscid = #{params.uniscid} or REGNO = #{params.uniscid})
|
||||
</if>
|
||||
<if test="params.dsrmc != null and params.dsrmc != ''">
|
||||
and ENTNAME like concat('%', #{params.dsrmc}, '%')
|
||||
|
|
|
|||
Loading…
Reference in New Issue