Commit 74580726 authored by 黎聪聪's avatar 黎聪聪

2020年11月4日 20:33:26

parent 9a62e01a
......@@ -205,7 +205,7 @@
<if test="openid!=null">
and open_id = {openid}
</if>
<if test="name!=null">
<if test="name!=null and name !=''">
and user_name like concat('%',#{name},'%')
</if>
<if test="id!=null">
......
......@@ -487,6 +487,7 @@
<if test="status!=null ">
AND t.status =#{status}
</if>
ORDER BY t.create_time
</select>
<select id="orderDetill" resultType="com.cftech.order.model.ProductMobile">
......
......@@ -230,17 +230,17 @@
c.classify_name AS classifyName
FROM t_aidea_product t LEFT JOIN t_aidea_product_classify c
ON find_in_set(c.id,t.classify_id) > 0 WHERE t.del_flag = 0 and c.del_flag = 0
<if test="productName !=null">
<if test="productName !=null and productName!=''">
and
t.product_name like concat('%',#{productName},'%')
</if>
<if test="classifyName !=null">
<if test="classifyName !=null and productName!=''">
and
c.classify_name = #{classifyName}
</if>
<if test="dosagaFrom !=null">
<if test="dosagaFrom !=null and productName!=''">
and
t.dosaga_from = #{dosagaFrom}
</if>
......
......@@ -372,11 +372,12 @@ a.size
FROM wx_cms_cfarticle a
LEFT JOIN wx_cms_column b
ON b.id = a.`column`
WHERE a.del_flag = 0 and b.del_flag = 0
WHERE a.del_flag = 0
<if test="id!=null">
and a.id = #{id}
</if>
ORDER BY
a.create_time
</select>
<update id="reading" parameterType="java.lang.Integer">
update wx_cms_cfarticle
......@@ -464,7 +465,8 @@ WHERE del_flag=0
<if test="id!=null">
AND `column`= #{id}
</if>
ORDER BY
create_time
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment