Sfoglia il codice sorgente

选择对象的修正

姜永辉 1 anno fa
parent
commit
49d63cf322

+ 4 - 0
src/main/java/com/dk/mdm/mapper/common/CommonMapper.xml

@@ -1252,6 +1252,7 @@
         from dkic_b.t_mst_supplier tms
         from dkic_b.t_mst_supplier tms
         <where >
         <where >
              tms.sup_type = '供应商类别-采购'
              tms.sup_type = '供应商类别-采购'
+            and tms.cp_id = #{cpId}
             <if test="flgValid">
             <if test="flgValid">
                 AND tms.flg_valid
                 AND tms.flg_valid
             </if>
             </if>
@@ -1281,6 +1282,7 @@
         cus.address_full as "addressFull"
         cus.address_full as "addressFull"
         from dkic_b.t_mst_customer cus
         from dkic_b.t_mst_customer cus
         <where>
         <where>
+              cus.cp_id = #{cpId}
             <if test="flgValid">
             <if test="flgValid">
                 AND cus.flg_valid
                 AND cus.flg_valid
             </if>
             </if>
@@ -1321,6 +1323,7 @@
         from dkic_b.t_mst_supplier tms
         from dkic_b.t_mst_supplier tms
         <where>
         <where>
             tms.sup_type = '供应商类别-采购'
             tms.sup_type = '供应商类别-采购'
+            and tms.cp_id = #{cpId}
             <if test="flgValid">
             <if test="flgValid">
                 AND tms.flg_valid
                 AND tms.flg_valid
             </if>
             </if>
@@ -1349,6 +1352,7 @@
         cus.address_full as "addressFull"
         cus.address_full as "addressFull"
         from dkic_b.t_mst_customer cus
         from dkic_b.t_mst_customer cus
         <where>
         <where>
+            and cus.cp_id = #{cpId}
             <if test="flgValid">
             <if test="flgValid">
                 AND cus.flg_valid
                 AND cus.flg_valid
             </if>
             </if>