|
|
@@ -2,4 +2,77 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="org.jeecg.modules.hlwinvoice.mapper.HlwDutyPaidMapper">
|
|
|
|
|
|
+ <sql id="hlwDutyPaidColumns">
|
|
|
+ a.id AS "id",
|
|
|
+ a.total_amount AS "totalAmount",
|
|
|
+ a.receipt_number AS "receiptNumber",
|
|
|
+ a.tax_payment_receipt AS "taxPaymentReceipt",
|
|
|
+ a.upload_time AS "uploadTime",
|
|
|
+ a.upload_by AS "uploadBy"
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <sql id="hlwDutyPaidJoins">
|
|
|
+
|
|
|
+ </sql>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="get" resultType="org.jeecg.modules.hlwinvoice.entity.HlwDutyPaid" >
|
|
|
+ SELECT
|
|
|
+ <include refid="hlwDutyPaidColumns"/>
|
|
|
+ FROM hlw_duty_paid a
|
|
|
+ <include refid="hlwDutyPaidJoins"/>
|
|
|
+ WHERE a.id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="findList" resultType="org.jeecg.modules.hlwinvoice.entity.HlwDutyPaid" >
|
|
|
+ SELECT
|
|
|
+ <include refid="hlwDutyPaidColumns"/>
|
|
|
+ FROM hlw_duty_paid a
|
|
|
+ <include refid="hlwDutyPaidJoins"/>
|
|
|
+ <where>
|
|
|
+
|
|
|
+
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="savePaid">
|
|
|
+ INSERT INTO hlw_duty_paid(
|
|
|
+ total_amount,
|
|
|
+ receipt_number,
|
|
|
+ tax_payment_receipt,
|
|
|
+ upload_time,
|
|
|
+ upload_by
|
|
|
+ ) VALUES (
|
|
|
+ #{totalAmount},
|
|
|
+ #{receiptNumber},
|
|
|
+ #{taxPaymentReceipt},
|
|
|
+ #{uploadTime},
|
|
|
+ #{uploadBy}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updatePaid">
|
|
|
+ UPDATE hlw_duty_paid SET
|
|
|
+ total_amount = #{totalAmount},
|
|
|
+ receipt_number = #{receiptNumber},
|
|
|
+ tax_payment_receipt = #{taxPaymentReceipt},
|
|
|
+ upload_time = #{uploadTime},
|
|
|
+ upload_by = #{uploadBy}
|
|
|
+ WHERE id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <!--物理删除-->
|
|
|
+ <update id="delete">
|
|
|
+ DELETE FROM hlw_duty_paid
|
|
|
+ WHERE id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <!--逻辑删除-->
|
|
|
+ <update id="deleteByLogic">
|
|
|
+ UPDATE hlw_duty_paid SET
|
|
|
+ del_flag = #{DEL_FLAG_DELETE}
|
|
|
+ WHERE id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
</mapper>
|