| | |
| | | <if test="param.goodsType != null and param.goodsType !=''"> |
| | | AND tog.goods_type = #{param.goodsType} |
| | | </if> |
| | | <!--<if test="param.shopId != null and param.shopId != ''">--> |
| | | <!--AND toc.shop_id = #{param.shopId}--> |
| | | <!--</if>--> |
| | | <if test="param.shopId != null and param.shopId != ''"> |
| | | AND toc.shop_id = #{param.shopId} |
| | | AND toc.shop_id = #{param.shopId} AND (toc.unbinding_flag = 0 OR (toc.unbinding_flag = 1 AND toc.order_from = 1) OR (toc.unbinding_flag = 1 AND toc.order_from = 2 AND toc.order_status = 3)) |
| | | </if> |
| | | <if test="param.shopIds != null and param.shopIds != ''"> |
| | | AND FIND_IN_SET(toc.shop_id, #{param.shopIds}) > 0 |
| | |
| | | <if test="param.goodsType != null and param.goodsType !=''"> |
| | | AND tog.goods_type = #{param.goodsType} |
| | | </if> |
| | | <!--<if test="param.shopId != null and param.shopId != ''">--> |
| | | <!--AND toc.shop_id = #{param.shopId}--> |
| | | <!--</if>--> |
| | | <if test="param.shopId != null and param.shopId != ''"> |
| | | AND toc.shop_id = #{param.shopId} |
| | | AND toc.shop_id = #{param.shopId} AND (toc.unbinding_flag = 0 OR (toc.unbinding_flag = 1 AND toc.order_from = 1) OR (toc.unbinding_flag = 1 AND toc.order_from = 2 AND toc.order_status = 3)) |
| | | </if> |
| | | <if test="param.shopIds != null and param.shopIds != ''"> |
| | | AND FIND_IN_SET(toc.shop_id, #{param.shopIds}) > 0 |
| | |
| | | <if test="param.goodsType != null and param.goodsType !=''"> |
| | | AND tog.goods_type = #{param.goodsType} |
| | | </if> |
| | | <!--<if test="param.shopId != null and param.shopId != ''">--> |
| | | <!--AND toc.shop_id = #{param.shopId}--> |
| | | <!--</if>--> |
| | | <if test="param.shopId != null and param.shopId != ''"> |
| | | AND toc.shop_id = #{param.shopId} |
| | | AND toc.shop_id = #{param.shopId} AND (toc.unbinding_flag = 0 OR (toc.unbinding_flag = 1 AND toc.order_from = 1) OR (toc.unbinding_flag = 1 AND toc.order_from = 2 AND toc.order_status = 3)) |
| | | </if> |
| | | <if test="param.shopIds != null and param.shopIds != ''"> |
| | | AND FIND_IN_SET(toc.shop_id, #{param.shopIds}) > 0 |