|
|
|
@ -187,6 +187,9 @@
|
|
|
|
|
left join company_product_relevance
|
|
|
|
|
on basic_udirel.id = company_product_relevance.udiRlIdFk
|
|
|
|
|
left JOIN basic_corp on basic_corp.erpId = company_product_relevance.customerId
|
|
|
|
|
left join basic_hosp_type bht on basic_udirel.relCode = bht.code
|
|
|
|
|
left join thr_products tp on tp.code = basic_udirel.mainId
|
|
|
|
|
|
|
|
|
|
<where>
|
|
|
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
|
|
|
|
|
AND ylqxzcrbarmc LIKE concat('%', #{ylqxzcrbarmc}, '%')
|
|
|
|
@ -203,6 +206,13 @@
|
|
|
|
|
<if test="pinyinInitial != null and pinyinInitial != ''">
|
|
|
|
|
AND basic_products.pinyinInitial like concat('%', #{pinyinInitial}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thrPiId != '' and thrPiId != null">
|
|
|
|
|
and (thirdId LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
|
or thirdId1 LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
|
or thirdId2 LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
|
or thirdId3 LIKE concat('%', #{thrPiId}, '%')
|
|
|
|
|
or thirdId4 LIKE concat('%', #{thrPiId}, '%'))
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ggxh != '' and ggxh != null">
|
|
|
|
|
AND ggxh LIKE concat('%', #{ggxh}, '%')
|
|
|
|
|
</if>
|
|
|
|
@ -262,6 +272,12 @@
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="flbm != '' and flbm != null">
|
|
|
|
|
and (tp.flbm = #{flbm} or basic_products.flbm = #{flbm})
|
|
|
|
|
</if>
|
|
|
|
|
<if test="companyName != '' and companyName != null">
|
|
|
|
|
AND basic_corp.name like concat('%', #{companyName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
@ -1272,10 +1288,8 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectRelIdByName" resultType="java.lang.String">
|
|
|
|
|
SELECT
|
|
|
|
|
b2.id
|
|
|
|
|
FROM
|
|
|
|
|
basic_products b1
|
|
|
|
|
SELECT b2.id
|
|
|
|
|
FROM basic_products b1
|
|
|
|
|
LEFT JOIN basic_udirel b2 ON b1.uuid = b2.uuid
|
|
|
|
|
<where>
|
|
|
|
|
<if test="productName != '' and productName != null">
|
|
|
|
|