Merge branch 'wq' of SH-Arbitrate/Arbitrate-Backend into dev

This commit was merged in pull request #357.
This commit is contained in:
2024-05-17 15:57:36 +08:00
committed by Gitea
5 changed files with 19 additions and 8 deletions
@@ -3,6 +3,7 @@ package com.ruoyi.web.controller.wisdomarbitrate;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.wisdomarbitrate.domain.CaseLogRecord;
import com.ruoyi.wisdomarbitrate.service.MsSignSealService;
import com.ruoyi.wisdomarbitrate.utils.SignVerifyUtils;
import org.springframework.beans.factory.annotation.Autowired;
@@ -44,7 +44,7 @@ public class PdfUtils {
document.setMarginMirroring(false);
document.open();
// 解决PDF中文不显示
String fontPath = "/D:/simsun.ttf"; //字体文件路径
String fontPath = "/home/ruoyi/uploadPath/songfont/simsun.ttf"; //字体文件路径
XMLWorkerFontProvider provider = new XMLWorkerFontProvider(XMLWorkerFontProvider.DONTLOOKFORFONTS);
provider.register(fontPath);//注册字体
log.error("注册字体");
@@ -2283,6 +2283,21 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
JsonObject signUrlData = signUrlJsonObject.getAsJsonObject("data");
String url = signUrlData.get("url").getAsString();
sealSignRecordReslt.setSealUrl(url);
if(StrUtil.isEmpty(SecurityUtils.getUsername())){
throw new ServiceException("未获取到当前登录用户");
}
SysUser sysUser = sysUserMapper.selectUserByUserName(getUsername());
if(sysUser==null){
throw new ServiceException("未获取到当前登录用户");
}
CaseLogRecord operLog = new CaseLogRecord();
operLog.setCreateNickName(sysUser.getNickName());
operLog.setCaseNode(14);
operLog.setCreateBy(sysUser.getUserName());
operLog.setCaseAppliId(caseApplication.getId());
operLog.setCaseNodeName("待用印");
operLog.setCreateTime(new Date());
caseLogRecordMapper.insertCaseLogRecord(operLog);
}
return sealSignRecordReslt;
}
@@ -106,13 +106,8 @@ public class MsSignSealServiceImpl implements MsSignSealService {
} else if (StringUtils.isNotEmpty(accountMobile) && accountMobile.equals(orgnNamePsnAcc)) {
// 用印
sealSignRecordMapper.updataSealSignRecord(sealSignRecordsel);
CaseLogRecord operLog = new CaseLogRecord();
operLog.setCreateNickName(orgnNamePsnName);
operLog.setCaseNode(14);
operLog.setCaseAppliId(caseAppliId);
operLog.setCreateTime(dateOperate);
caseLogRecordMapper.insertCaseLogRecord(operLog);
CaseApplication application = new CaseApplication();
application.setId(caseAppliId);
// 案件状态为待送达
@@ -1412,7 +1412,7 @@
AND t1.lock_status = #{caseApplication.lockStatus}
</if>
<if test="caseApplication.caseNum != null and caseApplication.caseNum != ''">
AND t1.case_num = #{caseApplication.caseNum}
AND t1.case_num like concat('%',#{caseApplication.caseNum},'%')
</if>
<if test="caseApplication.batchNumber != null">
AND t1.batch_number = #{caseApplication.batchNumber}