Commit 2f8caedd by guojuxing

pmd

parent cd7dc451
...@@ -298,7 +298,26 @@ public class MenuController { ...@@ -298,7 +298,26 @@ public class MenuController {
ServiceResponse<Page<SystemSetLogDTO>> response = logApiService.listSystemSetLog(pageQO.getPageSize(), ServiceResponse<Page<SystemSetLogDTO>> response = logApiService.listSystemSetLog(pageQO.getPageSize(),
pageQO.getCurrentPage(), searchParam); pageQO.getCurrentPage(), searchParam);
return ResultControllerUtils.commonPageResult(response, LogListVO.class); if (response.isSuccess()) {
Page page = (Page) response.getResult();
if (page == null) {
return RestResponse.success();
}
List<SystemSetLogDTO> responseList = page.getResult();
if (CollectionUtils.isNotEmpty(responseList)) {
List<LogListVO> resultList = responseList.stream().map(e -> {
LogListVO temp = EntityUtil.changeEntityNew(LogListVO.class, e);
temp.setNationCodeFrom(e.getRemark1());
temp.setPhoneFrom(e.getRemark2());
return temp;
}).collect(Collectors.toList());
page.setResult(resultList);
return RestResponse.success(page);
}
return RestResponse.success();
} else {
return RestResponse.failure(response.getCode(), response.getMessage());
}
} }
public static List<Map<String, Object>> changePageListToTree(int storeGroupId, List<MenuDTO> list) { public static List<Map<String, Object>> changePageListToTree(int storeGroupId, List<MenuDTO> list) {
......
package com.gic.auth.web.vo; package com.gic.auth.web.vo;
import com.gic.commons.annotation.SkipNamingCheck;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date; import java.util.Date;
...@@ -12,7 +10,6 @@ import java.util.Date; ...@@ -12,7 +10,6 @@ import java.util.Date;
* @author guojuxing
 * @author guojuxing

* @date 2019/11/8 2:15 PM
 * @date 2019/11/8 2:15 PM

*/ */
@SkipNamingCheck
public class LogListVO implements Serializable{ public class LogListVO implements Serializable{
...@@ -43,8 +40,8 @@ public class LogListVO implements Serializable{ ...@@ -43,8 +40,8 @@ public class LogListVO implements Serializable{
private Long relationId; private Long relationId;
private String businessName; private String businessName;
private String remark1; private String nationCodeFrom;
private String remark2; private String phoneFrom;
public Long getLogId() { public Long getLogId() {
return logId; return logId;
...@@ -74,11 +71,11 @@ public class LogListVO implements Serializable{ ...@@ -74,11 +71,11 @@ public class LogListVO implements Serializable{
} }
public String getNationCode() { public String getNationCode() {
return remark1; return nationCodeFrom;
} }
public String getPhone() { public String getPhone() {
return remark2; return phoneFrom;
} }
public String getProject() { public String getProject() {
...@@ -135,21 +132,21 @@ public class LogListVO implements Serializable{ ...@@ -135,21 +132,21 @@ public class LogListVO implements Serializable{
return this; return this;
} }
public String getRemark1() { public String getNationCodeFrom() {
return remark1; return nationCodeFrom;
} }
public LogListVO setRemark1(String remark1) { public LogListVO setNationCodeFrom(String nationCodeFrom) {
this.remark1 = remark1; this.nationCodeFrom = nationCodeFrom;
return this; return this;
} }
public String getRemark2() { public String getPhoneFrom() {
return remark2; return phoneFrom;
} }
public LogListVO setRemark2(String remark2) { public LogListVO setPhoneFrom(String phoneFrom) {
this.remark2 = remark2; this.phoneFrom = phoneFrom;
return this; return this;
} }
...@@ -167,8 +164,8 @@ public class LogListVO implements Serializable{ ...@@ -167,8 +164,8 @@ public class LogListVO implements Serializable{
", createTime=" + createTime + ", createTime=" + createTime +
", relationId=" + relationId + ", relationId=" + relationId +
", businessName='" + businessName + '\'' + ", businessName='" + businessName + '\'' +
", remark1='" + remark1 + '\'' + ", nationCodeFrom='" + nationCodeFrom + '\'' +
", remark2='" + remark2 + '\'' + ", phoneFrom='" + phoneFrom + '\'' +
'}'; '}';
} }
} }
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