Browse Source

新增、删除报销详情

anderx 2 years ago
parent
commit
c13f1f711c

+ 109 - 3
src/main/java/com/goafanti/common/mapper/ExpenseAccountDetailsMapper.xml

@@ -11,11 +11,21 @@
     <result column="vehicle" jdbcType="INTEGER" property="vehicle" />
     <result column="vehicle_other" jdbcType="VARCHAR" property="vehicleOther" />
     <result column="remarks" jdbcType="VARCHAR" property="remarks" />
+    <result column="agree_time" jdbcType="TIMESTAMP" property="agreeTime" />
+    <result column="pay_type" jdbcType="INTEGER" property="payType" />
+    <result column="invoice_type" jdbcType="INTEGER" property="invoiceType" />
+    <result column="invoice_no" jdbcType="VARCHAR" property="invoiceNo" />
+    <result column="payer_name" jdbcType="VARCHAR" property="payerName" />
+    <result column="open_bank" jdbcType="VARCHAR" property="openBank" />
+    <result column="bank_accounts" jdbcType="VARCHAR" property="bankAccounts" />
+    <result column="open_bank_address" jdbcType="VARCHAR" property="openBankAddress" />
+    <result column="lend_id" jdbcType="INTEGER" property="lendId" />
     <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
   </resultMap>
   <sql id="Base_Column_List">
     id, eaid, `type`, start_time, end_time, amount, vehicle, vehicle_other, remarks,
-    create_time
+    agree_time, pay_type, invoice_type, invoice_no, payer_name, open_bank, bank_accounts,
+    open_bank_address, lend_id, create_time
   </sql>
   <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
     select
@@ -30,11 +40,17 @@
   <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.ExpenseAccountDetails" useGeneratedKeys="true">
     insert into expense_account_details (eaid, `type`, start_time,
       end_time, amount, vehicle,
-      vehicle_other, remarks, create_time
+      vehicle_other, remarks, agree_time,
+      pay_type, invoice_type, invoice_no,
+      payer_name, open_bank, bank_accounts,
+      open_bank_address, lend_id, create_time
       )
     values (#{eaid,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{startTime,jdbcType=TIMESTAMP},
       #{endTime,jdbcType=TIMESTAMP}, #{amount,jdbcType=DECIMAL}, #{vehicle,jdbcType=INTEGER},
-      #{vehicleOther,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}
+      #{vehicleOther,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, #{agreeTime,jdbcType=TIMESTAMP},
+      #{payType,jdbcType=INTEGER}, #{invoiceType,jdbcType=INTEGER}, #{invoiceNo,jdbcType=VARCHAR},
+      #{payerName,jdbcType=VARCHAR}, #{openBank,jdbcType=VARCHAR}, #{bankAccounts,jdbcType=VARCHAR},
+      #{openBankAddress,jdbcType=VARCHAR}, #{lendId,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}
       )
   </insert>
   <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.ExpenseAccountDetails" useGeneratedKeys="true">
@@ -64,6 +80,33 @@
       <if test="remarks != null">
         remarks,
       </if>
+      <if test="agreeTime != null">
+        agree_time,
+      </if>
+      <if test="payType != null">
+        pay_type,
+      </if>
+      <if test="invoiceType != null">
+        invoice_type,
+      </if>
+      <if test="invoiceNo != null">
+        invoice_no,
+      </if>
+      <if test="payerName != null">
+        payer_name,
+      </if>
+      <if test="openBank != null">
+        open_bank,
+      </if>
+      <if test="bankAccounts != null">
+        bank_accounts,
+      </if>
+      <if test="openBankAddress != null">
+        open_bank_address,
+      </if>
+      <if test="lendId != null">
+        lend_id,
+      </if>
       <if test="createTime != null">
         create_time,
       </if>
@@ -93,6 +136,33 @@
       <if test="remarks != null">
         #{remarks,jdbcType=VARCHAR},
       </if>
+      <if test="agreeTime != null">
+        #{agreeTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="payType != null">
+        #{payType,jdbcType=INTEGER},
+      </if>
+      <if test="invoiceType != null">
+        #{invoiceType,jdbcType=INTEGER},
+      </if>
+      <if test="invoiceNo != null">
+        #{invoiceNo,jdbcType=VARCHAR},
+      </if>
+      <if test="payerName != null">
+        #{payerName,jdbcType=VARCHAR},
+      </if>
+      <if test="openBank != null">
+        #{openBank,jdbcType=VARCHAR},
+      </if>
+      <if test="bankAccounts != null">
+        #{bankAccounts,jdbcType=VARCHAR},
+      </if>
+      <if test="openBankAddress != null">
+        #{openBankAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="lendId != null">
+        #{lendId,jdbcType=INTEGER},
+      </if>
       <if test="createTime != null">
         #{createTime,jdbcType=TIMESTAMP},
       </if>
@@ -125,6 +195,33 @@
       <if test="remarks != null">
         remarks = #{remarks,jdbcType=VARCHAR},
       </if>
+      <if test="agreeTime != null">
+        agree_time = #{agreeTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="payType != null">
+        pay_type = #{payType,jdbcType=INTEGER},
+      </if>
+      <if test="invoiceType != null">
+        invoice_type = #{invoiceType,jdbcType=INTEGER},
+      </if>
+      <if test="invoiceNo != null">
+        invoice_no = #{invoiceNo,jdbcType=VARCHAR},
+      </if>
+      <if test="payerName != null">
+        payer_name = #{payerName,jdbcType=VARCHAR},
+      </if>
+      <if test="openBank != null">
+        open_bank = #{openBank,jdbcType=VARCHAR},
+      </if>
+      <if test="bankAccounts != null">
+        bank_accounts = #{bankAccounts,jdbcType=VARCHAR},
+      </if>
+      <if test="openBankAddress != null">
+        open_bank_address = #{openBankAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="lendId != null">
+        lend_id = #{lendId,jdbcType=INTEGER},
+      </if>
       <if test="createTime != null">
         create_time = #{createTime,jdbcType=TIMESTAMP},
       </if>
@@ -141,6 +238,15 @@
       vehicle = #{vehicle,jdbcType=INTEGER},
       vehicle_other = #{vehicleOther,jdbcType=VARCHAR},
       remarks = #{remarks,jdbcType=VARCHAR},
+      agree_time = #{agreeTime,jdbcType=TIMESTAMP},
+      pay_type = #{payType,jdbcType=INTEGER},
+      invoice_type = #{invoiceType,jdbcType=INTEGER},
+      invoice_no = #{invoiceNo,jdbcType=VARCHAR},
+      payer_name = #{payerName,jdbcType=VARCHAR},
+      open_bank = #{openBank,jdbcType=VARCHAR},
+      bank_accounts = #{bankAccounts,jdbcType=VARCHAR},
+      open_bank_address = #{openBankAddress,jdbcType=VARCHAR},
+      lend_id = #{lendId,jdbcType=INTEGER},
       create_time = #{createTime,jdbcType=TIMESTAMP}
     where id = #{id,jdbcType=INTEGER}
   </update>

+ 117 - 0
src/main/java/com/goafanti/common/model/ExpenseAccountDetails.java

@@ -52,6 +52,51 @@ public class ExpenseAccountDetails implements Serializable {
     private String remarks;
 
     /**
+     * 开始时间
+     */
+    private Date agreeTime;
+
+    /**
+     * 付款方式 
+     */
+    private Integer payType;
+
+    /**
+     * 发票类型 0普票 1专票
+     */
+    private Integer invoiceType;
+
+    /**
+     * 发票号
+     */
+    private String invoiceNo;
+
+    /**
+     * 付款单位
+     */
+    private String payerName;
+
+    /**
+     * 开户行名称
+     */
+    private String openBank;
+
+    /**
+     * 银行账户
+     */
+    private String bankAccounts;
+
+    /**
+     * 开户行地址
+     */
+    private String openBankAddress;
+
+    /**
+     * 借支编号
+     */
+    private Integer lendId;
+
+    /**
      * 创建时间
      */
     private Date createTime;
@@ -130,6 +175,78 @@ public class ExpenseAccountDetails implements Serializable {
         this.remarks = remarks;
     }
 
+    public Date getAgreeTime() {
+        return agreeTime;
+    }
+
+    public void setAgreeTime(Date agreeTime) {
+        this.agreeTime = agreeTime;
+    }
+
+    public Integer getPayType() {
+        return payType;
+    }
+
+    public void setPayType(Integer payType) {
+        this.payType = payType;
+    }
+
+    public Integer getInvoiceType() {
+        return invoiceType;
+    }
+
+    public void setInvoiceType(Integer invoiceType) {
+        this.invoiceType = invoiceType;
+    }
+
+    public String getInvoiceNo() {
+        return invoiceNo;
+    }
+
+    public void setInvoiceNo(String invoiceNo) {
+        this.invoiceNo = invoiceNo;
+    }
+
+    public String getPayerName() {
+        return payerName;
+    }
+
+    public void setPayerName(String payerName) {
+        this.payerName = payerName;
+    }
+
+    public String getOpenBank() {
+        return openBank;
+    }
+
+    public void setOpenBank(String openBank) {
+        this.openBank = openBank;
+    }
+
+    public String getBankAccounts() {
+        return bankAccounts;
+    }
+
+    public void setBankAccounts(String bankAccounts) {
+        this.bankAccounts = bankAccounts;
+    }
+
+    public String getOpenBankAddress() {
+        return openBankAddress;
+    }
+
+    public void setOpenBankAddress(String openBankAddress) {
+        this.openBankAddress = openBankAddress;
+    }
+
+    public Integer getLendId() {
+        return lendId;
+    }
+
+    public void setLendId(Integer lendId) {
+        this.lendId = lendId;
+    }
+
     public Date getCreateTime() {
         return createTime;
     }