智能仲裁后端服务

CaseApplicationMapper.xml 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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.CaseApplicationMapper">
  6. <resultMap type="CaseApplication" id="CaseApplicationResult">
  7. <id property="id" column="id" />
  8. <result property="caseNum" column="case_num" />
  9. <result property="caseSubjectAmount" column="case_subject_amount" />
  10. <result property="registerDate" column="register_date" />
  11. <result property="arbitratMethod" column="arbitrat_method" />
  12. <result property="caseStatus" column="case_status" />
  13. <result property="hearDate" column="hear_date" />
  14. <result property="arbitratClaims" column="arbitrat_claims" />
  15. <result property="loanStartDate" column="loan_start_date" />
  16. <result property="loanEndDate" column="loan_end_date" />
  17. <result property="claimPrinciOwed" column="claim_princi_owed" />
  18. <result property="claimInterestOwed" column="claim_interest_owed" />
  19. <result property="claimLiquidDamag" column="claim_liquid_damag" />
  20. <result property="feePayable" column="fee_payable" />
  21. <result property="beginVideoDate" column="begin_video_date" />
  22. <result property="onlineVideoPerson" column="online_video_person" />
  23. <result property="contractNumber" column="contract_number" />
  24. <result property="caseStatusName" column="caseStatusName" />
  25. <result property="createBy" column="create_by" />
  26. <result property="createTime" column="create_time" />
  27. <result property="updateBy" column="update_by" />
  28. <result property="updateTime" column="update_time" />
  29. </resultMap>
  30. <select id="selectCaseApplicationList" parameterType="CaseApplication" resultMap="CaseApplicationResult">
  31. select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,c.case_status ,
  32. CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
  33. when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
  34. when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
  35. when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
  36. when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
  37. when 15 then '待仲裁文书送达' when 16 then '待案件归档'
  38. ELSE '无案件状态'
  39. END caseStatusName,
  40. c.hear_date ,c.arbitrat_claims ,
  41. c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
  42. c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
  43. c.update_by ,c.update_time
  44. from case_application c
  45. <where>
  46. <if test="caseStatus != null">
  47. AND c.case_status = #{caseStatus}
  48. </if>
  49. <if test="caseNum != null and caseNum != ''">
  50. AND c.case_num = #{caseNum}
  51. </if>
  52. <if test="caseStatusList != null and caseStatusList.size() > 0">
  53. and c.case_status in
  54. <foreach item="caseStatus" collection="caseStatusList" open="(" separator="," close=")">
  55. #{caseStatus}
  56. </foreach>
  57. </if>
  58. </where>
  59. </select>
  60. <select id="selectCaseApplicationCount" parameterType="CaseApplication" resultType="int">
  61. select count(1) from case_application c
  62. <where>
  63. <if test="caseNum != null and caseNum != ''">
  64. AND c.case_num = #{caseNum}
  65. </if>
  66. </where>
  67. </select>
  68. <insert id="insertCaseApplication" parameterType="CaseApplication" useGeneratedKeys="true" keyProperty="id">
  69. insert into case_application(
  70. <if test="caseNum != null and caseNum != ''">case_num,</if>
  71. <if test="caseSubjectAmount != null">case_subject_amount,</if>
  72. <if test="registerDate != null">register_date,</if>
  73. <if test="arbitratMethod != null and arbitratMethod != ''">arbitrat_method,</if>
  74. <if test="caseStatus != null ">case_status,</if>
  75. <if test="hearDate != null ">hear_date,</if>
  76. <if test="arbitratClaims != null and arbitratClaims != ''">arbitrat_claims,</if>
  77. <if test="loanStartDate != null ">loan_start_date,</if>
  78. <if test="loanEndDate != null ">loan_end_date,</if>
  79. <if test="claimPrinciOwed != null ">claim_princi_owed,</if>
  80. <if test="claimInterestOwed != null ">claim_interest_owed,</if>
  81. <if test="claimLiquidDamag != null ">claim_liquid_damag,</if>
  82. <if test="feePayable != null ">fee_payable,</if>
  83. <if test="beginVideoDate != null ">begin_video_date,</if>
  84. <if test="onlineVideoPerson != null and onlineVideoPerson != ''">online_video_person,</if>
  85. <if test="contractNumber != null and contractNumber != ''">contract_number,</if>
  86. <if test="createBy != null and createBy != ''">create_by,</if>
  87. create_time
  88. )values(
  89. <if test="caseNum != null and caseNum != ''">#{caseNum},</if>
  90. <if test="caseSubjectAmount != null">#{caseSubjectAmount},</if>
  91. <if test="registerDate != null">#{registerDate},</if>
  92. <if test="arbitratMethod != null and arbitratMethod != ''">#{arbitratMethod},</if>
  93. <if test="caseStatus != null ">#{caseStatus},</if>
  94. <if test="hearDate != null ">#{hearDate},</if>
  95. <if test="arbitratClaims != null and arbitratClaims != ''">#{arbitratClaims},</if>
  96. <if test="loanStartDate != null ">#{loanStartDate},</if>
  97. <if test="loanEndDate != null ">#{loanEndDate},</if>
  98. <if test="claimPrinciOwed != null ">#{claimPrinciOwed},</if>
  99. <if test="claimInterestOwed != null ">#{claimInterestOwed},</if>
  100. <if test="claimLiquidDamag != null ">#{claimLiquidDamag},</if>
  101. <if test="feePayable != null ">#{feePayable},</if>
  102. <if test="beginVideoDate != null ">#{beginVideoDate},</if>
  103. <if test="onlineVideoPerson != null and onlineVideoPerson != ''">#{onlineVideoPerson},</if>
  104. <if test="contractNumber != null and contractNumber != ''">#{contractNumber},</if>
  105. <if test="createBy != null and createBy != ''">#{createBy},</if>
  106. sysdate()
  107. )
  108. </insert>
  109. <update id="updataCaseApplication" parameterType="CaseApplication">
  110. update case_application
  111. <set>
  112. <if test="caseSubjectAmount != null">case_subject_amount = #{caseSubjectAmount},</if>
  113. <if test="registerDate != null">register_date = #{registerDate},</if>
  114. <if test="arbitratMethod != null and arbitratMethod != ''">arbitrat_method = #{arbitratMethod},</if>
  115. <if test="hearDate != null ">hear_date = #{hearDate},</if>
  116. <if test="arbitratClaims != null and arbitratClaims != ''">arbitrat_claims = #{arbitratClaims},</if>
  117. <if test="loanStartDate != null ">loan_start_date = #{loanStartDate},</if>
  118. <if test="loanEndDate != null ">loan_end_date = #{loanEndDate},</if>
  119. <if test="loanEndDate != null ">claim_princi_owed = #{claimPrinciOwed},</if>
  120. <if test="claimInterestOwed != null ">claim_interest_owed = #{claimInterestOwed},</if>
  121. <if test="claimLiquidDamag != null ">claim_liquid_damag = #{claimLiquidDamag},</if>
  122. <if test="feePayable != null ">fee_payable = #{feePayable},</if>
  123. <if test="beginVideoDate != null ">begin_video_date = #{beginVideoDate},</if>
  124. <if test="onlineVideoPerson != null and onlineVideoPerson != ''">online_video_person = #{onlineVideoPerson},</if>
  125. <if test="contractNumber != null and contractNumber != ''">contract_number = #{contractNumber},</if>
  126. <if test="caseName != null and caseName != ''">case_name = #{caseName},</if>
  127. <if test="caseDescribe != null and caseDescribe != ''">case_describe = #{caseDescribe},</if>
  128. <if test="caseResult != null and caseResult != ''">case_result = #{caseResult},</if>
  129. <if test="caseStatus != null">case_status = #{caseStatus},</if>
  130. <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
  131. update_time = sysdate()
  132. </set>
  133. where id = #{id}
  134. </update>
  135. <update id="submitCaseApplication" parameterType="CaseApplication">
  136. update case_application
  137. <set>
  138. <if test="caseStatus != null">case_status = #{caseStatus},</if>
  139. <if test="arbitratorId != null and arbitratorId != ''">arbitrator_id = #{arbitratorId},</if>
  140. <if test="arbitratorName != null and arbitratorName != ''">arbitrator_name = #{arbitratorName},</if>
  141. <if test="pendingAppointArbotrar != null ">pending_appoint_arbotrar = #{pendingAppointArbotrar},</if>
  142. <if test="arbitratMethod != null ">arbitrat_method = #{arbitratMethod},</if>
  143. <if test="caseName != null and caseName != ''">case_name = #{caseName},</if>
  144. <if test="caseDescribe != null and caseDescribe != ''">case_describe = #{caseDescribe},</if>
  145. <if test="caseResult != null and caseResult != ''">case_result = #{caseResult},</if>
  146. <if test="isAgreePendTral != null">is_agree_pend_tral = #{isAgreePendTral},</if>
  147. <if test="objectionAddEviden != null">objection_add_eviden = #{objectionAddEviden},</if>
  148. <if test="openCourtHear != null">open_court_hear = #{openCourtHear},</if>
  149. <if test="hearDate != null">hear_date = #{hearDate},</if>
  150. </set>
  151. where id = #{id}
  152. </update>
  153. <delete id="deletecaseApplication" parameterType="CaseApplication">
  154. delete from case_application where id = #{id}
  155. </delete>
  156. <select id="selectCaseApplication" parameterType="CaseApplication" resultMap="CaseApplicationResult">
  157. select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,c.case_status ,c.hear_date ,c.arbitrat_claims ,
  158. c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
  159. c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
  160. c.update_by ,c.update_time
  161. from case_application c
  162. <where>
  163. <if test="id != null ">
  164. AND c.id = #{id}
  165. </if>
  166. </where>
  167. </select>
  168. </mapper>