Commit 754f9f5f authored by 徐州's avatar 徐州

补充部分页面手机号码加密

parent e40892a9
...@@ -3043,6 +3043,9 @@ public class CustomerController extends BaseController { ...@@ -3043,6 +3043,9 @@ public class CustomerController extends BaseController {
List<CustomerCallbackLogEntity> backLogList = customerCallbackLog.queryByConditions(cpMap); List<CustomerCallbackLogEntity> backLogList = customerCallbackLog.queryByConditions(cpMap);
userEntity.setCity(cityCode); userEntity.setCity(cityCode);
if(userEntity.getShowMobile() != 1) {
customerEntity.setPhone(MobileUtil.hidePhone(customerEntity.getPhone()));
}
model.addAttribute("action", action); model.addAttribute("action", action);
model.addAttribute("callLogs", backLogList); model.addAttribute("callLogs", backLogList);
model.addAttribute("customerProjects", cpList); model.addAttribute("customerProjects", cpList);
......
...@@ -187,6 +187,11 @@ public class ExternalCustomerController extends BaseController { ...@@ -187,6 +187,11 @@ public class ExternalCustomerController extends BaseController {
} }
} }
if(userEntity.getShowMobile() != 1) {
entity.setPhone(MobileUtil.hidePhone(entity.getPhone()));
}
model.addAttribute("callLogs", callLogList); model.addAttribute("callLogs", callLogList);
model.addAttribute("entity", entity); model.addAttribute("entity", entity);
List<ExternalCustomerEntity> oldList = new ArrayList<>(); List<ExternalCustomerEntity> oldList = new ArrayList<>();
......
...@@ -649,16 +649,16 @@ public class PlatformManagementController extends BaseController { ...@@ -649,16 +649,16 @@ public class PlatformManagementController extends BaseController {
String customerId = request.getParameter("customerId"); String customerId = request.getParameter("customerId");
String managerId = request.getParameter("managerId"); String managerId = request.getParameter("managerId");
String phone = request.getParameter("phone"); // String phone = request.getParameter("phone");
String action = request.getParameter("action"); String action = request.getParameter("action");
CustomerEntity customerEntity; CustomerEntity customerEntity;
CustomerResponse customerResponse = customer.getCustomerById(Integer.valueOf(customerId));
if (StringUtils.isEmpty(managerId)) {//公海客户详情页 if (StringUtils.isEmpty(managerId)) {//公海客户详情页
CustomerResponse customerResponse = customer.getCustomerById(Integer.valueOf(customerId));
customerEntity = customerResponse.getEntity(); customerEntity = customerResponse.getEntity();
} else { } else {
Map<String, Object> map = new HashMap<>(10); Map<String, Object> map = new HashMap<>(10);
map.put("managerId", managerId); map.put("managerId", managerId);
map.put("phone", phone); map.put("phone", customerResponse.getEntity().getPhone());
customerEntity = customer.getMergeCustomerId(map); customerEntity = customer.getMergeCustomerId(map);
} }
...@@ -735,7 +735,7 @@ public class PlatformManagementController extends BaseController { ...@@ -735,7 +735,7 @@ public class PlatformManagementController extends BaseController {
map.put("relateId", customerEntity.getId()); map.put("relateId", customerEntity.getId());
list = logInterface.queryByConditions(map); list = logInterface.queryByConditions(map);
} else { } else {
map.put("phone", phone); map.put("phone", customerEntity.getPhone());
map.put("managerId", managerId); map.put("managerId", managerId);
map.put("idList", customerIdList); map.put("idList", customerIdList);
list = logInterface.queryByConditions(map); list = logInterface.queryByConditions(map);
......
...@@ -77,8 +77,18 @@ public class PropertyReportController extends BaseController { ...@@ -77,8 +77,18 @@ public class PropertyReportController extends BaseController {
listRequest.setPaging(page); listRequest.setPaging(page);
listRequest.setSearchParams(searchParams); listRequest.setSearchParams(searchParams);
MapListResponse response = reportInterface.list(listRequest); MapListResponse response = reportInterface.list(listRequest);
List<Map<String, Object>> objectList = response.getObjectList();
if(userEntity.getShowMobile() != 1) {
for (Map<String, Object> i : objectList) {
if(i != null && i.containsKey("phone")) {
i.replace("phone",MobileUtil.hidePhone(String.valueOf(i.get("phone"))));
}
}
}
model.addAttribute("page", response.getPaging()); model.addAttribute("page", response.getPaging());
model.addAttribute("dataList", response.getObjectList()); model.addAttribute("dataList", objectList);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
logger.error("置业报告列表", e); logger.error("置业报告列表", e);
...@@ -154,7 +164,8 @@ public class PropertyReportController extends BaseController { ...@@ -154,7 +164,8 @@ public class PropertyReportController extends BaseController {
* @return 结果视图 * @return 结果视图
*/ */
@RequestMapping(value = "toEdit/{customerId}") @RequestMapping(value = "toEdit/{customerId}")
public String toEdit(Model model, @PathVariable int customerId) { public String toEdit(Model model, @PathVariable int customerId,HttpServletRequest request) {
UserEntity userEntity = (UserEntity) request.getSession().getAttribute(SessionConstants.THREAD_USER_KEY);
CustomerEntity entity = customer.queryById(customerId); CustomerEntity entity = customer.queryById(customerId);
Map<String, Object> map = new HashMap<>(5); Map<String, Object> map = new HashMap<>(5);
map.put("customerId", customerId); map.put("customerId", customerId);
...@@ -184,6 +195,9 @@ public class PropertyReportController extends BaseController { ...@@ -184,6 +195,9 @@ public class PropertyReportController extends BaseController {
report.setChannel(channel); report.setChannel(channel);
model.addAttribute("report", report); model.addAttribute("report", report);
} }
if(userEntity.getShowMobile() != 1) {
entity.setPhone(MobileUtil.hidePhone(entity.getPhone()));
}
model.addAttribute("data", entity); model.addAttribute("data", entity);
return getAutoUrl("update"); return getAutoUrl("update");
} }
......
...@@ -3534,6 +3534,7 @@ public class StatisticController extends BaseController { ...@@ -3534,6 +3534,7 @@ public class StatisticController extends BaseController {
public String transactionStatusReport(Integer number, Model model, HttpServletRequest request) { public String transactionStatusReport(Integer number, Model model, HttpServletRequest request) {
try { try {
DepartmentEntity dept = (DepartmentEntity) request.getSession().getAttribute(SESSION_CURRNET_DEPT_KEY); DepartmentEntity dept = (DepartmentEntity) request.getSession().getAttribute(SESSION_CURRNET_DEPT_KEY);
UserEntity userEntity = (UserEntity) request.getSession().getAttribute(SessionConstants.THREAD_USER_KEY);
Map<String, Object> searchParams = Servlets.getParametersStartingWith(request, "search_"); Map<String, Object> searchParams = Servlets.getParametersStartingWith(request, "search_");
String city = dept.getDescripition(); String city = dept.getDescripition();
String startTime = request.getParameter("startTime"); String startTime = request.getParameter("startTime");
...@@ -3552,8 +3553,17 @@ public class StatisticController extends BaseController { ...@@ -3552,8 +3553,17 @@ public class StatisticController extends BaseController {
listRequest.setPaging(page); listRequest.setPaging(page);
listRequest.setSearchParams(searchParams); listRequest.setSearchParams(searchParams);
MapListResponse response = customerProject.list(listRequest, city, startTime, endTime); MapListResponse response = customerProject.list(listRequest, city, startTime, endTime);
List<Map<String, Object>> objectList = response.getObjectList();
if(userEntity.getShowMobile() != 1) {
for (Map<String, Object> i : objectList) {
if(i != null && i.containsKey("phone")) {
i.replace("phone",MobileUtil.hidePhone(String.valueOf(i.get("phone"))));
}
}
}
model.addAttribute("page", response.getPaging()); model.addAttribute("page", response.getPaging());
model.addAttribute("dataList", response.getObjectList()); model.addAttribute("dataList", objectList);
} catch (Exception e) { } catch (Exception e) {
logger.error("查询成交状态报表失败", e); logger.error("查询成交状态报表失败", e);
} }
......
...@@ -687,7 +687,7 @@ ...@@ -687,7 +687,7 @@
</div> </div>
</c:if> </c:if>
<div class="mangerOperate__detail" <div class="mangerOperate__detail"
onclick="customerInfo(${customer.id}, '${customer.managerId}', ${customer.phone})">查看详情 onclick="customerInfo(${customer.id}, '${customer.managerId}')">查看详情
</div> </div>
<%--<div class="mangerOperate__detail"--%> <%--<div class="mangerOperate__detail"--%>
<%--onclick="deleteById(${customer.id})">删除--%> <%--onclick="deleteById(${customer.id})">删除--%>
...@@ -876,9 +876,9 @@ ...@@ -876,9 +876,9 @@
}); });
} }
function customerInfo(id, managerId, phone) { function customerInfo(id, managerId) {
setCookie("lastChoseCustomerId", id); setCookie("lastChoseCustomerId", id);
window.open("/house365-hgs-web/platformmanagement/customerInfo?customerId=" + id + "&managerId=" + managerId + "&phone=" + phone, "_blank"); window.open("/house365-hgs-web/platformmanagement/customerInfo?customerId=" + id + "&managerId=" + managerId, "_blank");
} }
function deleteById(customerId) { function deleteById(customerId) {
......
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