| | |
| | | |
| | | |
| | | <delete id="deleteBatchByPrimaryKey" parameterType="java.util.List"> |
| | | delete from yeshi_ec_push_goods where gro_id in |
| | | delete from yeshi_ec_push_goods where pg_id in |
| | | <foreach item="item" collection="list" open="(" separator="," |
| | | close=")">#{item}</foreach> |
| | | </delete> |
| | |
| | | |
| | | <select id="listHistoryByPushTime" resultMap="BaseResultMap"> |
| | | SELECT <include refid="Base_Column_List" /> FROM yeshi_ec_push_goods |
| | | WHERE pg_is_push = 1 AND <![CDATA[pg_push_time >= #{pushTime}]]> |
| | | WHERE pg_is_push = 1 AND <![CDATA[pg_push_time >= #{pushTime}]]> |
| | | AND (pg_uid is null <if test='uid != null'>or pg_uid = #{uid} </if>) |
| | | ORDER BY pg_push_time desc |
| | | LIMIT ${start},${count} |
| | | </select> |
| | | |
| | | <select id="countHistoryByPushTime" resultType="java.lang.Long"> |
| | | SELECT IFNULL(count(pg_id),0) FROM yeshi_ec_push_goods |
| | | WHERE pg_is_push = 1 AND <![CDATA[pg_push_time >= #{pushTime}]]> |
| | | WHERE pg_is_push = 1 AND <![CDATA[pg_push_time >= #{pushTime}]]> |
| | | AND (pg_uid is null <if test='uid != null'>or pg_uid = #{uid} </if>) |
| | | </select> |
| | | |
| | | <select id="listByPushState" resultMap="BaseResultMap" parameterType="java.util.List"> |
| | | SELECT <include refid="Base_Column_List" /> FROM yeshi_ec_push_goods |
| | | WHERE pg_is_push = 1 AND gro_id in |
| | | WHERE pg_is_push = 1 AND pg_id in |
| | | <foreach item="item" collection="list" open="(" separator="," |
| | | close=")">#{item}</foreach> |
| | | </select> |