fix: 茅台预约,批量修改预约时间,bug修复。
This commit is contained in:
@@ -226,12 +226,16 @@
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<update id="updateUserMinuteBatch">
|
||||
UPDATE i_user SET `minute` = (SELECT FLOOR(random() * 50 + 1))) WHERE random_minute = '0'
|
||||
</update>
|
||||
|
||||
<update id="updateUserMinuteEven">
|
||||
UPDATE i_user SET `minute` = (SELECT FLOOR(random() * 50 + 1))) WHERE random_minute = '0'
|
||||
<update id="batchUpdateMinute">
|
||||
<foreach collection="list" item="item" separator=";">
|
||||
update i_user
|
||||
<set >
|
||||
<if test="item.minute != null">minute = #{item.minute},</if>
|
||||
</set>
|
||||
<where>
|
||||
mobile = #{item.mobile}
|
||||
</where>
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<select id="selectReservationUserByMinute" parameterType="IUserDto" resultMap="IUserResult">
|
||||
@@ -257,4 +261,31 @@
|
||||
</where>
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="selectAllIUserList" parameterType="IUserDto" resultMap="IUserResult">
|
||||
<include refid="selectIUserVo"/>
|
||||
<where>
|
||||
a.del_flag='0'
|
||||
<if test="mobile != null and mobile != ''"> and a.mobile like '%'|| #{mobile}||'%'</if>
|
||||
<if test="token != null and token != ''"> and a.token = #{token}</if>
|
||||
<if test="cookie != null and cookie != ''"> and a.cookie = #{cookie}</if>
|
||||
<if test="deviceId != null and deviceId != ''"> and a.device_id = #{deviceId}</if>
|
||||
<if test="itemCode != null and itemCode != ''"> and a.item_code = #{itemCode}</if>
|
||||
<if test="ishopId != null and ishopId != ''"> and a.ishop_id = #{ishopId}</if>
|
||||
<if test="provinceName != null and provinceName != ''"> and a.province_name like '%'|| #{provinceName}||'%'</if>
|
||||
<if test="cityName != null and cityName != ''"> and a.city_name like '%'|| #{cityName}||'%'</if>
|
||||
<if test="address != null and address != ''"> and a.address = #{address}</if>
|
||||
<if test="lat != null and lat != ''"> and a.lat = #{lat}</if>
|
||||
<if test="lng != null and lng != ''"> and a.lng = #{lng}</if>
|
||||
<if test="minute != null "> and a.minute = #{minute}</if>
|
||||
<if test="shopType != null "> and a.shop_type = #{shopType}</if>
|
||||
<if test="randomMinute != null and randomMinute != ''"> and a.random_minute = #{randomMinute}</if>
|
||||
<if test="pushPlusToken != null and pushPlusToken != ''"> and a.push_plus_token = #{pushPlusToken}</if>
|
||||
<if test="jsonResult != null and jsonResult != ''"> and a.json_result = #{jsonResult}</if>
|
||||
<if test="expireTime != null "> and a.expire_time = #{expireTime}</if>
|
||||
<if test="createUser != null and createUser != ''"> and a.create_user = #{createUser}</if>
|
||||
<if test="updateUser != null and updateUser != ''"> and a.update_user = #{updateUser}</if>
|
||||
</where>
|
||||
order by a.create_time desc
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user