修改bug

zhairh
wangwei 3 years ago
parent 9ea955d9a2
commit 30fec4bd16

@ -7,6 +7,7 @@
resultType="com.glxp.sale.admin.entity.thrsys.ThrProductsAddEntity">
SELECT thr_products_add.*,basic_corp.name corpName FROM thr_products_add
left join basic_corp on thr_products_add.customerId = basic_corp.erpId
left join company on company.customerid=thr_products_add.customerid
<where>
<if test="name != '' and name != null">
AND thr_products_add.name LIKE concat('%',#{name},'%')
@ -41,6 +42,9 @@
<if test="customerId != '' and customerId != null">
AND customerId = #{customerId}
</if>
<if test="companyName != '' and companyName != null">
AND companyName = #{companyName}
</if>
</where>
group by thr_products_add.id

Loading…
Cancel
Save