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