1
This commit is contained in:
@@ -92,8 +92,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<include refid="selectRoleVo"/>
|
||||
where r.role_key=#{roleKey} and r.del_flag = '0' limit 1
|
||||
</select>
|
||||
|
||||
<insert id="insertRole" parameterType="SysRole" useGeneratedKeys="true" keyProperty="roleId">
|
||||
<select id="selectRoleIdByName" resultType="java.lang.Long" >
|
||||
select role_id from sys_role where role_name=#{roleName}
|
||||
</select>
|
||||
|
||||
<insert id="insertRole" parameterType="SysRole" useGeneratedKeys="true" keyProperty="roleId">
|
||||
insert into sys_role(
|
||||
<if test="roleId != null and roleId != 0">role_id,</if>
|
||||
<if test="roleName != null and roleName != ''">role_name,</if>
|
||||
|
||||
@@ -177,7 +177,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
</select>
|
||||
|
||||
<insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
|
||||
<select id="selectUserByIdCard" parameterType="String" resultMap="SysUserResult">
|
||||
select u.* from sys_user u
|
||||
where u.id_card = #{idCard} and u.del_flag = '0' and u.status='0' order by u.create_time limit 1
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
|
||||
insert into sys_user(
|
||||
<if test="userId != null and userId != 0">user_id,</if>
|
||||
<if test="deptId != null and deptId != 0">dept_id,</if>
|
||||
|
||||
@@ -42,28 +42,36 @@
|
||||
</resultMap>
|
||||
|
||||
<select id="selectCaseApplicationList" parameterType="CaseApplication" resultMap="CaseApplicationResult">
|
||||
select t1.* from(
|
||||
select t.* from(
|
||||
select t1.* from(
|
||||
select DISTINCT(t.id),t.case_num ,t.case_subject_amount ,t.register_date ,t.arbitrat_method,
|
||||
t.arbitratMethodName,t.case_status,t.caseStatusName,t.hear_date ,t.arbitrat_claims ,
|
||||
t.loan_start_date ,t.loan_end_date ,t.claim_princi_owed ,t.claim_interest_owed ,t.claim_liquid_damag,t.fee_payable ,
|
||||
t.begin_video_date ,t.online_video_person ,t.contract_number ,t.create_by ,t.create_time ,
|
||||
t.update_by ,t.update_time , t.arbitrator_name,t.name,t.application_organ_id,t.applicantName,
|
||||
t.arbitrator_id,t.identity_num , t.identity_type,t.filearbitra_url
|
||||
from(
|
||||
select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,
|
||||
CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
|
||||
ELSE '无审理方式'
|
||||
END arbitratMethodName,
|
||||
ELSE '无审理方式'
|
||||
END arbitratMethodName,
|
||||
c.case_status ,
|
||||
CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
|
||||
when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
|
||||
when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
|
||||
when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
|
||||
when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
|
||||
when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
|
||||
ELSE '无案件状态'
|
||||
END caseStatusName,
|
||||
when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
|
||||
when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
|
||||
when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
|
||||
when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
|
||||
when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
|
||||
ELSE '无案件状态'
|
||||
END caseStatusName,
|
||||
c.hear_date ,c.arbitrat_claims ,
|
||||
c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
|
||||
c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag
|
||||
,c.fee_payable ,
|
||||
c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
|
||||
c.update_by ,c.update_time , c.arbitrator_name,ca.name,ca.application_organ_id,ca.application_organ_name as applicantName,
|
||||
c.update_by ,c.update_time , c.arbitrator_name,ca.name,ca.application_organ_id,ca.application_organ_name as
|
||||
applicantName,
|
||||
c.arbitrator_id,ca.identity_num , ca.identity_type,c.filearbitra_url
|
||||
from case_application c
|
||||
LEFT JOIN case_affiliate ca ON ca.case_appli_id = c.id and ca.identity_type=1
|
||||
LEFT JOIN case_affiliate ca ON ca.case_appli_id = c.id
|
||||
<where>
|
||||
<if test="caseStatus != null">
|
||||
AND c.case_status = #{caseStatus}
|
||||
@@ -81,35 +89,149 @@ select t1.* from(
|
||||
) t
|
||||
<where>
|
||||
|
||||
<!--被申请人-->
|
||||
<if test="idCard != null and idCard != ''">
|
||||
or (t.identity_num=#{idCard} AND t.identity_type=2)
|
||||
</if>
|
||||
<!--仲裁员-->
|
||||
<if test="userId != null and userId != ''">
|
||||
or instr (t.arbitrator_id,#{userId})>0
|
||||
</if>
|
||||
<!--法律顾问-->
|
||||
<if test="deptIds != null and deptIds.size() > 0">
|
||||
or t.name
|
||||
in
|
||||
<foreach item="item" collection="deptIds" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<!--被申请人-->
|
||||
<if test="idCard != null and idCard != ''">
|
||||
or (t.identity_num=#{idCard} AND t.identity_type=2 and t.case_status=4)
|
||||
</if>
|
||||
<!--仲裁员-->
|
||||
<if test="userId != null and userId != ''">
|
||||
or ( t.identity_type=1 and
|
||||
t.case_status in (7,8,9,12,13,14)
|
||||
and
|
||||
instr (t.arbitrator_id,#{userId})>0)
|
||||
</if>
|
||||
<!--法律顾问-->
|
||||
<if test="deptIds != null and deptIds.size() > 0">
|
||||
or (t.identity_type=1 and t.case_status in (1,5,11,15,16)
|
||||
and t.application_organ_id in
|
||||
<foreach item="item" collection="deptIds" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach> )
|
||||
</if>
|
||||
|
||||
<!--申请人-->
|
||||
<if test="nameId != null and nameId != ''">
|
||||
or ( t.application_organ_id = #{nameId} AND t.identity_type=1
|
||||
and t.case_status in (0,2))
|
||||
|
||||
</if>
|
||||
<!--部门长-->
|
||||
<if test="deptHeadStatus != null and deptHeadStatus.size() > 0">
|
||||
or (t.identity_type=1 and t.case_status in
|
||||
<foreach item="caseStatus" collection="deptHeadStatus" open="(" separator="," close=")">#{caseStatus}
|
||||
</foreach>)
|
||||
</if>
|
||||
<!--财务-->
|
||||
<if test="financeStatus != null and financeStatus != ''">
|
||||
or(t.identity_type=1 and t.case_status =#{financeStatus})
|
||||
|
||||
</where>
|
||||
) t1
|
||||
<where>
|
||||
<!--申请人-->
|
||||
<if test="nameId != null and nameId != ''">
|
||||
and ( t1.application_organ_id = #{nameId} AND t1.identity_type=1 )
|
||||
</if>
|
||||
</where>
|
||||
) t1
|
||||
<!-- <where>-->
|
||||
<!-- <!–申请人–>-->
|
||||
<!-- <if test="nameId != null and nameId != ''">-->
|
||||
<!-- and ( t1.application_organ_id = #{nameId} AND t1.identity_type=1-->
|
||||
<!-- and t1.case_status in (0,2)-->
|
||||
<!-- )-->
|
||||
<!-- </if>-->
|
||||
<!-- </where>-->
|
||||
order by t1.create_time desc,t1.case_num desc
|
||||
</select>
|
||||
<select id="selectTodoCountByRole" resultType="com.ruoyi.wisdomarbitrate.domain.vo.ToDoCount">
|
||||
select sum( case when t1.case_status=0 then 1 else 0 end) caseApply,
|
||||
sum( case when t1.case_status=1 then 1 else 0 end) caseApplyCheck,
|
||||
sum( case when t1.case_status=2 then 1 else 0 end) caseApplyPay,
|
||||
sum( case when t1.case_status=3 then 1 else 0 end) caseApplyPayCheck,
|
||||
sum( case when t1.case_status=4 then 1 else 0 end) caseApplyEvidence,
|
||||
sum( case when t1.case_status=5 then 1 else 0 end) caseApplyGroupCheck,
|
||||
sum( case when t1.case_status=6 then 1 else 0 end) caseApplyGroupConfirm,
|
||||
sum( case when t1.case_status=7 then 1 else 0 end) caseApplyArbitrateWay,
|
||||
sum( case when t1.case_status=8 then 1 else 0 end) caseApplyGroupOnline,
|
||||
sum( case when t1.case_status=9 then 1 else 0 end) caseApplyGroupOffline,
|
||||
sum( case when t1.case_status=10 then 1 else 0 end) caseApplyAward,
|
||||
sum( case when t1.case_status=11 then 1 else 0 end) caseApplyAwardCheck,
|
||||
sum( case when t1.case_status=12 then 1 else 0 end) caseApplyAwardConfirm,
|
||||
sum( case when t1.case_status=13 then 1 else 0 end) caseApplyAwardSign,
|
||||
sum( case when t1.case_status=14 then 1 else 0 end) caseApplyAwardSeal,
|
||||
sum( case when t1.case_status=15 then 1 else 0 end) caseApplyAwardSend,
|
||||
sum( case when t1.case_status=16 then 1 else 0 end) caseApplyStored,
|
||||
sum( case when t1.case_status=17 then 1 else 0 end) caseApplyArchived
|
||||
from(
|
||||
select DISTINCT(t.id),t.case_status,t.application_organ_id, t.arbitrator_id,t.identity_num , t.identity_type from(
|
||||
select c.id ,
|
||||
c.case_status,ca.application_organ_id,
|
||||
c.arbitrator_id,ca.identity_num , ca.identity_type
|
||||
from case_application c
|
||||
LEFT JOIN case_affiliate ca ON ca.case_appli_id = c.id
|
||||
<where>
|
||||
<if test="caseStatus != null">
|
||||
AND c.case_status = #{caseStatus}
|
||||
</if>
|
||||
<if test="caseNum != null and caseNum != ''">
|
||||
AND c.case_num = #{caseNum}
|
||||
</if>
|
||||
<if test="caseStatusList != null and caseStatusList.size() > 0">
|
||||
and c.case_status in
|
||||
<foreach item="caseStatus" collection="caseStatusList" open="(" separator="," close=")">
|
||||
#{caseStatus}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
) t
|
||||
<where>
|
||||
|
||||
<!--被申请人-->
|
||||
<if test="idCard != null and idCard != ''">
|
||||
or (t.identity_num=#{idCard} AND t.identity_type=2 and t.case_status=4)
|
||||
</if>
|
||||
<!--仲裁员-->
|
||||
<if test="userId != null and userId != ''">
|
||||
or ( t.identity_type=1 and
|
||||
t.case_status in (7,8,9,12,13,14)
|
||||
and
|
||||
instr (t.arbitrator_id,#{userId})>0)
|
||||
</if>
|
||||
<!--法律顾问-->
|
||||
<if test="deptIds != null and deptIds.size() > 0">
|
||||
or (t.identity_type=1 and t.case_status in (1,5,11,15,16)
|
||||
and t.application_organ_id in
|
||||
<foreach item="item" collection="deptIds" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach> )
|
||||
</if>
|
||||
<!--申请人-->
|
||||
<if test="nameId != null and nameId != ''">
|
||||
or ( t.application_organ_id = #{nameId} AND t.identity_type=1
|
||||
and t.case_status in (0,2))
|
||||
|
||||
</if>
|
||||
<!--部门长-->
|
||||
<if test="deptHeadStatus != null and deptHeadStatus.size() > 0">
|
||||
or (t.identity_type=1 and t.case_status in
|
||||
<foreach item="caseStatus" collection="deptHeadStatus" open="(" separator="," close=")">
|
||||
#{caseStatus}
|
||||
</foreach>)
|
||||
</if>
|
||||
<!--财务-->
|
||||
<if test="financeStatus != null and financeStatus != ''">
|
||||
or( t.identity_type=1 and t.case_status =#{financeStatus})
|
||||
|
||||
</if>
|
||||
</where>
|
||||
) t1
|
||||
<!-- <where>
|
||||
<!–申请人–>-->
|
||||
<!-- <if test="nameId != null and nameId != ''">-->
|
||||
<!-- and ( t1.application_organ_id = #{nameId} AND t1.identity_type=1-->
|
||||
<!-- and t1.case_status in (0,2)-->
|
||||
<!-- )-->
|
||||
<!-- </if>
|
||||
</where> -->
|
||||
</select>
|
||||
|
||||
<select id="selectAdminCaseApplicationList" parameterType="CaseApplication" resultMap="CaseApplicationResult">
|
||||
select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,
|
||||
select DISTINCT(c.id) id,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,
|
||||
CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
|
||||
ELSE '无审理方式'
|
||||
END arbitratMethodName,
|
||||
@@ -147,6 +269,154 @@ select t1.* from(
|
||||
</where>
|
||||
order by c.create_time desc,c.case_num desc
|
||||
</select>
|
||||
<select id="selectAdminCaseToDoCount" resultType="com.ruoyi.wisdomarbitrate.domain.vo.ToDoCount">
|
||||
SELECT
|
||||
sum( case when c.case_status=0 then 1 else 0 end) caseApply,
|
||||
sum( case when c.case_status=1 then 1 else 0 end) caseApplyCheck,
|
||||
sum( case when c.case_status=2 then 1 else 0 end) caseApplyPay,
|
||||
sum( case when c.case_status=3 then 1 else 0 end) caseApplyPayCheck,
|
||||
sum( case when c.case_status=4 then 1 else 0 end) caseApplyEvidence,
|
||||
sum( case when c.case_status=5 then 1 else 0 end) caseApplyGroupCheck,
|
||||
sum( case when c.case_status=6 then 1 else 0 end) caseApplyGroupConfirm,
|
||||
sum( case when c.case_status=7 then 1 else 0 end) caseApplyArbitrateWay,
|
||||
sum( case when c.case_status=8 then 1 else 0 end) caseApplyGroupOnline,
|
||||
sum( case when c.case_status=9 then 1 else 0 end) caseApplyGroupOffline,
|
||||
sum( case when c.case_status=10 then 1 else 0 end) caseApplyAward,
|
||||
sum( case when c.case_status=11 then 1 else 0 end) caseApplyAwardCheck,
|
||||
sum( case when c.case_status=12 then 1 else 0 end) caseApplyAwardConfirm,
|
||||
sum( case when c.case_status=13 then 1 else 0 end) caseApplyAwardSign,
|
||||
sum( case when c.case_status=14 then 1 else 0 end) caseApplyAwardSeal,
|
||||
sum( case when c.case_status=15 then 1 else 0 end) caseApplyAwardSend,
|
||||
sum( case when c.case_status=16 then 1 else 0 end) caseApplyStored,
|
||||
sum( case when c.case_status=17 then 1 else 0 end) caseApplyArchived
|
||||
FROM
|
||||
case_application c
|
||||
JOIN case_affiliate ca ON ca.case_appli_id = c.id
|
||||
AND ca.identity_type = 1
|
||||
WHERE
|
||||
c.case_status IN (
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
6,
|
||||
7,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
14,
|
||||
15,
|
||||
16,
|
||||
17
|
||||
)
|
||||
|
||||
</select>
|
||||
<select id="selectDeptHeadCaseApplicationList" parameterType="CaseApplication" resultMap="CaseApplicationResult">
|
||||
select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,
|
||||
CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
|
||||
ELSE '无审理方式'
|
||||
END arbitratMethodName,
|
||||
c.case_status ,
|
||||
CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
|
||||
when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
|
||||
when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
|
||||
when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
|
||||
when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
|
||||
when 15 then '待仲裁文书送达' when 16 then '待案件归档' when 17 then '已归档'
|
||||
ELSE '无案件状态'
|
||||
END caseStatusName,
|
||||
c.hear_date ,c.arbitrat_claims ,
|
||||
c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
|
||||
c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
|
||||
c.update_by ,c.update_time , c.arbitrator_name,ca.application_organ_id applicationOrganId ,ca.application_organ_name as applicantName,c.filearbitra_url
|
||||
from case_application c
|
||||
LEFT JOIN case_affiliate ca ON ca.case_appli_id = c.id AND ca.identity_type=1
|
||||
<where>
|
||||
c.case_status in
|
||||
<foreach item="caseStatus" collection="statusList" open="(" separator="," close=")">
|
||||
#{caseStatus}
|
||||
</foreach>
|
||||
<if test="caseApplication.caseStatus != null">
|
||||
AND c.case_status = #{caseApplication.caseStatus}
|
||||
</if>
|
||||
<if test="caseApplication.caseNum != null and caseApplication.caseNum != ''">
|
||||
AND c.case_num = #{caseApplication.caseNum}
|
||||
</if>
|
||||
<if test="caseApplication.nameId != null and caseApplication.nameId != ''">
|
||||
AND ca.application_organ_id=#{caseApplication.nameId} AND ca.identity_type=1
|
||||
</if>
|
||||
<if test="caseApplication.caseStatusList != null and caseApplication.caseStatusList.size() > 0">
|
||||
and c.case_status in
|
||||
<foreach item="caseStatus" collection="caseApplication.caseStatusList" open="(" separator="," close=")">
|
||||
#{caseStatus}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
order by c.create_time desc,c.case_num desc
|
||||
</select>
|
||||
<select id="selectDeptHeadCaseToDoCount" resultType="com.ruoyi.wisdomarbitrate.domain.vo.ToDoCount">
|
||||
select sum( case when c.case_status=0 then 1 else 0 end) caseApply,
|
||||
sum( case when c.case_status=1 then 1 else 0 end) caseApplyCheck,
|
||||
sum( case when c.case_status=2 then 1 else 0 end) caseApplyPay,
|
||||
sum( case when c.case_status=3 then 1 else 0 end) caseApplyPayCheck,
|
||||
sum( case when c.case_status=4 then 1 else 0 end) caseApplyEvidence,
|
||||
sum( case when c.case_status=5 then 1 else 0 end) caseApplyGroupCheck,
|
||||
sum( case when c.case_status=6 then 1 else 0 end) caseApplyGroupConfirm,
|
||||
sum( case when c.case_status=7 then 1 else 0 end) caseApplyArbitrateWay,
|
||||
sum( case when c.case_status=8 then 1 else 0 end) caseApplyGroupOnline,
|
||||
sum( case when c.case_status=9 then 1 else 0 end) caseApplyGroupOffline,
|
||||
sum( case when c.case_status=10 then 1 else 0 end) caseApplyAward,
|
||||
sum( case when c.case_status=11 then 1 else 0 end) caseApplyAwardCheck,
|
||||
sum( case when c.case_status=12 then 1 else 0 end) caseApplyAwardConfirm,
|
||||
sum( case when c.case_status=13 then 1 else 0 end) caseApplyAwardSign,
|
||||
sum( case when c.case_status=14 then 1 else 0 end) caseApplyAwardSeal,
|
||||
sum( case when c.case_status=15 then 1 else 0 end) caseApplyAwardSend,
|
||||
sum( case when c.case_status=16 then 1 else 0 end) caseApplyStored,
|
||||
sum( case when c.case_status=17 then 1 else 0 end) caseApplyArchived
|
||||
from case_application c
|
||||
LEFT JOIN case_affiliate ca ON ca.case_appli_id = c.id AND ca.identity_type=1
|
||||
<where>
|
||||
<!--部门长-->
|
||||
<if test="statusList != null and statusList.size() > 0">
|
||||
or c.case_status in
|
||||
<foreach item="caseStatus" collection="statusList" open="(" separator="," close=")">
|
||||
#{caseStatus}
|
||||
</foreach>
|
||||
<!--被申请人-->
|
||||
<if test="idCard != null and idCard != ''">
|
||||
or (t.identity_num=#{idCard} AND t.identity_type=2 and t.case_status=4)
|
||||
</if>
|
||||
<!--仲裁员-->
|
||||
<if test="userId != null and userId != ''">
|
||||
or ( t.identity_type=1 and
|
||||
t.case_status in (7,8,9,12,13,14)
|
||||
and
|
||||
instr (t.arbitrator_id,#{userId})>0)
|
||||
</if>
|
||||
<!--法律顾问-->
|
||||
<if test="deptIds != null and deptIds.size() > 0">
|
||||
or (t.identity_type=1 and t.case_status in (1,5,11,15,16)
|
||||
and t.application_organ_id in
|
||||
<foreach item="item" collection="deptIds" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach> )
|
||||
</if>
|
||||
<!--申请人-->
|
||||
<if test="nameId != null and nameId != ''">
|
||||
or( ( t.application_organ_id = #{nameId} AND t.identity_type=1
|
||||
and t.case_status in (0,2))
|
||||
)
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectCaseApplicationCount" parameterType="CaseApplication" resultType="int">
|
||||
select count(1) from case_application c
|
||||
@@ -333,7 +603,7 @@ select t1.* from(
|
||||
END paymentStatusName,c.pay_type,
|
||||
CASE c.pay_type when 0 then '线上支付' when 0 then '线下支付' else '' end payTypeName
|
||||
from case_application c left join case_payment_record p on c.id = p.case_id
|
||||
where c.case_status = 3 and p.payment_status = 1
|
||||
where c.case_status = 3
|
||||
AND c.id = #{id}
|
||||
|
||||
</select>
|
||||
|
||||
+14
@@ -11,12 +11,14 @@
|
||||
<result property="certificationStatus" column="certification_status" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="userName" column="user_name" />
|
||||
<result property="idAddress" column="id_address" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
<insert id="insertIdentityAuthentication" parameterType="IdentityAuthentication" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into identi_authenti(
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="idAddress != null and idAddress != ''">id_address,</if>
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="identityNo != null and identityNo != ''">identity_no,</if>
|
||||
certification_time,
|
||||
@@ -26,6 +28,7 @@
|
||||
create_time
|
||||
)values(
|
||||
<if test="userId != null ">#{userId},</if>
|
||||
<if test="idAddress != null and idAddress != ''">#{idAddress},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="identityNo != null and identityNo != ''">#{identityNo},</if>
|
||||
sysdate(),
|
||||
@@ -35,6 +38,17 @@
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
<update id="updateIdentityAuthentication">
|
||||
update identi_authenti
|
||||
<set>
|
||||
<if test="userId != null ">user_id = #{userId},</if>
|
||||
<if test="userName != null and userName != ''">user_name = #{userName},</if>
|
||||
<if test="identityNo != null and identityNo != ''">identity_no = #{identityNo},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
update_time = sysdate()
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<select id="selectIdentityAuthentication" parameterType="IdentityAuthentication" resultMap="IdentityAuthenticationResult">
|
||||
SELECT i.id ,i.name ,i.identity_no ,i.certification_time ,i.certification_status ,i.user_id ,i.user_name
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.WeChatUserMapper">
|
||||
<resultMap type="com.ruoyi.wisdomarbitrate.domain.vo.WeChatUserVO" id="BaseResult">
|
||||
<id property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="identityNo" column="identity_no" />
|
||||
<result property="certificationTime" column="certification_time" />
|
||||
<result property="certificationStatus" column="certification_status" />
|
||||
<result property="openId" column="open_id" />
|
||||
<result property="phone" column="phone" />
|
||||
<result property="email" column="email" />
|
||||
|
||||
</resultMap>
|
||||
<insert id="insertUser">
|
||||
insert into identi_authenti(
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="identityNo != null and identityNo != ''">identity_no,</if>
|
||||
certification_time,
|
||||
<if test="certificationStatus != null ">certification_status,</if>
|
||||
<if test="openId != null ">open_id,</if>
|
||||
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||
<if test="phone != null and phone != ''">phone,</if>
|
||||
<if test="email != null and email != ''">email,</if>
|
||||
create_time
|
||||
|
||||
)values(
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="identityNo != null and identityNo != ''">#{identityNo},</if>
|
||||
sysdate(),
|
||||
<if test="certificationStatus != null ">#{certificationStatus},</if>
|
||||
<if test="openId != null ">#{openId},</if>
|
||||
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||
<if test="phone != null and phone != ''">#{phone},</if>
|
||||
<if test="email != null and email != ''">#{email},</if>
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
<update id="updateUser">
|
||||
update identi_authenti
|
||||
<set>
|
||||
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
||||
<if test="email != null and email != ''">email = #{email},</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||
update_time = sysdate()
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
<select id="selectIdentityAuthentication" resultMap="BaseResult">
|
||||
SELECT i.id ,i.name ,i.identity_no ,i.certification_time ,i.certification_status ,i.user_id ,i.user_name,open_id,phone,email
|
||||
from identi_authenti i
|
||||
</select>
|
||||
<select id="selectUserByOppenId" resultMap="BaseResult">
|
||||
SELECT i.id ,i.name ,i.identity_no ,i.certification_time ,i.certification_status ,i.user_id ,i.user_name,open_id,phone,email
|
||||
from identi_authenti i where open_id=#{oppenId}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user