Merge branch 'wq' of SH-Arbitrate/Arbitrate-Backend into dev
This commit was merged in pull request #250.
This commit is contained in:
@@ -131,15 +131,15 @@ public class PdfUtils {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
public static void main(String [] args) {
|
||||
try {
|
||||
|
||||
String pdfFile = "D:\\test2.pdf";
|
||||
String pdfFile = "D:\\test13.pdf";
|
||||
String htmlContent1 = "<h1>夫士大夫士大夫发</h1><p>会见韩国机构行家</p ><h2>地方鬼地方鬼地方三个广泛的</h2>";
|
||||
String htmlContent = "<html><body style=\"font-size:12.0pt; font-family:宋体\">" + "<h1>夫士大夫士大夫发</h1><p>会见韩国机构行家</p ><h2>地方鬼地方鬼地方三个广泛的</h2></body></html>";
|
||||
String htmlContent2 = "<html><body >" + "<h1>夫士大夫士大夫发</h1><p>会见韩国机构行家</p ><h2>地方鬼地方鬼地方三个广泛的</h2></body></html>";
|
||||
String htmlContent2 = "<html><body style=\\\"font-size:12.0pt; font-family:宋体\\\"><h1>夫士大夫士大夫发</h1><p>会见韩国机构行家</p ><h2>地方鬼地方鬼地方三个广泛的</h2></body></html>";
|
||||
|
||||
htmlStringConvertToPDF(pdfFile,htmlContent);
|
||||
htmlStringConvertToPDF(pdfFile,htmlContent2);
|
||||
// parseHtml2PdfByFilePath(pdfFile,htmlFile);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
||||
+2
@@ -184,6 +184,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|| "部门长".equals(role.getRoleName())) {
|
||||
List<Integer> caseStatusList = new ArrayList<>();
|
||||
caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
|
||||
caseStatusList.add(CaseApplicationConstants.CHECK_ARBITRATION);
|
||||
// caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
|
||||
caseApplication.setDeptHeadStatus(caseStatusList);
|
||||
caseApplication.setIsOtherRole(1);
|
||||
@@ -260,6 +261,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|| "部门长".equals(role.getRoleName())) {
|
||||
caseApplication.setIsOtherRole(1);
|
||||
caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
|
||||
caseStatusList.add(CaseApplicationConstants.CHECK_ARBITRATION);
|
||||
// caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
|
||||
caseApplication.setDeptHeadStatus(caseStatusList);
|
||||
}
|
||||
|
||||
+2
-2
@@ -329,9 +329,9 @@ public class VideoServiceImpl implements VideoService {
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
String htmlContent = "<html><body style=\"font-size:12.0pt; font-family:宋体\">" +reservedConferenceVO.getHtmlContent()+"</body></html>";
|
||||
// html转pdf并上传到服务器
|
||||
boolean convertFlag = PdfUtils.htmlStringConvertToPDF(RuoYiConfig.getHtml2PDFPath() + currentFileName, reservedConferenceVO.getHtmlContent());
|
||||
boolean convertFlag = PdfUtils.htmlStringConvertToPDF(RuoYiConfig.getHtml2PDFPath() + currentFileName, htmlContent);
|
||||
|
||||
// 绑定案件
|
||||
if(convertFlag){
|
||||
|
||||
@@ -67,7 +67,8 @@
|
||||
,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,t.lock_status,t.version,t.updateSubmitStatus
|
||||
t.arbitrator_id,t.identity_num ,
|
||||
t.identity_type,t.filearbitra_url,t.lock_status,t.version,t.updateSubmitStatus
|
||||
from(
|
||||
select c.id ,'' AS caseLogId,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,
|
||||
CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
|
||||
@@ -85,9 +86,12 @@
|
||||
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.name,ca.application_organ_id,ca.application_organ_name as applicantName,
|
||||
c.arbitrator_id,ca.identity_num ,ca.identity_type,c.filearbitra_url,c.lock_status,c.version,null as updateSubmitStatus
|
||||
,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.arbitrator_id,ca.identity_num ,ca.identity_type,c.filearbitra_url,c.lock_status,c.version,null as
|
||||
updateSubmitStatus
|
||||
from case_application c
|
||||
JOIN case_affiliate ca ON ca.case_appli_id = c.id
|
||||
<!--查询条件-->
|
||||
@@ -121,7 +125,7 @@
|
||||
<!--仲裁员-->
|
||||
<if test="userId != null and userId != ''">
|
||||
or ( t.identity_type=1 and
|
||||
t.case_status in (7,8,9,12,13,17)
|
||||
t.case_status in (7,8,9,11,13,17)
|
||||
and
|
||||
instr (t.arbitrator_id,#{userId})>0)
|
||||
</if>
|
||||
@@ -183,7 +187,10 @@
|
||||
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,c.lock_status,(select version from case_application_log where case_appli_id=c.id order by version desc limit 1) as version,(select update_submit_status from case_application_log where case_appli_id=c.id order by version desc limit 1) as updateSubmitStatus
|
||||
c.arbitrator_id,ca.identity_num , ca.identity_type,c.filearbitra_url,c.lock_status,(select version from
|
||||
case_application_log where case_appli_id=c.id order by version desc limit 1) as version,(select
|
||||
update_submit_status from case_application_log where case_appli_id=c.id order by version desc limit 1)
|
||||
as updateSubmitStatus
|
||||
from case_application c
|
||||
JOIN case_application_log l ON c.id = l.case_appli_id and c.version=l.version
|
||||
JOIN case_affiliate_log ca ON ca.case_appli_log_id = l.id AND ca.identity_type = 1
|
||||
@@ -214,6 +221,7 @@
|
||||
<if test="deptIds != null and deptIds.size() > 0">
|
||||
|
||||
<!--秘书主表案件-->
|
||||
select tt.* from(
|
||||
SELECT
|
||||
c.id,
|
||||
'' AS caseLogId,
|
||||
@@ -296,40 +304,48 @@
|
||||
FROM
|
||||
case_application c
|
||||
JOIN case_affiliate ca ON ca.case_appli_id = c.id AND ca.identity_type = 1
|
||||
JOIN case_application_log l on l.case_appli_id=c.id and l.update_submit_status not in(1, 2) and l.version
|
||||
JOIN case_application_log l on l.case_appli_id=c.id and l.update_submit_status not in(1, 2) and
|
||||
l.version
|
||||
= (
|
||||
SELECT
|
||||
max( version ) version
|
||||
FROM
|
||||
case_application_log
|
||||
WHERE case_appli_id = c.id
|
||||
)
|
||||
)
|
||||
WHERE
|
||||
ca.identity_type=1 and c.case_status in (1,5,11,14,15,16,17,31)
|
||||
<if test="caseStatusList != null and caseStatusList.size() > 0">
|
||||
and c.case_status in
|
||||
<foreach item="caseStatus" collection="caseStatusList" open="(" separator="," close=")">
|
||||
#{caseStatus}
|
||||
</foreach>
|
||||
</if>
|
||||
ca.identity_type=1
|
||||
|
||||
and c.case_status in (1,5,14,15,16,17,31)
|
||||
|
||||
<if test="deptIds != null and deptIds.size() > 0">
|
||||
and ca.application_organ_id in
|
||||
<foreach item="item" collection="deptIds" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="caseStatus != null">
|
||||
AND c.case_status = #{caseStatus}
|
||||
</if>
|
||||
<if test="lockStatus != null">
|
||||
AND c.lock_status = #{lockStatus}
|
||||
</if>
|
||||
|
||||
<if test="caseNum != null and caseNum != ''">
|
||||
AND c.case_num = #{caseNum}
|
||||
</if>
|
||||
<if test="nameId != null and nameId != ''">
|
||||
AND ca.application_organ_id=#{nameId} AND ca.identity_type=1
|
||||
</if>
|
||||
</if>) tt
|
||||
<where>
|
||||
<if test="caseStatusList != null and caseStatusList.size() > 0">
|
||||
and tt.case_status in
|
||||
<foreach item="caseStatus" collection="caseStatusList" open="(" separator="," close=")">
|
||||
#{caseStatus}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="caseStatus != null">
|
||||
AND tt.case_status = #{caseStatus}
|
||||
</if>
|
||||
|
||||
</where>
|
||||
union
|
||||
<!--秘书审核案件-->
|
||||
SELECT
|
||||
@@ -415,7 +431,13 @@
|
||||
JOIN case_affiliate_log ca ON ca.case_appli_log_id = l.id
|
||||
AND ca.identity_type = 1
|
||||
WHERE
|
||||
l.update_submit_status IN ( 1, 2 ) and ca.identity_type=1
|
||||
l.update_submit_status IN ( 1, 2 ) and ca.identity_type=1 and c.case_status >10
|
||||
<if test="caseStatusList != null and caseStatusList.size() > 0">
|
||||
and c.case_status in
|
||||
<foreach item="caseStatus" collection="caseStatusList" open="(" separator="," close=")">
|
||||
#{caseStatus}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="deptIds != null and deptIds.size() > 0">
|
||||
and ca.application_organ_id in
|
||||
<foreach item="item" collection="deptIds" open="(" separator="," close=")">
|
||||
@@ -663,7 +685,7 @@
|
||||
<!--仲裁员-->
|
||||
<if test="userId != null and userId != ''">
|
||||
or ( t.identity_type=1 and
|
||||
t.case_status in (7,8,9,12,13,17)
|
||||
t.case_status in (7,8,9,11,13,17)
|
||||
and
|
||||
instr (t.arbitrator_id,#{userId})>0)
|
||||
</if>
|
||||
@@ -755,7 +777,7 @@
|
||||
WHERE case_appli_id = c.id
|
||||
)
|
||||
WHERE
|
||||
ca.identity_type=1 and c.case_status in (1,5,11,14,15,16,17,31)
|
||||
ca.identity_type=1 and c.case_status in (1,5,14,15,16,17,31)
|
||||
<if test="deptIds != null and deptIds.size() > 0">
|
||||
and ca.application_organ_id in
|
||||
<foreach item="item" collection="deptIds" open="(" separator="," close=")">
|
||||
@@ -774,44 +796,7 @@
|
||||
<if test="nameId != null and nameId != ''">
|
||||
AND ca.application_organ_id=#{nameId} AND ca.identity_type=1
|
||||
</if>
|
||||
union
|
||||
<!--秘书审核案件-->
|
||||
|
||||
select l.case_appli_id id ,
|
||||
c.case_status,ca.application_organ_id,
|
||||
c.arbitrator_id,ca.identity_num , ca.identity_type
|
||||
FROM
|
||||
case_application c
|
||||
JOIN case_application_log l ON c.id = l.case_appli_id
|
||||
JOIN case_affiliate_log ca ON ca.case_appli_log_id = l.id
|
||||
AND ca.identity_type = 1
|
||||
WHERE
|
||||
l.update_submit_status IN ( 1, 2 ) and ca.identity_type=1
|
||||
<if test="deptIds != null and deptIds.size() > 0">
|
||||
and ca.application_organ_id in
|
||||
<foreach item="item" collection="deptIds" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="caseStatus != null">
|
||||
AND c.case_status = #{caseStatus}
|
||||
</if>
|
||||
<if test="lockStatus != null">
|
||||
AND c.lock_status = #{lockStatus}
|
||||
</if>
|
||||
<if test="caseNum != null and caseNum != ''">
|
||||
AND c.case_num = #{caseNum}
|
||||
</if>
|
||||
<if test="nameId != null and nameId != ''">
|
||||
AND ca.application_organ_id=#{nameId} AND ca.identity_type=1
|
||||
</if>
|
||||
AND l.version = (
|
||||
SELECT
|
||||
max( version ) version
|
||||
FROM
|
||||
case_application_log
|
||||
WHERE
|
||||
c.id = case_appli_id)
|
||||
|
||||
</if>
|
||||
</trim>
|
||||
|
||||
Reference in New Issue
Block a user