工具类,案件压缩包导入优化
This commit is contained in:
@@ -121,8 +121,41 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
sysdate()
|
||||
);
|
||||
</insert>
|
||||
|
||||
<update id="updateDept" parameterType="SysDept">
|
||||
<insert id="batchSave">
|
||||
insert into sys_dept(
|
||||
dept_id,
|
||||
parent_id,
|
||||
dept_name,
|
||||
dept_type,
|
||||
ancestors,
|
||||
order_num,
|
||||
leader,
|
||||
phone,
|
||||
email,
|
||||
status,
|
||||
create_by,
|
||||
create_time
|
||||
)values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
(
|
||||
#{item.deptId},
|
||||
#{item.parentId},
|
||||
#{item.deptName},
|
||||
#{item.deptType},
|
||||
#{item.ancestors},
|
||||
#{item.orderNum},
|
||||
#{item.leader},
|
||||
#{item.phone},
|
||||
#{item.email},
|
||||
#{item.status},
|
||||
#{item.createBy},
|
||||
sysdate()
|
||||
)
|
||||
</foreach>;
|
||||
|
||||
</insert>
|
||||
|
||||
<update id="updateDept" parameterType="SysDept">
|
||||
update sys_dept
|
||||
<set>
|
||||
<if test="parentId != null and parentId != 0">parent_id = #{parentId},</if>
|
||||
|
||||
@@ -59,8 +59,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</sql>
|
||||
|
||||
<select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult">
|
||||
select u.user_id, u.dept_id, u.nick_name, u.user_name,u.id_card, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u
|
||||
select u.user_id, u.dept_id, u.nick_name, u.user_name,u.id_card, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name,
|
||||
d.leader , r.role_id, r.role_name, d.dept_id
|
||||
from sys_user u
|
||||
left join sys_dept d on u.dept_id = d.dept_id
|
||||
left join sys_user_role ur on u.user_id = ur.user_id
|
||||
left join sys_role r on r.role_id = ur.role_id
|
||||
where u.del_flag = '0'
|
||||
<if test="userId != null and userId != 0">
|
||||
AND u.user_id = #{userId}
|
||||
@@ -244,8 +248,44 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="updateUser" parameterType="SysUser">
|
||||
<insert id="batchSave">
|
||||
insert into sys_user(
|
||||
user_id,
|
||||
dept_id,
|
||||
user_name,
|
||||
nick_name,
|
||||
id_card,
|
||||
email,
|
||||
avatar,
|
||||
phonenumber,
|
||||
sex,
|
||||
password,
|
||||
status,
|
||||
create_by,
|
||||
remark,
|
||||
create_time
|
||||
)values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
(
|
||||
#{item.userId},
|
||||
#{item.deptId},
|
||||
#{item.userName},
|
||||
#{item.nickName},
|
||||
#{item.idCard},
|
||||
#{item.email},
|
||||
#{item.avatar},
|
||||
#{item.phonenumber},
|
||||
#{item.sex},
|
||||
#{item.password},
|
||||
#{item.status},
|
||||
#{item.createBy},
|
||||
#{item.remark},
|
||||
sysdate()
|
||||
)
|
||||
</foreach>;
|
||||
</insert>
|
||||
|
||||
<update id="updateUser" parameterType="SysUser">
|
||||
update sys_user
|
||||
<set>
|
||||
<if test="deptId != null and deptId != 0">dept_id = #{deptId},</if>
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
#{item.applicantAgentUserId},
|
||||
#{item.agentEmail}
|
||||
)
|
||||
</foreach>
|
||||
</foreach>;
|
||||
</insert>
|
||||
|
||||
|
||||
|
||||
@@ -119,6 +119,68 @@
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
<insert id="batchSave">
|
||||
insert into case_application_log(
|
||||
id,
|
||||
case_appli_id ,
|
||||
case_name ,
|
||||
case_num,
|
||||
case_subject_amount,
|
||||
arbitrat_claims,
|
||||
request_rule,
|
||||
loan_start_date,
|
||||
loan_end_date,
|
||||
claim_princi_owed,
|
||||
claim_interest_owed,
|
||||
claim_liquid_damag,
|
||||
fee_payable,
|
||||
contract_number,
|
||||
create_by,
|
||||
version,
|
||||
update_submit_status,
|
||||
proper_preser,
|
||||
interest_rate,
|
||||
outstanding_money,
|
||||
facts,
|
||||
party_a,
|
||||
disputes,
|
||||
loan_type,
|
||||
loan_term,
|
||||
mediation_agreement,
|
||||
create_time
|
||||
)values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
(
|
||||
id=#{item.id},
|
||||
#{item.caseAppliId},
|
||||
#{item.caseName},
|
||||
#{item.caseNum},
|
||||
#{item.caseSubjectAmount},
|
||||
#{item.arbitratClaims},
|
||||
#{item.requestRule},
|
||||
#{item.loanStartDate},
|
||||
#{item.loanEndDate},
|
||||
#{item.claimPrinciOwed},
|
||||
#{item.claimInterestOwed},
|
||||
#{item.claimLiquidDamag},
|
||||
#{item.feePayable},
|
||||
#{item.contractNumber},
|
||||
#{item.createBy},
|
||||
#{item.version},
|
||||
#{item.updateSubmitStatus},
|
||||
#{item.properPreser},
|
||||
#{item.interestRate},
|
||||
#{item.outstandingMoney},
|
||||
#{item.facts},
|
||||
#{item.partyA},
|
||||
#{item.disputes},
|
||||
#{item.loanType},
|
||||
#{item.loanTerm},
|
||||
#{item.mediationAgreement},
|
||||
sysdate()
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
<update id="updateStatus">
|
||||
update case_application_log
|
||||
|
||||
|
||||
@@ -969,6 +969,81 @@
|
||||
sysdate()
|
||||
)
|
||||
</insert>
|
||||
<insert id="batchSave">
|
||||
insert into case_application(
|
||||
id,
|
||||
case_name ,
|
||||
case_num,
|
||||
case_subject_amount,
|
||||
register_date,
|
||||
arbitrat_method,
|
||||
case_status,
|
||||
hear_date,
|
||||
arbitrat_claims,
|
||||
request_rule,
|
||||
loan_start_date,
|
||||
loan_end_date,
|
||||
claim_princi_owed,
|
||||
|
||||
claim_interest_owed,
|
||||
claim_liquid_damag,
|
||||
fee_payable,
|
||||
begin_video_date,
|
||||
online_video_person,
|
||||
|
||||
contract_number,
|
||||
|
||||
adjudica_counter,
|
||||
proper_preser,
|
||||
|
||||
create_by,
|
||||
import_flag,
|
||||
version,
|
||||
template_id,
|
||||
facts,
|
||||
mediation_agreement,
|
||||
batch_number,
|
||||
create_time
|
||||
)values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
(
|
||||
#{item.id},
|
||||
#{item.caseName},
|
||||
#{item.caseNum},
|
||||
#{item.caseSubjectAmount},
|
||||
sysdate(),
|
||||
#{item.arbitratMethod},
|
||||
#{item.caseStatus},
|
||||
#{item.hearDate},
|
||||
#{item.arbitratClaims},
|
||||
#{item.requestRule},
|
||||
#{item.loanStartDate},
|
||||
#{item.loanEndDate},
|
||||
#{item.claimPrinciOwed},
|
||||
|
||||
#{item.claimInterestOwed},
|
||||
#{item.claimLiquidDamag},
|
||||
#{item.feePayable},
|
||||
#{item.beginVideoDate},
|
||||
#{item.onlineVideoPerson},
|
||||
|
||||
#{item.contractNumber},
|
||||
|
||||
#{item.adjudicaCounter},
|
||||
#{item.properPreser},
|
||||
|
||||
#{item.createBy},
|
||||
#{item.importFlag},
|
||||
#{item.version},
|
||||
#{item.templateId},
|
||||
|
||||
#{item.facts},
|
||||
#{item.mediationAgreement},
|
||||
#{item.batchNumber},
|
||||
sysdate()
|
||||
)
|
||||
</foreach>;
|
||||
</insert>
|
||||
|
||||
<update id="updataCaseApplication" parameterType="CaseApplication">
|
||||
update case_application
|
||||
@@ -1164,7 +1239,7 @@
|
||||
|
||||
</select>
|
||||
<select id="selectCaseNumLike" resultType="java.lang.Integer">
|
||||
select max(substring(case_num, #{length}+1,12)+1) as maxCaseNum
|
||||
select max(substring(case_num, #{length}+1,12)) as maxCaseNum
|
||||
from case_application where case_num like CONCAT(#{caseNum},'%') ;
|
||||
</select>
|
||||
<select id="selectArbitratorList" resultType="java.lang.String">
|
||||
|
||||
@@ -19,6 +19,13 @@
|
||||
INSERT INTO case_attach_log (case_appli_log_id, annex_id,annex_name, annex_path , annex_type,note,use_id,use_account,seal_status)
|
||||
VALUES (#{caseAppliLogId},#{annexId}, #{annexName}, #{annexPath},#{annexType},#{note},#{userId},#{userName},#{sealStatus})
|
||||
</insert>
|
||||
<insert id="batchSave">
|
||||
INSERT INTO case_attach_log (case_appli_log_id, annex_id,annex_name, annex_path , annex_type,note,use_id,use_account,seal_status)
|
||||
VALUES
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
(#{item.caseAppliLogId},#{item.annexId}, #{item.annexName}, #{item.annexPath},#{item.annexType},#{item.note},#{item.userId},#{item.userName},#{item.sealStatus})
|
||||
</foreach>
|
||||
</insert>
|
||||
<delete id="deleteByFileIds">
|
||||
delete from case_attach_log
|
||||
where annex_id in
|
||||
|
||||
Reference in New Issue
Block a user