分账逻辑及逻辑接入及分账记录查询

This commit is contained in:
2025-02-18 10:18:07 +08:00
parent 25e6e6788d
commit 63df84fa7c
13 changed files with 302 additions and 172 deletions

View File

@ -8,4 +8,15 @@
(#{record.scenicId}, #{record.orderId}, #{record.userId}, #{record.userName}, #{record.amount}, #{record.wxAmount}, #{record.manualAmount}, #{record.wxRate}, #{record.realRate}, #{record.orderAmount}, #{record.createTime})
</foreach>
</insert>
<select id="findByScenicId" resultType="com.ycwl.basic.model.pc.profitsharing.resp.ProfitSharingRecordRespVO">
SELECT r.*, s.name as scenic_name
FROM profit_sharing_record r
LEFT JOIN scenic s ON s.id = r.scenic_id
<where>
<if test="scenicId != null">
AND r.scenic_id = #{scenicId}
</if>
</where>
ORDER BY r.create_time desc
</select>
</mapper>