|
@@ -315,7 +315,10 @@
|
|
|
|
|
|
|
|
<select id="productNameExist" resultType="java.lang.Boolean">
|
|
<select id="productNameExist" resultType="java.lang.Boolean">
|
|
|
select count(product_id)
|
|
select count(product_id)
|
|
|
- from fs_platform_product_scrm p where p.product_name = #{productName} or or (p.common_name = #{commonName} AND p.common_name != '-')
|
|
|
|
|
|
|
+ from fs_platform_product_scrm p where p.product_name = #{productName}
|
|
|
|
|
+ <if test="commonName != null and commonName != ''">
|
|
|
|
|
+ or (p.common_name = #{commonName} AND p.common_name != '-')
|
|
|
|
|
+ </if>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<delete id="deleteFsPlatFormProductByIds">
|
|
<delete id="deleteFsPlatFormProductByIds">
|