智能仲裁后端服务

DeptIdentifyMapper.xml 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.DeptIdentifyMapper">
  6. <resultMap type="DeptIdentify" id="DeptIdentifyResult">
  7. <id property="id" column="id" />
  8. <result property="identifyStatus" column="identify_status" />
  9. <result property="identifyDate" column="identify_date" />
  10. <result property="isUse" column="is_use" />
  11. <result property="orgId" column="org_id" />
  12. <result property="authFlowId" column="auth_flow_id" />
  13. <result property="identifyName" column="identify_name" />
  14. <result property="operName" column="oper_name" />
  15. <result property="operPhone" column="oper_phone" />
  16. <result property="identifyType" column="identify_type" />
  17. <result property="delFlag" column="del_flag" />
  18. <result property="creditCode" column="credit_code" />
  19. <result property="legalPerName" column="legal_per_name" />
  20. <result property="legalPerPhone" column="legal_per_phone" />
  21. <result property="identifyEmail" column="identify_email" />
  22. <result property="deptId" column="dept_id" />
  23. <result property="userId" column="user_id" />
  24. </resultMap>
  25. <select id="selectDeptIdentify" parameterType="DeptIdentify" resultMap="DeptIdentifyResult">
  26. SELECT id, identify_name ,identify_status , identify_date,is_use,org_id,auth_flow_id,
  27. oper_name,oper_phone,identify_type,credit_code,legal_per_name,legal_per_phone
  28. ,identify_email,dept_id ,user_id
  29. FROM dept_identify
  30. <where>
  31. <if test="id != null">
  32. AND id = #{id}
  33. </if>
  34. <if test="identifyStatus != null">
  35. AND identify_status = #{identifyStatus}
  36. </if>
  37. <if test="isUse != null">
  38. AND is_use = #{isUse}
  39. </if>
  40. <if test="identifyName != null and identifyName != ''">
  41. AND identify_name = #{identifyName}
  42. </if>
  43. <if test="operName != null and operName != ''">
  44. AND oper_name = #{operName}
  45. </if>
  46. <if test="operPhone != null and operPhone != ''">
  47. AND oper_phone = #{operPhone}
  48. </if>
  49. AND identify_type = 1
  50. AND del_flag =0
  51. </where>
  52. ORDER BY id DESC
  53. </select>
  54. <insert id="insertDeptIdentify" parameterType="DeptIdentify" useGeneratedKeys="true" keyProperty="id">
  55. insert into dept_identify(
  56. <if test="identifyName != null and identifyName != ''">identify_name,</if>
  57. <if test="identifyStatus != null">identify_status,</if>
  58. <if test="identifyDate != null">identify_date,</if>
  59. <if test="isUse != null">is_use,</if>
  60. <if test="orgId != null and orgId != ''">org_id,</if>
  61. <if test="operName != null and operName != ''">oper_name,</if>
  62. <if test="operPhone != null and operPhone != ''">oper_phone,</if>
  63. <if test="identifyType != null">identify_type,</if>
  64. <if test="authFlowId != null and authFlowId != ''">auth_flow_id,</if>
  65. <if test="creditCode != null and creditCode != ''">credit_code,</if>
  66. <if test="legalPerName != null and legalPerName != ''">legal_per_name,</if>
  67. <if test="legalPerPhone != null and legalPerPhone != ''">legal_per_phone,</if>
  68. <if test="identifyEmail != null and identifyEmail != ''">identify_email,</if>
  69. <if test="deptId != null ">dept_id,</if>
  70. <if test="userId != null ">user_id,</if>
  71. del_flag
  72. )values(
  73. <if test="identifyName != null and identifyName != ''">#{identifyName},</if>
  74. <if test="identifyStatus != null">#{identifyStatus},</if>
  75. <if test="identifyDate != null">#{identifyDate},</if>
  76. <if test="isUse != null">#{isUse},</if>
  77. <if test="orgId != null and orgId != ''">#{orgId},</if>
  78. <if test="operName != null and operName != ''">#{operName},</if>
  79. <if test="operPhone != null and operPhone != ''">#{operPhone},</if>
  80. <if test="identifyType != null ">#{identifyType},</if>
  81. <if test="authFlowId != null and authFlowId != '' ">#{authFlowId},</if>
  82. <if test="creditCode != null and creditCode != '' ">#{creditCode},</if>
  83. <if test="legalPerName != null and legalPerName != '' ">#{legalPerName},</if>
  84. <if test="legalPerPhone != null and legalPerPhone != '' ">#{legalPerPhone},</if>
  85. <if test="identifyEmail != null and identifyEmail != '' ">#{identifyEmail},</if>
  86. <if test="deptId != null ">#{deptId},</if>
  87. <if test="userId != null ">#{userId},</if>
  88. 0
  89. )
  90. </insert>
  91. <update id="updateDeptIdentify" parameterType="DeptIdentify">
  92. update dept_identify
  93. <set>
  94. <if test="identifyDate != null">identify_date = #{identifyDate},</if>
  95. <if test="identifyName != null">identify_name = #{identifyName},</if>
  96. <if test="isUse != null">is_use = #{isUse},</if>
  97. <if test="identifyStatus != null ">identify_status = #{identifyStatus},</if>
  98. <if test="orgId != null and orgId != ''">org_id = #{orgId},</if>
  99. <if test="delFlag != null ">del_flag = #{delFlag},</if>
  100. <if test="operName != null and operName != ''">oper_name = #{operName},</if>
  101. <if test="operPhone != null and operPhone != ''">oper_phone = #{operPhone},</if>
  102. <if test="creditCode != null and creditCode != ''">credit_code = #{creditCode},</if>
  103. <if test="legalPerName != null and legalPerName != ''">legal_per_name = #{legalPerName},</if>
  104. <if test="legalPerPhone != null and legalPerPhone != ''">legal_per_phone = #{legalPerPhone},</if>
  105. <if test="identifyEmail != null and identifyEmail != ''">identify_email = #{identifyEmail},</if>
  106. <if test="authFlowId != null and authFlowId != '' ">auth_flow_id = #{authFlowId}</if>
  107. </set>
  108. <where>
  109. <if test="id != null">
  110. AND id = #{id}
  111. </if>
  112. </where>
  113. </update>
  114. </mapper>