fix:十二分制-奖惩规则
This commit is contained in:
@@ -58,6 +58,12 @@
|
||||
where store_id = #{storeId}
|
||||
</select>
|
||||
|
||||
<select id="getEffectiveByStoreId" resultMap="BaseResultMap">
|
||||
select *
|
||||
from store_${enterpriseId}
|
||||
where store_id = #{storeId} AND is_delete = 'effective'
|
||||
</select>
|
||||
|
||||
<select id="getEffectiveStoreByStoreIds" resultMap="BaseResultMap">
|
||||
select *
|
||||
from store_${enterpriseId}
|
||||
@@ -69,6 +75,18 @@
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="getStoreByStoreIds" resultMap="BaseResultMap">
|
||||
select *
|
||||
from store_${enterpriseId}
|
||||
<where>
|
||||
<if test="storeIds != null">
|
||||
<foreach collection="storeIds" item="item" separator="," open="and store_id in (" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="listStoreByRegionId" resultMap="BaseResultMap">
|
||||
select *
|
||||
from store_${enterpriseId}
|
||||
@@ -255,4 +273,15 @@
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="getStoreScore" resultType="java.math.BigDecimal">
|
||||
SELECT score FROM store_extend_info_${enterpriseId}
|
||||
WHERE store_id = #{storeId}
|
||||
</select>
|
||||
|
||||
<insert id="updateStoreScore">
|
||||
INSERT INTO store_extend_info_${enterpriseId} (store_id, score) VALUES (#{storeId}, #{score})
|
||||
ON DUPLICATE KEY UPDATE
|
||||
score = values(score)
|
||||
</insert>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user