ccj 3 년 전
부모
커밋
d7d595bbfc
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/IdentityAuthenticationInfoMapper.xml

+ 1 - 3
winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/IdentityAuthenticationInfoMapper.xml

@@ -14,7 +14,7 @@
         a.payee_name as payeeName,
         a.payee_number_card as payeeNumberCard,
         a.authentication_status_key as authenticationStatusKey,
-        a.authentication_status as authenticationStatus,
+        case when a.delete_flag = '1' then '已删除' else a.authentication_status end as authenticationStatus,
         a.cover ,
         a.customer_number_card as customerNumberCard,
         a.payee_address_url as payeeAddressUrl,
@@ -28,7 +28,6 @@
         WHERE
         a.customer_type_flag = '1'
         and b.delete_flag = '0'
-        and a.delete_flag = '0'
         <if test="searchKeyWord != null and searchKeyWord != ''">
             AND (lower(a.customer_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
             OR lower(a.customer_phone) like lower(CONCAT('%',#{searchKeyWord},'%')))
@@ -54,7 +53,6 @@
         WHERE
         a.customer_type_flag = '1'
         and b.delete_flag = '0'
-        and a.delete_flag = '0'
         <if test="searchKeyWord != null and searchKeyWord != ''">
             AND (lower(a.customer_name) like lower(CONCAT('%',#{searchKeyWord},'%'))
             OR lower(a.customer_phone) like lower(CONCAT('%',#{searchKeyWord},'%')))