|
@@ -8,14 +8,19 @@
|
|
|
<result property="fId" column="f_id"/>
|
|
|
<result property="fBillno" column="f_billno"/>
|
|
|
<result property="fCtrlcorpid" column="f_ctrlcorpid"/>
|
|
|
+ <result property="fActId" column="f_act_id"/>
|
|
|
<result property="fCorpid" column="f_corpid"/>
|
|
|
+ <result property="fTransActId" column="f_trans_act_id"/>
|
|
|
<result property="tMblno" column="t_mblno"/>
|
|
|
<result property="fAmtdr" column="f_amtdr"/>
|
|
|
<result property="fAmtcr" column="f_amtcr"/>
|
|
|
<result property="fBilltype" column="f_billtype"/>
|
|
|
<result property="fBillstatus" column="f_billstatus"/>
|
|
|
<result property="fRemarks" column="f_remarks"/>
|
|
|
+ <result property="fFromDate" column="f_from_date"/>
|
|
|
<result property="fAccbilldate" column="f_accbilldate"/>
|
|
|
+ <result property="fToDate" column="f_to_date"/>
|
|
|
+ <result property="fRefNo" column="f_ref_no"/>
|
|
|
<result property="delFlag" column="del_flag"/>
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
<result property="fDeptid" column="f_deptid"/>
|
|
@@ -25,43 +30,48 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTFeeVo">
|
|
|
- select f_id, f_billno, f_ctrlcorpid, f_corpid, t_mblno, f_amtdr, f_amtcr, f_billtype, f_billstatus, f_remarks, f_accbilldate, del_flag, create_by, f_deptid, create_time, update_by, update_time from t_fee
|
|
|
- </sql>
|
|
|
+ select f_id, f_billno, f_ctrlcorpid, f_act_id, f_corpid, f_trans_act_id, t_mblno, f_amtdr, f_amtcr, f_billtype, f_billstatus, f_remarks, f_from_date, f_accbilldate, f_to_date, f_ref_no, del_flag, create_by, f_deptid, create_time, update_by, update_time from t_fee
|
|
|
+ </sql>
|
|
|
|
|
|
<select id="selectTFeeList" parameterType="TFee" resultMap="TFeeResult">
|
|
|
<include refid="selectTFeeVo"/>
|
|
|
<where>
|
|
|
<if test="fBillno != null and fBillno != ''">and f_billno = #{fBillno}</if>
|
|
|
<if test="fCtrlcorpid != null ">and f_ctrlcorpid = #{fCtrlcorpid}</if>
|
|
|
+ <if test="fActId != null ">and f_act_id = #{fActId}</if>
|
|
|
<if test="fCorpid != null ">and f_corpid = #{fCorpid}</if>
|
|
|
+ <if test="fTransActId != null ">and f_trans_act_id = #{fTransActId}</if>
|
|
|
<if test="tMblno != null and tMblno != ''">and t_mblno = #{tMblno}</if>
|
|
|
<if test="fAmtdr != null ">and f_amtdr = #{fAmtdr}</if>
|
|
|
<if test="fAmtcr != null ">and f_amtcr = #{fAmtcr}</if>
|
|
|
<if test="fBilltype != null and fBilltype != ''">and f_billtype = #{fBilltype}</if>
|
|
|
<if test="fBillstatus != null and fBillstatus != ''">and f_billstatus = #{fBillstatus}</if>
|
|
|
<if test="fRemarks != null and fRemarks != ''">and f_remarks = #{fRemarks}</if>
|
|
|
+ <if test="fFromDate != null ">and f_from_date = #{fFromDate}</if>
|
|
|
<if test="fAccbilldate != null ">and f_accbilldate = #{fAccbilldate}</if>
|
|
|
+ <if test="fToDate != null ">and f_to_date = #{fToDate}</if>
|
|
|
+ <if test="fRefNo != null and fRefNo != ''">and f_ref_no = #{fRefNo}</if>
|
|
|
<if test="fDeptid != null ">and f_deptid = #{fDeptid}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectTFeeList1" parameterType="TFee" resultType="Map">
|
|
|
SELECT
|
|
|
- f.f_id AS fId,
|
|
|
- f.f_billno AS fBillno,
|
|
|
- f.f_ctrlcorpid AS fCtrlcorpid,
|
|
|
- f.f_corpid AS fCorpid,
|
|
|
- c.f_name AS fCorpidName,
|
|
|
- f.f_accbilldate AS fAccbilldate,
|
|
|
- f.t_mblno AS tMblno,
|
|
|
- f.f_amtdr AS fAmtdr,
|
|
|
- f.f_amtcr AS fAmtcr,
|
|
|
- f.f_billtype AS fBilltype,
|
|
|
- f.f_billstatus AS fBillstatus,
|
|
|
- f.f_remarks AS fRemarks,
|
|
|
- f.create_by AS createBy
|
|
|
+ f.f_id AS fId,
|
|
|
+ f.f_billno AS fBillno,
|
|
|
+ f.f_ctrlcorpid AS fCtrlcorpid,
|
|
|
+ f.f_corpid AS fCorpid,
|
|
|
+ c.f_name AS fCorpidName,
|
|
|
+ f.f_accbilldate AS fAccbilldate,
|
|
|
+ f.t_mblno AS tMblno,
|
|
|
+ f.f_amtdr AS fAmtdr,
|
|
|
+ f.f_amtcr AS fAmtcr,
|
|
|
+ f.f_billtype AS fBilltype,
|
|
|
+ f.f_billstatus AS fBillstatus,
|
|
|
+ f.f_remarks AS fRemarks,
|
|
|
+ f.create_by AS createBy
|
|
|
FROM
|
|
|
- t_fee AS f
|
|
|
+ t_fee AS f
|
|
|
LEFT JOIN t_corps AS c ON f.f_corpid = c.f_id
|
|
|
<where>
|
|
|
<if test="fBillno != null and fBillno != ''">and f.f_billno = #{fBillno}</if>
|
|
@@ -86,16 +96,22 @@
|
|
|
<insert id="insertTFee" parameterType="TFee" useGeneratedKeys="true" keyProperty="fId">
|
|
|
insert into t_fee
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="fId != null">f_id,</if>
|
|
|
<if test="fBillno != null">f_billno,</if>
|
|
|
<if test="fCtrlcorpid != null">f_ctrlcorpid,</if>
|
|
|
+ <if test="fActId != null">f_act_id,</if>
|
|
|
<if test="fCorpid != null">f_corpid,</if>
|
|
|
+ <if test="fTransActId != null">f_trans_act_id,</if>
|
|
|
<if test="tMblno != null">t_mblno,</if>
|
|
|
<if test="fAmtdr != null">f_amtdr,</if>
|
|
|
<if test="fAmtcr != null">f_amtcr,</if>
|
|
|
<if test="fBilltype != null and fBilltype != ''">f_billtype,</if>
|
|
|
<if test="fBillstatus != null and fBillstatus != ''">f_billstatus,</if>
|
|
|
<if test="fRemarks != null">f_remarks,</if>
|
|
|
+ <if test="fFromDate != null">f_from_date,</if>
|
|
|
<if test="fAccbilldate != null">f_accbilldate,</if>
|
|
|
+ <if test="fToDate != null">f_to_date,</if>
|
|
|
+ <if test="fRefNo != null">f_ref_no,</if>
|
|
|
<if test="delFlag != null">del_flag,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="fDeptid != null">f_deptid,</if>
|
|
@@ -104,16 +120,22 @@
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="fId != null">#{fId},</if>
|
|
|
<if test="fBillno != null">#{fBillno},</if>
|
|
|
<if test="fCtrlcorpid != null">#{fCtrlcorpid},</if>
|
|
|
+ <if test="fActId != null">#{fActId},</if>
|
|
|
<if test="fCorpid != null">#{fCorpid},</if>
|
|
|
+ <if test="fTransActId != null">#{fTransActId},</if>
|
|
|
<if test="tMblno != null">#{tMblno},</if>
|
|
|
<if test="fAmtdr != null">#{fAmtdr},</if>
|
|
|
<if test="fAmtcr != null">#{fAmtcr},</if>
|
|
|
<if test="fBilltype != null and fBilltype != ''">#{fBilltype},</if>
|
|
|
<if test="fBillstatus != null and fBillstatus != ''">#{fBillstatus},</if>
|
|
|
<if test="fRemarks != null">#{fRemarks},</if>
|
|
|
+ <if test="fFromDate != null">#{fFromDate},</if>
|
|
|
<if test="fAccbilldate != null">#{fAccbilldate},</if>
|
|
|
+ <if test="fToDate != null">#{fToDate},</if>
|
|
|
+ <if test="fRefNo != null">#{fRefNo},</if>
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="fDeptid != null">#{fDeptid},</if>
|
|
@@ -128,14 +150,19 @@
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="fBillno != null">f_billno = #{fBillno},</if>
|
|
|
<if test="fCtrlcorpid != null">f_ctrlcorpid = #{fCtrlcorpid},</if>
|
|
|
+ <if test="fActId != null">f_act_id = #{fActId},</if>
|
|
|
<if test="fCorpid != null">f_corpid = #{fCorpid},</if>
|
|
|
+ <if test="fTransActId != null">f_trans_act_id = #{fTransActId},</if>
|
|
|
<if test="tMblno != null">t_mblno = #{tMblno},</if>
|
|
|
<if test="fAmtdr != null">f_amtdr = #{fAmtdr},</if>
|
|
|
<if test="fAmtcr != null">f_amtcr = #{fAmtcr},</if>
|
|
|
<if test="fBilltype != null and fBilltype != ''">f_billtype = #{fBilltype},</if>
|
|
|
<if test="fBillstatus != null and fBillstatus != ''">f_billstatus = #{fBillstatus},</if>
|
|
|
<if test="fRemarks != null">f_remarks = #{fRemarks},</if>
|
|
|
+ <if test="fFromDate != null">f_from_date = #{fFromDate},</if>
|
|
|
<if test="fAccbilldate != null">f_accbilldate = #{fAccbilldate},</if>
|
|
|
+ <if test="fToDate != null">f_to_date = #{fToDate},</if>
|
|
|
+ <if test="fRefNo != null">f_ref_no = #{fRefNo},</if>
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="fDeptid != null">f_deptid = #{fDeptid},</if>
|
|
@@ -152,11 +179,11 @@
|
|
|
|
|
|
<delete id="deleteTFeeByIds" parameterType="String">
|
|
|
delete
|
|
|
- f.*,
|
|
|
- fd.*
|
|
|
+ f.*,
|
|
|
+ fd.*
|
|
|
from
|
|
|
t_fee f
|
|
|
- LEFT JOIN t_fee_do fd ON fd.f_pid = f.f_id
|
|
|
+ LEFT JOIN t_fee_do fd ON fd.f_pid = f.f_id
|
|
|
where f.f_id in
|
|
|
<foreach item="fId" collection="array" open="(" separator="," close=")">
|
|
|
#{fId}
|