Browse Source

维修添加费用组成

周箭河 5 years ago
parent
commit
4c57196ec4

+ 20 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/entity/StudentRepair.java

@@ -1,5 +1,7 @@
 package com.ym.mec.biz.dal.entity;
 
+import org.apache.commons.lang3.builder.ToStringBuilder;
+
 import java.math.BigDecimal;
 import java.util.Date;
 
@@ -77,6 +79,11 @@ public class StudentRepair {
     private String instrumentNo;
 
     /**
+     * 费用组成
+     */
+    private String feeList;
+
+    /**
     * 问题描述及解决方法
     */
     private String description;
@@ -248,6 +255,14 @@ public class StudentRepair {
         this.instrumentNo = instrumentNo;
     }
 
+    public String getFeeList() {
+        return feeList;
+    }
+
+    public void setFeeList(String feeList) {
+        this.feeList = feeList;
+    }
+
     public String getDescription() {
         return description;
     }
@@ -351,4 +366,9 @@ public class StudentRepair {
     public void setIsUseBalancePayment(Boolean useBalancePayment) {
         isUseBalancePayment = useBalancePayment;
     }
+
+    @Override
+    public String toString() {
+        return ToStringBuilder.reflectionToString(this);
+    }
 }

+ 9 - 5
mec-biz/src/main/resources/config/mybatis/StudentRepairMapper.xml

@@ -17,6 +17,7 @@
         <result column="subject_name_" jdbcType="VARCHAR" property="subjectName"/>
         <result column="type_" jdbcType="INTEGER" property="type"/>
         <result column="instrument_no_" jdbcType="VARCHAR" property="instrumentNo"/>
+        <result column="fee_list_" jdbcType="VARCHAR" property="feeList"/>
         <result column="description_" jdbcType="VARCHAR" property="description"/>
         <result column="amount_" jdbcType="DECIMAL" property="amount"/>
         <result column="finish_time_" jdbcType="TIMESTAMP" property="finishTime"/>
@@ -42,7 +43,7 @@
         insert into student_repair (id_, trans_no_, organ_id_,
         student_id_, student_name_, student_school_,
         employee_id_, employee_name_, subject_id_,
-        subject_name_, type_, instrument_no_,
+        subject_name_, type_, instrument_no_,fee_list_,
         description_, amount_, finish_time_,
         send_type_, contact_name_, contact_mobile_,
         address_, pay_status_, create_time_,
@@ -51,10 +52,10 @@
         #{studentId,jdbcType=INTEGER}, #{studentName,jdbcType=VARCHAR}, #{studentSchool,jdbcType=VARCHAR},
         #{employeeId,jdbcType=INTEGER}, #{employeeName,jdbcType=VARCHAR}, #{subjectId,jdbcType=INTEGER},
         #{subjectName,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{instrumentNo,jdbcType=VARCHAR},
-        #{description,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, #{finishTime,jdbcType=TIMESTAMP},
-        #{sendType,jdbcType=INTEGER}, #{contactName,jdbcType=VARCHAR}, #{contactMobile,jdbcType=VARCHAR},
-        #{address,jdbcType=VARCHAR}, #{payStatus,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
-        #{updateTime,jdbcType=TIMESTAMP},#{repairStatus})
+        #{feeList,jdbcType=VARCHAR},#{description,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL},
+        #{finishTime,jdbcType=TIMESTAMP},#{sendType,jdbcType=INTEGER}, #{contactName,jdbcType=VARCHAR},
+        #{contactMobile,jdbcType=VARCHAR},#{address,jdbcType=VARCHAR}, #{payStatus,jdbcType=INTEGER},
+        #{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP},#{repairStatus})
     </insert>
     <update id="update" parameterType="com.ym.mec.biz.dal.entity.StudentRepair">
         UPDATE student_repair
@@ -95,6 +96,9 @@
             <if test="instrumentNo != null">
                 instrument_no_ = #{instrumentNo},
             </if>
+            <if test="feeList != null">
+                fee_list_ = #{feeList},
+            </if>
             <if test="description != null">
                 description_ = #{description},
             </if>