优化计费逻辑
This commit is contained in:
@@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="redlineAmount" column="redline_amount" />
|
||||
<result property="salesAmount" column="sales_amount" />
|
||||
<result property="incomeTotal" column="income_total" />
|
||||
<result property="refundStatus" column="refund_status" />
|
||||
<result property="belongSaler" column="belong_saler" />
|
||||
<result property="belongSalerCode" column="belong_saler_code" />
|
||||
<result property="settlementMan" column="settlement_man" />
|
||||
@@ -24,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<sql id="selectPrcIncomeBillVo">
|
||||
select income_bill_id, bill_id, currency, product_amount, redline_amount,
|
||||
sales_amount, income_total,
|
||||
sales_amount, income_total, refund_status,
|
||||
belong_saler, belong_saler_code, settlement_man, settlement_man_code,
|
||||
create_by, create_time, update_by, update_time
|
||||
from prc_income_bill
|
||||
@@ -51,12 +52,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<insert id="insertPrcIncomeBill" parameterType="PrcIncomeBill">
|
||||
insert into prc_income_bill (
|
||||
income_bill_id, bill_id, currency, product_amount, redline_amount,
|
||||
sales_amount, income_total,
|
||||
sales_amount, income_total, refund_status,
|
||||
belong_saler, belong_saler_code, settlement_man, settlement_man_code,
|
||||
create_by, create_time
|
||||
) values (
|
||||
#{incomeBillId}, #{billId}, #{currency}, #{productAmount}, #{redlineAmount},
|
||||
#{salesAmount}, #{incomeTotal},
|
||||
#{salesAmount}, #{incomeTotal}, #{refundStatus},
|
||||
#{belongSaler}, #{belongSalerCode}, #{settlementMan}, #{settlementManCode},
|
||||
#{createBy}, sysdate()
|
||||
)
|
||||
@@ -69,6 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
redline_amount = #{redlineAmount},
|
||||
sales_amount = #{salesAmount},
|
||||
income_total = #{incomeTotal},
|
||||
refund_status = #{refundStatus},
|
||||
belong_saler = #{belongSaler},
|
||||
belong_saler_code = #{belongSalerCode},
|
||||
settlement_man = #{settlementMan},
|
||||
@@ -81,12 +83,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<insert id="upsertPrcIncomeBill" parameterType="PrcIncomeBill">
|
||||
insert into prc_income_bill (
|
||||
income_bill_id, bill_id, currency, product_amount, redline_amount,
|
||||
sales_amount, income_total,
|
||||
sales_amount, income_total, refund_status,
|
||||
belong_saler, belong_saler_code, settlement_man, settlement_man_code,
|
||||
create_by, create_time
|
||||
) values (
|
||||
#{incomeBillId}, #{billId}, #{currency}, #{productAmount}, #{redlineAmount},
|
||||
#{salesAmount}, #{incomeTotal},
|
||||
#{salesAmount}, #{incomeTotal}, #{refundStatus},
|
||||
#{belongSaler}, #{belongSalerCode}, #{settlementMan}, #{settlementManCode},
|
||||
#{createBy}, sysdate()
|
||||
)
|
||||
@@ -96,6 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
redline_amount = values(redline_amount),
|
||||
sales_amount = values(sales_amount),
|
||||
income_total = values(income_total),
|
||||
refund_status = values(refund_status),
|
||||
belong_saler = values(belong_saler),
|
||||
belong_saler_code = values(belong_saler_code),
|
||||
settlement_man = values(settlement_man),
|
||||
|
||||
Reference in New Issue
Block a user