| | |
| | | tcg.service_status serviceStatus, |
| | | tcg.shop_id shopId, |
| | | tcg.goods_type goodsType, |
| | | tg.goods_name goodsName, |
| | | tgf.file_url goodsPicture, |
| | | tg.goods_nurses goodsNurses, |
| | | tcg.goods_name goodsName, |
| | | tcg.goods_picture goodsPicture, |
| | | tcg.goods_nurses goodsNurses, |
| | | tcg.cycle_num_flag cycleNumFlag, |
| | | tcg.service_num serviceNum, |
| | | tcg.used_num usedNum |
| | | FROM t_consumer_goods tcg |
| | | INNER JOIN t_goods tg ON tcg.goods_id = tg.goods_id |
| | | INNER JOIN t_goods_file tgf ON tgf.goods_id = tg.goods_id AND tgf.del_flag = 0 AND tgf.file_type = 1 |
| | | WHERE tcg.del_flag = 0 AND tcg.user_id = #{param.userId} AND tcg.shop_id = #{param.shopId} |
| | | <if test="param.goodsType != null"> |
| | | AND tcg.goods_type = #{param.goodsType} |
| | |
| | | tcg.service_status serviceStatus, |
| | | tcg.shop_id shopId, |
| | | tcg.goods_type goodsType, |
| | | tg.goods_name goodsName, |
| | | tg.goods_introduction goodsIntroduction, |
| | | tgf.file_url goodsPicture, |
| | | tg.goods_nurses goodsNurses, |
| | | tcg.goods_name goodsName, |
| | | tcg.goods_introduction goodsIntroduction, |
| | | tcg.goods_picture goodsPicture, |
| | | tcg.goods_nurses goodsNurses, |
| | | tcg.cycle_num_flag cycleNumFlag, |
| | | tcg.service_num serviceNum, |
| | | tcg.used_num usedNum |
| | | FROM t_consumer_goods tcg |
| | | INNER JOIN t_goods tg ON tcg.goods_id = tg.goods_id |
| | | INNER JOIN t_goods_file tgf ON tgf.goods_id = tg.goods_id AND tgf.del_flag = 0 AND tgf.file_type = 1 |
| | | WHERE tcg.del_flag = 0 AND tcg.user_id = #{param.memberUserId} AND tcg.shop_id = #{param.shopId} AND tcg.service_status = 1 |
| | | AND tcg.goods_type = 1 AND tcg.cycle_num_flag = 0 |
| | | ORDER BY tcg.create_time DESC |
| | |
| | | tcg.service_status serviceStatus, |
| | | tcg.shop_id shopId, |
| | | tcg.goods_type goodsType, |
| | | tg.goods_name goodsName, |
| | | tg.goods_introduction goodsIntroduction, |
| | | tgf.file_url goodsPicture, |
| | | tg.goods_nurses goodsNurses, |
| | | tcg.goods_name goodsName, |
| | | tcg.goods_introduction goodsIntroduction, |
| | | tcg.goods_picture goodsPicture, |
| | | tcg.goods_nurses goodsNurses, |
| | | tcg.cycle_num_flag cycleNumFlag, |
| | | tcg.service_num serviceNum, |
| | | tcg.used_num usedNum |
| | | FROM t_consumer_goods tcg |
| | | INNER JOIN t_goods tg ON tcg.goods_id = tg.goods_id |
| | | INNER JOIN t_goods_file tgf ON tgf.goods_id = tg.goods_id AND tgf.del_flag = 0 AND tgf.file_type = 1 |
| | | WHERE tcg.del_flag = 0 AND tcg.user_id = #{param.memberUserId} AND tcg.shop_id = #{param.shopId} AND tcg.service_status = 1 |
| | | AND tcg.goods_type = #{param.goodsType} AND tcg.cycle_num_flag = 1 |
| | | ORDER BY tcg.create_time DESC |
| | |
| | | tcg.service_status serviceStatus, |
| | | tcg.shop_id shopId, |
| | | tcg.goods_type goodsType, |
| | | tg.goods_name goodsName, |
| | | tg.goods_introduction goodsIntroduction, |
| | | tgf.file_url goodsPicture, |
| | | tg.goods_nurses goodsNurses, |
| | | tcg.goods_name goodsName, |
| | | tcg.goods_introduction goodsIntroduction, |
| | | tcg.goods_picture goodsPicture, |
| | | tcg.goods_nurses goodsNurses, |
| | | tcg.cycle_num_flag cycleNumFlag, |
| | | tcg.service_num serviceNum, |
| | | tcg.used_num usedNum |
| | | FROM t_consumer_goods tcg |
| | | INNER JOIN t_goods tg ON tcg.goods_id = tg.goods_id |
| | | INNER JOIN t_goods_file tgf ON tgf.goods_id = tg.goods_id AND tgf.del_flag = 0 AND tgf.file_type = 1 |
| | | WHERE tcg.del_flag = 0 AND tcg.user_id = #{param.memberUserId} AND tcg.shop_id = #{param.shopId} |
| | | AND tcg.goods_type = #{param.goodsType} AND tcg.cycle_num_flag = 1 |
| | | ORDER BY tcg.create_time DESC |