Przeglądaj źródła

部门新增运营保障

anderx 1 rok temu
rodzic
commit
abb92665ae

+ 1 - 1
src/main/java/com/goafanti/common/dao/DepartmentMapper.java

@@ -13,7 +13,7 @@ import java.util.List;
 /**
 * @author Administrator
 * @description 针对表【department】的数据库操作Mapper
-* @createDate 2024-06-11 17:10:31
+* @createDate 2024-06-14 09:40:31
 * @Entity com.goafanti.common.model.Department
 */
 public interface DepartmentMapper {

+ 11 - 5
src/main/java/com/goafanti/common/mapper/DepartmentMapper.xml

@@ -36,6 +36,7 @@
             <result property="viceCeoExamine" column="vice_ceo_examine" jdbcType="INTEGER"/>
             <result property="cashierExamine" column="cashier_examine" jdbcType="INTEGER"/>
             <result property="techAdminId" column="tech_admin_id" jdbcType="VARCHAR"/>
+            <result property="operationGuaranteeId" column="operation_guarantee_id" jdbcType="VARCHAR"/>
     </resultMap>
 
     <sql id="Base_Column_List">
@@ -49,7 +50,7 @@
         retrial_finance_id,approval,approval_aid,
         expense_finance_id,expense_retrial_finance_examine,ceo_examine,
         cfo_examine,vice_ceo_examine,cashier_examine,
-        tech_admin_id
+        tech_admin_id,operation_guarantee_id
     </sql>
 
     <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
@@ -75,7 +76,7 @@
         ,retrial_finance_id,approval,approval_aid
         ,expense_finance_id,expense_retrial_finance_examine,ceo_examine
         ,cfo_examine,vice_ceo_examine,cashier_examine
-        ,tech_admin_id)
+        ,tech_admin_id,operation_guarantee_id)
         values (#{id,jdbcType=VARCHAR},#{createId,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP}
         ,#{updateTime,jdbcType=TIMESTAMP},#{deletedSign,jdbcType=INTEGER},#{name,jdbcType=VARCHAR}
         ,#{type,jdbcType=VARCHAR},#{managerId,jdbcType=VARCHAR},#{depNo,jdbcType=VARCHAR}
@@ -86,7 +87,7 @@
         ,#{retrialFinanceId,jdbcType=VARCHAR},#{approval,jdbcType=INTEGER},#{approvalAid,jdbcType=VARCHAR}
         ,#{expenseFinanceId,jdbcType=VARCHAR},#{expenseRetrialFinanceExamine,jdbcType=INTEGER},#{ceoExamine,jdbcType=INTEGER}
         ,#{cfoExamine,jdbcType=INTEGER},#{viceCeoExamine,jdbcType=INTEGER},#{cashierExamine,jdbcType=INTEGER}
-        ,#{techAdminId,jdbcType=VARCHAR})
+        ,#{techAdminId,jdbcType=VARCHAR},#{operationGuaranteeId,jdbcType=VARCHAR})
     </insert>
     <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.goafanti.common.model.Department" useGeneratedKeys="true">
         insert into department
@@ -122,6 +123,7 @@
                 <if test="viceCeoExamine != null">vice_ceo_examine,</if>
                 <if test="cashierExamine != null">cashier_examine,</if>
                 <if test="techAdminId != null">tech_admin_id,</if>
+                <if test="operationGuaranteeId != null">operation_guarantee_id,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
                 <if test="id != null">#{id,jdbcType=VARCHAR},</if>
@@ -155,6 +157,7 @@
                 <if test="viceCeoExamine != null">#{viceCeoExamine,jdbcType=INTEGER},</if>
                 <if test="cashierExamine != null">#{cashierExamine,jdbcType=INTEGER},</if>
                 <if test="techAdminId != null">#{techAdminId,jdbcType=VARCHAR},</if>
+                <if test="operationGuaranteeId != null">#{operationGuaranteeId,jdbcType=VARCHAR},</if>
         </trim>
     </insert>
     <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.Department">
@@ -250,6 +253,9 @@
                 <if test="techAdminId != null">
                     tech_admin_id = #{techAdminId,jdbcType=VARCHAR},
                 </if>
+                <if test="operationGuaranteeId != null">
+                    operation_guarantee_id = #{operationGuaranteeId,jdbcType=VARCHAR},
+                </if>
         </set>
         where   id = #{id,jdbcType=VARCHAR} 
     </update>
@@ -285,7 +291,8 @@
             cfo_examine =  #{cfoExamine,jdbcType=INTEGER},
             vice_ceo_examine =  #{viceCeoExamine,jdbcType=INTEGER},
             cashier_examine =  #{cashierExamine,jdbcType=INTEGER},
-            tech_admin_id =  #{techAdminId,jdbcType=VARCHAR}
+            tech_admin_id =  #{techAdminId,jdbcType=VARCHAR},
+            operation_guarantee_id =  #{operationGuaranteeId,jdbcType=VARCHAR}
         where   id = #{id,jdbcType=VARCHAR} 
     </update>
 
@@ -613,5 +620,4 @@
         where a.process_status =3 and a.status =0 and a.auditor = #{useFinanceId}
           and b.id= #{newFinanceId}
     </update>
-
 </mapper>

+ 19 - 0
src/main/java/com/goafanti/common/model/Department.java

@@ -164,6 +164,11 @@ public class Department implements Serializable {
      */
     private String techAdminId;
 
+    /**
+     * 运营保障审核人
+     */
+    private String operationGuaranteeId;
+
     private static final long serialVersionUID = 1L;
 
     /**
@@ -599,4 +604,18 @@ public class Department implements Serializable {
     public void setTechAdminId(String techAdminId) {
         this.techAdminId = techAdminId;
     }
+
+    /**
+     * 运营保障审核人
+     */
+    public String getOperationGuaranteeId() {
+        return operationGuaranteeId;
+    }
+
+    /**
+     * 运营保障审核人
+     */
+    public void setOperationGuaranteeId(String operationGuaranteeId) {
+        this.operationGuaranteeId = operationGuaranteeId;
+    }
 }