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

2020年11月4日 20:33:26

parent 9a62e01a
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
<if test="openid!=null"> <if test="openid!=null">
and open_id = {openid} and open_id = {openid}
</if> </if>
<if test="name!=null"> <if test="name!=null and name !=''">
and user_name like concat('%',#{name},'%') and user_name like concat('%',#{name},'%')
</if> </if>
<if test="id!=null"> <if test="id!=null">
......
...@@ -487,6 +487,7 @@ ...@@ -487,6 +487,7 @@
<if test="status!=null "> <if test="status!=null ">
AND t.status =#{status} AND t.status =#{status}
</if> </if>
ORDER BY t.create_time
</select> </select>
<select id="orderDetill" resultType="com.cftech.order.model.ProductMobile"> <select id="orderDetill" resultType="com.cftech.order.model.ProductMobile">
......
...@@ -230,17 +230,17 @@ ...@@ -230,17 +230,17 @@
c.classify_name AS classifyName c.classify_name AS classifyName
FROM t_aidea_product t LEFT JOIN t_aidea_product_classify c 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 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 and
t.product_name like concat('%',#{productName},'%') t.product_name like concat('%',#{productName},'%')
</if> </if>
<if test="classifyName !=null"> <if test="classifyName !=null and productName!=''">
and and
c.classify_name = #{classifyName} c.classify_name = #{classifyName}
</if> </if>
<if test="dosagaFrom !=null"> <if test="dosagaFrom !=null and productName!=''">
and and
t.dosaga_from = #{dosagaFrom} t.dosaga_from = #{dosagaFrom}
</if> </if>
......
...@@ -372,11 +372,12 @@ a.size ...@@ -372,11 +372,12 @@ a.size
FROM wx_cms_cfarticle a FROM wx_cms_cfarticle a
LEFT JOIN wx_cms_column b LEFT JOIN wx_cms_column b
ON b.id = a.`column` ON b.id = a.`column`
WHERE a.del_flag = 0 and b.del_flag = 0 WHERE a.del_flag = 0
<if test="id!=null"> <if test="id!=null">
and a.id = #{id} and a.id = #{id}
</if> </if>
ORDER BY
a.create_time
</select> </select>
<update id="reading" parameterType="java.lang.Integer"> <update id="reading" parameterType="java.lang.Integer">
update wx_cms_cfarticle update wx_cms_cfarticle
...@@ -464,7 +465,8 @@ WHERE del_flag=0 ...@@ -464,7 +465,8 @@ WHERE del_flag=0
<if test="id!=null"> <if test="id!=null">
AND `column`= #{id} AND `column`= #{id}
</if> </if>
ORDER BY
create_time
</select> </select>
</mapper> </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