gaodd 1 anno fa
parent
commit
007135aa7e

+ 10 - 4
src/main/java/com/chinaitop/depot/product/mapper/DataKcglCplkcswDefaultMapper.xml

@@ -104,9 +104,9 @@
104 104
   </sql>
105 105
   
106 106
   <sql id="Base_Column_List_Org" >
107
-    kc.dataId, kc.unitid, kc.zdmc, kc.zdbm, kc.ch, kc.hwh, kc.chmc, kc.hwmc, kc.builder, kc.cjsj, kc.editor, kc.modifyDate, 
107
+    kc.dataId, kc.unitid, kc.zdmc, kc.zdbm, kc.ch, kc.hwh,kc.builder, kc.cjsj, kc.editor, kc.modifyDate, 
108 108
     kc.updateTime, kc.scrq, kc.bzq, kc.xz, kc.deptId, kc.sjjlpzmc, kc.sjjlpzbh, kc.sjjlppmc, kc.sjjlppbh, kc.sjjldjbh, 
109
-    kc.sjjldjmc, kc.sjjlspmc, kc.sjjlspmcbh, kc.kcsl, kc.scpc, kc.gg, kc.jldw, kc.zje, kc.js, kc.scnf, kc.cd, kc.rcrq
109
+    kc.sjjlspmc, kc.sjjlspmcbh, kc.kcsl, kc.scpc, kc.gg, kc.jldw, kc.zje, kc.js, kc.scnf, kc.cd, kc.rcrq
110 110
   </sql>
111 111
   
112 112
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.product.model.DataKcglCplkcswDefaultExample" >
@@ -114,8 +114,14 @@
114 114
     <if test="distinct" >
115 115
       distinct
116 116
     </if>
117
-    <include refid="Base_Column_List" />
118
-    from data_kcgl_cplkcsw_default
117
+    <include refid="Base_Column_List_Org" />,
118
+    s.storehouse_name chmc,
119
+    w.warehouse_name hwmc,
120
+    e.enumname sjjldjmc
121
+    from data_kcgl_cplkcsw_default kc
122
+    left join basic_storehouse s on s.storehouse_id = kc.ch
123
+    left join basic_warehouse w on w.warehouse_id = kc.hwh
124
+    left join basic_enum e on e.enumId = kc.sjjldjbh
119 125
     <if test="_parameter != null" >
120 126
       <include refid="Example_Where_Clause" />
121 127
     </if>