|
@@ -27,10 +27,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="payTypes" column="pay_types" />
|
|
|
<result property="chequeNo" column="cheque_no" />
|
|
|
<result property="auditType" column="audit_type" />
|
|
|
+ <result property="skCdbName" column="sk_cdb_name" />
|
|
|
+ <result property="skCdbNo" column="sk_cdb_no" />
|
|
|
+ <result property="skAccountTitle" column="sk_account_title" />
|
|
|
+ <result property="printQuantity" column="print_quantity" />
|
|
|
+ <result property="printTime" column="print_time" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFInvoicePaymentVo">
|
|
|
- select id, sys_no, f_corpid, tt_co_id, kp_co_id, audit_type, pay_types, cheque_no, pay_type, account_title, type, cdb_name, cdb_no, sum_money, kp_time_start, kp_time_terminate, remark, del_flag, create_by, create_time, update_by, update_time from f_Invoice_payment
|
|
|
+ select id, sys_no, f_corpid, tt_co_id, sk_cdb_name, print_quantity, print_time, sk_cdb_no, sk_account_title, kp_co_id, audit_type, pay_types, cheque_no, pay_type, account_title, type, cdb_name, cdb_no, sum_money, kp_time_start, kp_time_terminate, remark, del_flag, create_by, create_time, update_by, update_time from f_Invoice_payment
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFInvoicePaymentList" parameterType="FInvoicePayment" resultMap="FInvoicePaymentResult">
|
|
@@ -157,6 +162,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="payTypes != null">pay_types,</if>
|
|
|
<if test="chequeNo != null">cheque_no,</if>
|
|
|
<if test="auditType != null">audit_type,</if>
|
|
|
+ <if test="skCdbName != null">sk_cdb_name,</if>
|
|
|
+ <if test="skCdbNo != null">sk_cdb_no,</if>
|
|
|
+ <if test="skAccountTitle != null">sk_account_title,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -181,6 +189,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="payTypes != null">#{payTypes},</if>
|
|
|
<if test="chequeNo != null">#{chequeNo},</if>
|
|
|
<if test="auditType != null">#{auditType},</if>
|
|
|
+ <if test="skCdbName != null">#{skCdbName},</if>
|
|
|
+ <if test="skCdbNo != null">#{skCdbNo},</if>
|
|
|
+ <if test="skAccountTitle != null">#{skAccountTitle},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -208,6 +219,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="payTypes != null">pay_types = #{payTypes},</if>
|
|
|
<if test="chequeNo != null">cheque_no = #{chequeNo},</if>
|
|
|
<if test="auditType != null">audit_type = #{auditType},</if>
|
|
|
+ <if test="skCdbName != null">sk_cdb_name = #{skCdbName},</if>
|
|
|
+ <if test="skCdbNo != null">sk_cdb_no = #{skCdbNo},</if>
|
|
|
+ <if test="skAccountTitle != null">sk_account_title = #{skAccountTitle},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
@@ -223,6 +237,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<update id="updateAuditTypeById">
|
|
|
update f_Invoice_payment set audit_type = #{auditType}, update_by = #{username},update_time = #{nowDate} where id = #{id}
|
|
|
</update>
|
|
|
+ <update id="confirmPrinting">
|
|
|
+ update f_Invoice_payment set print_quantity = print_quantity + 1, print_time = #{printTime} where id = #{ids}
|
|
|
+ </update>
|
|
|
|
|
|
|
|
|
<delete id="deleteFInvoicePaymentById" parameterType="Long">
|