37 lines
1.4 KiB
XML
37 lines
1.4 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">
|
|
<update id="updateDataHandleServiceV25">
|
|
update xfsg_franchise_fee
|
|
set first_year_fee = "6000",
|
|
first_year_manage_fee = "7200"
|
|
</update>
|
|
|
|
<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,
|
|
b.combined_field as combinedField,
|
|
a.year_franchise_fee as yearFranchiseFee,
|
|
a.first_year_manage_fee as firstYearManagementFee,
|
|
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,
|
|
b.pay_user_name as payUserName
|
|
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> |