Browse Source

阿米巴开发

anderx 3 years ago
parent
commit
4b6502bcd8

+ 17 - 4
src/main/java/com/goafanti/common/mapper/AmbSystemMapper.xml

@@ -17,10 +17,11 @@
     <result column="finance_id" jdbcType="VARCHAR" property="financeId" />
     <result column="ancestors_names" jdbcType="VARCHAR" property="ancestorsNames" />
     <result column="accountant" jdbcType="VARCHAR" property="accountant" />
+    <result column="remarks" jdbcType="VARCHAR" property="remarks" />
   </resultMap>
   <sql id="Base_Column_List">
     id, parent_id, ancestors, `name`, order_num, leader, `status`, create_by, create_time,
-    update_by, update_time, lvl, finance_id, ancestors_names, accountant
+    update_by, update_time, lvl, finance_id, ancestors_names, accountant, remarks
   </sql>
   <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
     select
@@ -37,12 +38,14 @@
       order_num, leader, `status`,
       create_by, create_time, update_by,
       update_time, lvl, finance_id,
-      ancestors_names, accountant)
+      ancestors_names, accountant, remarks
+      )
     values (#{parentId,jdbcType=BIGINT}, #{ancestors,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
       #{orderNum,jdbcType=INTEGER}, #{leader,jdbcType=VARCHAR}, #{status,jdbcType=CHAR},
       #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
       #{updateTime,jdbcType=TIMESTAMP}, #{lvl,jdbcType=INTEGER}, #{financeId,jdbcType=VARCHAR},
-      #{ancestorsNames,jdbcType=VARCHAR}, #{accountant,jdbcType=VARCHAR})
+      #{ancestorsNames,jdbcType=VARCHAR}, #{accountant,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}
+      )
   </insert>
   <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.AmbSystem" useGeneratedKeys="true">
     insert into amb_system
@@ -89,6 +92,9 @@
       <if test="accountant != null">
         accountant,
       </if>
+      <if test="remarks != null">
+        remarks,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="parentId != null">
@@ -133,6 +139,9 @@
       <if test="accountant != null">
         #{accountant,jdbcType=VARCHAR},
       </if>
+      <if test="remarks != null">
+        #{remarks,jdbcType=VARCHAR},
+      </if>
     </trim>
   </insert>
   <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.AmbSystem">
@@ -180,6 +189,9 @@
       <if test="accountant != null">
         accountant = #{accountant,jdbcType=VARCHAR},
       </if>
+      <if test="remarks != null">
+        remarks = #{remarks,jdbcType=VARCHAR},
+      </if>
     </set>
     where id = #{id,jdbcType=BIGINT}
   </update>
@@ -198,7 +210,8 @@
       lvl = #{lvl,jdbcType=INTEGER},
       finance_id = #{financeId,jdbcType=VARCHAR},
       ancestors_names = #{ancestorsNames,jdbcType=VARCHAR},
-      accountant = #{accountant,jdbcType=VARCHAR}
+      accountant = #{accountant,jdbcType=VARCHAR},
+      remarks = #{remarks,jdbcType=VARCHAR}
     where id = #{id,jdbcType=BIGINT}
   </update>
 

+ 13 - 0
src/main/java/com/goafanti/common/model/AmbSystem.java

@@ -83,6 +83,11 @@ public class AmbSystem implements Serializable {
      */
     private String accountant;
 
+    /**
+     * 说明
+     */
+    private String remarks;
+
     private static final long serialVersionUID = 1L;
 
     public Long getId() {
@@ -204,4 +209,12 @@ public class AmbSystem implements Serializable {
     public void setAccountant(String accountant) {
         this.accountant = accountant;
     }
+
+    public String getRemarks() {
+        return remarks;
+    }
+
+    public void setRemarks(String remarks) {
+        this.remarks = remarks;
+    }
 }