29 lines
1.1 KiB
XML
29 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.cool.store.mapper.FranchiseFeeMapper">
|
|
|
|
<select id="selectByShopId" resultType="com.cool.store.entity.FranchiseFeeDO">
|
|
select *
|
|
from xfsg_franchise_fee
|
|
where shop_id = #{shopId}
|
|
order by create_time desc
|
|
limit 1
|
|
</select>
|
|
<select id="getPayTimeByShopIds" resultType="com.cool.store.dto.FranchiseFeeDTO">
|
|
select a.shop_id AS shopId ,
|
|
b.pay_time as payTime,
|
|
a.year_franchise_fee as yearFranchiseFee,
|
|
a.loan_margin as loanMargin,
|
|
a.first_year_start_time as firstYearStartTime,
|
|
a.first_year_end_time as firstYearEndTime,
|
|
a.first_year_fee as firstYearFee,
|
|
a.performance_bond as performanceBond
|
|
from xfsg_franchise_fee a
|
|
LEFT JOIN xfsg_line_pay b ON b.id = a.pay_id
|
|
where a.shop_id in
|
|
<foreach collection="shopIds" item="shopId" open="(" separator="," close=")">
|
|
#{shopId}
|
|
</foreach>
|
|
</select>
|
|
|
|
</mapper> |