Browse Source

1.修改:logo查询,如果是null转化为空字符串

dev_shibei_match
wxz 5 years ago
parent
commit
6fbe111c62
  1. 2
      epmet-module/oper-crm/oper-crm-server/src/main/java/com/epmet/service/impl/CustomerServiceImpl.java
  2. 7
      epmet-module/oper-crm/oper-crm-server/src/main/resources/mapper/CustomerDao.xml

2
epmet-module/oper-crm/oper-crm-server/src/main/java/com/epmet/service/impl/CustomerServiceImpl.java

@ -147,7 +147,7 @@ public class CustomerServiceImpl extends BaseServiceImpl<CustomerDao, CustomerEn
validCustomers.stream().forEach(customer -> { validCustomers.stream().forEach(customer -> {
CustomerAgencyDTO rootAgency = rootAgencies.get(customer.getCustomerId()); CustomerAgencyDTO rootAgency = rootAgencies.get(customer.getCustomerId());
customer.setHasRootAgency(rootAgency == null ? false : true); customer.setHasRootAgency(rootAgency == null ? false : true);
customer.setRootAgencyId(rootAgency == null ? null : rootAgency.getId()); customer.setRootAgencyId(rootAgency == null ? "" : rootAgency.getId());
if (rootAgency != null) { if (rootAgency != null) {
rootAgencyIds.add(rootAgency.getId()); rootAgencyIds.add(rootAgency.getId());
} }

7
epmet-module/oper-crm/oper-crm-server/src/main/resources/mapper/CustomerDao.xml

@ -24,10 +24,9 @@
<!-- 运营端-获取有效客户列表 (未删除+有效期内的,按照客户名称排序 )--> <!-- 运营端-获取有效客户列表 (未删除+有效期内的,按照客户名称排序 )-->
<select id="selectListValidCustomerResultDTO" resultType="com.epmet.dto.result.ValidCustomerResultDTO"> <select id="selectListValidCustomerResultDTO" resultType="com.epmet.dto.result.ValidCustomerResultDTO">
SELECT SELECT c.id AS CUSTOMER_ID,
c.id AS CUSTOMER_ID, c.CUSTOMER_NAME,
c.CUSTOMER_NAME, CASE WHEN c.LOGO IS NULL THEN '' ELSE c.LOGO END AS LOGO
c.LOGO AS logo
FROM FROM
customer c customer c
WHERE WHERE

Loading…
Cancel
Save