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

2020年11月2日 19:43:14

parent efa6bbd9
......@@ -226,6 +226,9 @@
#{clerkId, jdbcType=BIGINT}
)
</insert>
<update id="deleteAll" >
update t_order_details set del_flag=1 where id=#{id}
</update>
<select id="fetchId" parameterType="java.lang.Long" resultType="com.cftech.order.model.OrderFromVO">
......@@ -469,22 +472,36 @@ FROM
</if>
<if test="openid">
AND t.openid =#{openid},
AND t.openid =#{openid}
</if>
<if test="status!=null and status ==0">
AND t.status =#{status},
AND t.status =#{status}
</if>
<if test="status!=null and status ==1">
AND t.status =#{status},
AND t.status =#{status}
</if>
<if test="status!=null and status ==2">
AND t.status =#{status},
AND t.status =#{status}
</if>
<if test="status!=null and status ==3">
AND t.status =#{status},
AND t.status =#{status}
</if>
<if test="status!=null and status ==4">
AND t.status =#{status}
</if>
</select>
<select id="orderDetill" resultType="com.cftech.order.model.ProductMobile">
SELECT
p.product_name AS productName,
t.amount,
p.is_rs AS isrs,
p.product_img AS productImg,
p.format
FROM t_order_details t LEFT JOIN t_aidea_product p
ON t.drugs_id = p.id
WHERE t.del_flag=0
<if test="orderId!=null">
and t.order_id =#{orderId}
</if>
</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