hejinbo пре 2 година
родитељ
комит
0d197b2aa9

+ 2
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/DeptIdentifyServiceImpl.java Прегледај датотеку

304
             return AjaxResult.error("信息重复");
304
             return AjaxResult.error("信息重复");
305
         }
305
         }
306
         deptIdentify.setIdentifyStatus(0); //设置认证状态默认为未认证
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
         if (i > 0) {
309
         if (i > 0) {
310
             return AjaxResult.success("新增成功");
310
             return AjaxResult.success("新增成功");
311
         }
311
         }

+ 11
- 6
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/DeptIdentifyMapper.xml Прегледај датотеку

13
         <result property="identifyName"     column="identify_name"     />
13
         <result property="identifyName"     column="identify_name"     />
14
         <result property="operName"     column="oper_name"     />
14
         <result property="operName"     column="oper_name"     />
15
         <result property="operPhone"     column="oper_phone"     />
15
         <result property="operPhone"     column="oper_phone"     />
16
+        <result property="identifyType"     column="identify_type"     />
16
 
17
 
17
     </resultMap>
18
     </resultMap>
18
 
19
 
47
 
48
 
48
     <insert id="insertDeptIdentify" parameterType="DeptIdentify" useGeneratedKeys="true" keyProperty="id">
49
     <insert id="insertDeptIdentify" parameterType="DeptIdentify" useGeneratedKeys="true" keyProperty="id">
49
         insert into dept_identify(
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
         <if test="identifyStatus != null">identify_status,</if>
52
         <if test="identifyStatus != null">identify_status,</if>
53
         <if test="identifyDate != null">identify_date,</if>
53
         <if test="identifyDate != null">identify_date,</if>
54
         <if test="isUse != null">is_use,</if>
54
         <if test="isUse != null">is_use,</if>
55
         <if test="orgId != null and orgId != ''">org_id,</if>
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
         )values(
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
         <if test="identifyStatus != null">#{identifyStatus},</if>
62
         <if test="identifyStatus != null">#{identifyStatus},</if>
61
         <if test="identifyDate != null">#{identifyDate},</if>
63
         <if test="identifyDate != null">#{identifyDate},</if>
62
         <if test="isUse != null">#{isUse},</if>
64
         <if test="isUse != null">#{isUse},</if>
63
         <if test="orgId != null and orgId != ''">#{orgId},</if>
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
     </insert>
71
     </insert>
67
 
72