| | |
| | | SELECT * FROM yeshi_ec_user_goods_storage tg |
| | | LEFT JOIN `yeshi_ec_common_goods` cg ON tg.`guc_common_id` = cg.`cg_id` |
| | | WHERE tg.`guc_uid` = #{uid} |
| | | ORDER BY tg.guc_state,tg.`guc_updatetime` DESC |
| | | ORDER BY cg.cg_state, tg.guc_state, tg.`guc_updatetime` DESC |
| | | LIMIT #{start},#{count} |
| | | </select> |
| | | |
| | |
| | | WHERE g.guc_id IN <foreach collection="list" item="item" open="(" close=")" |
| | | separator=",">#{item}</foreach> |
| | | </select> |
| | | |
| | | |
| | | <update id="updateShareState" parameterType="java.lang.Long"> |
| | | UPDATE `yeshi_ec_user_goods_storage` ts SET ts.`guc_state` = 1 |
| | | WHERE ts.`guc_common_id` IN |
| | | (SELECT tg.`gu_common_goods_id` FROM yeshi_ec_share_goods_group tg WHERE tg.`gu_record_id` = #{shareId}) |
| | | </update> |
| | | </mapper> |