Browse Source

列表添加脱敏处理

master
Jackwang 3 years ago
parent
commit
5c02f8ce64
  1. 2
      epmet-user/epmet-user-server/src/main/java/com/epmet/controller/ChangeDeathController.java
  2. 2
      epmet-user/epmet-user-server/src/main/java/com/epmet/controller/ChangeRelocationController.java
  3. 2
      epmet-user/epmet-user-server/src/main/java/com/epmet/controller/ChangeWelfareController.java

2
epmet-user/epmet-user-server/src/main/java/com/epmet/controller/ChangeDeathController.java

@ -1,6 +1,7 @@
package com.epmet.controller;
import com.epmet.commons.tools.annotation.LoginUser;
import com.epmet.commons.tools.annotation.MaskResponse;
import com.epmet.commons.tools.aop.NoRepeatSubmit;
import com.epmet.commons.tools.page.PageData;
import com.epmet.commons.tools.security.dto.TokenDto;
@ -36,6 +37,7 @@ public class ChangeDeathController {
private ChangeDeathService changeDeathService;
@RequestMapping("page")
@MaskResponse(fieldNames = {"MOBILE", "ID_CARD"}, fieldsMaskType = {MaskResponse.MASK_TYPE_MOBILE, MaskResponse.MASK_TYPE_ID_CARD})
public Result<PageData<ChangeDeathDTO>> page(@RequestParam Map<String, Object> params){
PageData<ChangeDeathDTO> page = changeDeathService.page(params);
return new Result<PageData<ChangeDeathDTO>>().ok(page);

2
epmet-user/epmet-user-server/src/main/java/com/epmet/controller/ChangeRelocationController.java

@ -1,6 +1,7 @@
package com.epmet.controller;
import com.epmet.commons.tools.annotation.LoginUser;
import com.epmet.commons.tools.annotation.MaskResponse;
import com.epmet.commons.tools.aop.NoRepeatSubmit;
import com.epmet.commons.tools.page.PageData;
import com.epmet.commons.tools.security.dto.TokenDto;
@ -36,6 +37,7 @@ public class ChangeRelocationController {
private ChangeRelocationService changeRelocationService;
@RequestMapping("page")
@MaskResponse(fieldNames = {"MOBILE", "ID_CARD"}, fieldsMaskType = {MaskResponse.MASK_TYPE_MOBILE, MaskResponse.MASK_TYPE_ID_CARD})
public Result<PageData<ChangeRelocationDTO>> page(@RequestParam Map<String, Object> params){
PageData<ChangeRelocationDTO> page = changeRelocationService.page(params);
return new Result<PageData<ChangeRelocationDTO>>().ok(page);

2
epmet-user/epmet-user-server/src/main/java/com/epmet/controller/ChangeWelfareController.java

@ -1,5 +1,6 @@
package com.epmet.controller;
import com.epmet.commons.tools.annotation.MaskResponse;
import com.epmet.commons.tools.aop.NoRepeatSubmit;
import com.epmet.commons.tools.page.PageData;
import com.epmet.commons.tools.utils.ExcelUtils;
@ -35,6 +36,7 @@ public class ChangeWelfareController {
private ChangeWelfareService changeWelfareService;
@RequestMapping("page")
@MaskResponse(fieldNames = {"MOBILE", "ID_CARD"}, fieldsMaskType = {MaskResponse.MASK_TYPE_MOBILE, MaskResponse.MASK_TYPE_ID_CARD})
public Result<PageData<ChangeWelfareDTO>> page(@RequestParam Map<String, Object> params){
PageData<ChangeWelfareDTO> page = changeWelfareService.page(params);
return new Result<PageData<ChangeWelfareDTO>>().ok(page);

Loading…
Cancel
Save