| | |
| | | WHERE crd_state = 0 AND crd_update_time > DATE_SUB(NOW(),INTERVAL 1 HOUR) |
| | | </select> |
| | | |
| | | |
| | | <select id="query" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_user_cloud_order d |
| | | WHERE 1=1 |
| | | <if test="key != null and key !=''"> AND d.`crd_uid` LIKE '%#{key}%' </if> |
| | | <if test="state != null">AND d.crd_state = #{state}</if> |
| | | ORDER BY d.`crd_id` DESC |
| | | LIMIT #{start},#{count} |
| | | </select> |
| | | |
| | | <select id="count" resultType="Long"> |
| | | SELECT count(d.`crd_id`) FROM yeshi_ec_user_cloud_order d |
| | | WHERE 1=1 |
| | | <if test="key != null and key !='' "> AND d.`crd_uid` LIKE '%#{key}%' </if> |
| | | <if test="state != null">AND d.crd_state = #{state}</if> |
| | | </select> |
| | | |
| | | </mapper> |