Parcourir la source

Merge branch 'hjb' of SH-Arbitrate/Arbitrate-Backend into dev

hejinbo il y a 2 ans
Parent
révision
e18e47f31f

+ 2
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/DeptIdentifyServiceImpl.java Voir le fichier

@@ -304,8 +304,8 @@ public class DeptIdentifyServiceImpl implements IDeptIdentifyService {
304 304
             return AjaxResult.error("信息重复");
305 305
         }
306 306
         deptIdentify.setIdentifyStatus(0); //设置认证状态默认为未认证
307
-        deptIdentify.setIsUse(0); //设置认证状态默认为未认证
308
-        int i = deptIdentifyMapper.insertDeptIdentify(deptIdentify);//设置机构默认为未启用
307
+        deptIdentify.setIsUse(0); //设置机构默认为未启用
308
+        int i = deptIdentifyMapper.insertDeptIdentify(deptIdentify);
309 309
         if (i > 0) {
310 310
             return AjaxResult.success("新增成功");
311 311
         }

+ 11
- 6
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/DeptIdentifyMapper.xml Voir le fichier

@@ -13,6 +13,7 @@
13 13
         <result property="identifyName"     column="identify_name"     />
14 14
         <result property="operName"     column="oper_name"     />
15 15
         <result property="operPhone"     column="oper_phone"     />
16
+        <result property="identifyType"     column="identify_type"     />
16 17
 
17 18
     </resultMap>
18 19
 
@@ -47,21 +48,25 @@
47 48
 
48 49
     <insert id="insertDeptIdentify" parameterType="DeptIdentify" useGeneratedKeys="true" keyProperty="id">
49 50
         insert into dept_identify(
50
-        <if test="deptId != null">dept_id,</if>
51
-        <if test="userId != null">user_id,</if>
51
+        <if test="identifyName != null and identifyName != ''">identify_name,</if>
52 52
         <if test="identifyStatus != null">identify_status,</if>
53 53
         <if test="identifyDate != null">identify_date,</if>
54 54
         <if test="isUse != null">is_use,</if>
55 55
         <if test="orgId != null and orgId != ''">org_id,</if>
56
-        <if test="authFlowId != null and authFlowId != ''">auth_flow_id</if>
56
+        <if test="operName != null and operName != ''">oper_name,</if>
57
+        <if test="operPhone != null and operPhone != ''">oper_phone,</if>
58
+        <if test="authFlowId != null and authFlowId != ''">auth_flow_id,</if>
59
+        <if test="identifyType != null">identify_type</if>
57 60
         )values(
58
-        <if test="deptId != null">#{deptId},</if>
59
-        <if test="userId != null">#{userId},</if>
61
+        <if test="identifyName != null and identifyName != ''">#{identifyName},</if>
60 62
         <if test="identifyStatus != null">#{identifyStatus},</if>
61 63
         <if test="identifyDate != null">#{identifyDate},</if>
62 64
         <if test="isUse != null">#{isUse},</if>
63 65
         <if test="orgId != null and orgId != ''">#{orgId},</if>
64
-        <if test="authFlowId != null and authFlowId != '' ">#{authFlowId}</if>
66
+        <if test="operName != null and operName != ''">#{operName},</if>
67
+        <if test="operPhone != null and operPhone != ''">#{operPhone},</if>
68
+        <if test="authFlowId != null and authFlowId != '' ">#{authFlowId},</if>
69
+        <if test="identifyType != null ">#{identifyType}</if>
65 70
         )
66 71
     </insert>
67 72