fix
This commit is contained in:
@@ -12,14 +12,54 @@
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
|
||||
<update id="updateShopPointRecommendStatus">
|
||||
update xfsg_point_recommend set status = #{status} where point_id = #{pointId}
|
||||
update xfsg_point_recommend set status = #{status} where point_id = #{pointId} and deleted = 0
|
||||
</update>
|
||||
|
||||
|
||||
<update id="updateRecommendStatusByStatusAndPointId">
|
||||
update xfsg_point_recommend set status = #{status} where point_id = #{pointId} and status in
|
||||
update xfsg_point_recommend set status = #{status} where point_id = #{pointId} and deleted = 0 and status in
|
||||
<foreach collection="statusList" item="status" index="index" open="(" separator="," close=")">
|
||||
#{status}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<select id="getPushShopNumMap" resultType="com.cool.store.dto.point.LineCountDTO">
|
||||
select
|
||||
line_id as lineId,
|
||||
count(1) as recommendShopNum
|
||||
from
|
||||
xfsg_point_recommend
|
||||
where
|
||||
deleted = 0 and line_id in
|
||||
<foreach collection="lineIds" item="lineId" index="index" open="(" separator="," close=")">
|
||||
#{lineId}
|
||||
</foreach>
|
||||
group by line_id
|
||||
</select>
|
||||
|
||||
<select id="getRecommendPointList" resultMap="BaseResultMap">
|
||||
select
|
||||
id,
|
||||
point_id as pointId,
|
||||
line_id as lineId,
|
||||
development_manager as developmentManager,
|
||||
status,
|
||||
reason
|
||||
from
|
||||
xfsg_point_recommend
|
||||
where
|
||||
line_id = #{lineId} and deleted = 0
|
||||
</select>
|
||||
|
||||
<insert id="batchInsert">
|
||||
<foreach collection="recommendList" item="item" index="index" separator=";">
|
||||
insert into xfsg_point_recommend (line_id, point_id, development_manager, status)
|
||||
values (#{item.lineId}, #{item.pointId}, #{item.developmentManager}, #{item.status})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<update id="deleteUnselectedRecommendPointByLineId">
|
||||
update xfsg_point_recommend set deleted = 1 where line_id = #{lineId} and deleted = 0 and status in (0,2)
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user