Browse Source

供应商客户查询接口

koushanshan 2 năm trước cách đây
mục cha
commit
b108ef426a
1 tập tin đã thay đổi với 9 bổ sung6 xóa
  1. 9 6
      src/main/java/com/dk/mdm/mapper/common/CommonMapper.xml

+ 9 - 6
src/main/java/com/dk/mdm/mapper/common/CommonMapper.xml

@@ -988,6 +988,8 @@
         '供应商' as "objTypeName",
         1 as "objType",
         tms.flg_valid as "flgValid"
+        null as "phone",
+        null as "addressFull"
         from dkic_b.t_mst_supplier tms
         <where>
         <if test="flgValid">
@@ -1034,10 +1036,8 @@
         '供应商' as "objTypeName",
         1 as "objType",
         tms.flg_valid as "flgValid",
-        tms.contact_phone as "phone"
-        null as "customerPhone" ,
-        tms.contact_name as "contactName" ,
-        tms.contact_phone as "contactPhones"
+        null as "phone",
+        null as "addressFull"
         from dkic_b.t_mst_supplier tms
         <where >
         <if test="flgValid">
@@ -1059,6 +1059,7 @@
         cus.flg_valid as "flgValid",
         cus.cus_phone as "phone",
         cus.address_full as "addressFull"
+        from dkic_b.t_mst_customer cus
         <where>
         <if test="flgValid">
             AND cus.flgValid
@@ -1086,7 +1087,9 @@
         tms.sup_name as "objName",
         '供应商' as "objTypeName",
         1 as "objType",
-        tms.flg_valid as "flgValid"
+        tms.flg_valid as "flgValid",
+        null as "phone",
+        null as "addressFull"
         from dkic_b.t_mst_supplier tms
         <where>
             <if test="flgValid">
@@ -1108,7 +1111,7 @@
         cus.flg_valid as "flgValid",
         cus.cus_phone as "phone",
         cus.address_full as "addressFull"
-        from dkic_b.t_csm_customer cus
+        from dkic_b.t_mst_customer cus
         <where>
             <if test="flgValid">
                 AND cus.flgValid