调解系统修改
This commit is contained in:
@@ -2,9 +2,13 @@ package com.ruoyi;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import com.ruoyi.common.constant.CacheConstants;
|
||||
import com.ruoyi.common.core.domain.entity.SysDept;
|
||||
import com.ruoyi.common.core.domain.entity.SysRole;
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.core.redis.RedisCache;
|
||||
import com.ruoyi.common.utils.spring.SpringUtils;
|
||||
import com.ruoyi.system.mapper.SysDeptMapper;
|
||||
import com.ruoyi.system.mapper.SysRoleMapper;
|
||||
import com.ruoyi.system.mapper.SysUserMapper;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
@@ -45,6 +49,23 @@ public class RuoYiApplication
|
||||
if(CollectionUtil.isNotEmpty(sysUsers)){
|
||||
for (SysUser sysUser : sysUsers) {
|
||||
redisCache.setCacheObject(CacheConstants.USER_KEY+sysUser.getUserId(),sysUser);
|
||||
redisCache.setCacheObject(CacheConstants.USER_EMAIL_KEY+sysUser.getEmail(),sysUser);
|
||||
}
|
||||
}
|
||||
// 初始化角色redis
|
||||
SysRoleMapper roleMapper = SpringUtils.getBean(SysRoleMapper.class);
|
||||
List<SysRole> roles = roleMapper.selectRoleList(new SysRole());
|
||||
if(CollectionUtil.isNotEmpty(roles)){
|
||||
for (SysRole role : roles) {
|
||||
redisCache.setCacheObject(CacheConstants.ROLE_KEY+role.getRoleName(),role.getRoleId());
|
||||
}
|
||||
}
|
||||
// 初始化部门redis
|
||||
SysDeptMapper deptMapper = SpringUtils.getBean(SysDeptMapper.class);
|
||||
List<SysDept> depts = deptMapper.selectDeptList(new SysDept());
|
||||
if(CollectionUtil.isNotEmpty(depts)){
|
||||
for (SysDept dept : depts) {
|
||||
redisCache.setCacheObject(CacheConstants.DEPT_KEY+dept.getDeptName(),dept.getDeptId());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,6 +116,17 @@ public class SysLoginController {
|
||||
}
|
||||
return loginService.loginSSO(loginBody);
|
||||
|
||||
}
|
||||
/**对接BM,根据用户名查询token*/
|
||||
@GetMapping("selectTokenByUserName")
|
||||
public AjaxResult selectTokenByUserName( LoginBody loginBody){
|
||||
if(StrUtil.isEmpty(loginBody.getUsername()) || StrUtil.isEmpty(loginBody.getTicket())
|
||||
){
|
||||
return AjaxResult.error("参数错误");
|
||||
}
|
||||
|
||||
return loginService.selectTokenByUserName(loginBody);
|
||||
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
@@ -2,12 +2,12 @@ package com.ruoyi.web.controller.tool;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
import com.ruoyi.common.annotation.Anonymous;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.AttachmentOperateTypeEnum;
|
||||
import com.ruoyi.common.enums.PushCaseStatusEnum;
|
||||
import com.ruoyi.system.service.impl.BeiMingInterfaceService;
|
||||
import com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsCaseFileInfo;
|
||||
import com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsCaseStatusInfo;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
@@ -18,7 +18,6 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import java.io.File;
|
||||
|
||||
import static com.ruoyi.common.utils.EncryptUtils.sm4Decrypt;
|
||||
import static com.ruoyi.common.utils.EncryptUtils.sm4Encrypt;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/beiming/api")
|
||||
@@ -57,12 +56,13 @@ public class TestApiController {
|
||||
return AjaxResult.success();
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/testfile")
|
||||
@Anonymous
|
||||
public AjaxResult testfile() {
|
||||
// File file = new File("D:/WorkDoc/TJ/File/证据1.png");
|
||||
File file = new File("D:/WorkDoc/TJ/File/证据3.png");
|
||||
JSONObject jsonObject1 = beiMingInterfaceService.pushAttachmentInfo("BWT_MEDIATION", "86251b190e3a40f3942v215d1762c663", file, "123abc", "BWT_MEDIATION", "zc2024032700012");
|
||||
MsCaseFileInfo jsonObject1 = beiMingInterfaceService.pushAttachmentInfo("BWT_MEDIATION", "86251b190e3a40f3942v215d1762c663", file, "BWT_MEDIATION", "zc2024032700012", AttachmentOperateTypeEnum.ADD);
|
||||
System.out.println("fanhui:" + jsonObject1.toString());
|
||||
return AjaxResult.success();
|
||||
}
|
||||
|
||||
+1
-13
@@ -77,7 +77,7 @@ public class MsCaseApplicationController extends BaseController {
|
||||
@PostMapping("/insert")
|
||||
public AjaxResult insert(@RequestBody MsCaseApplicationVO caseApplication )
|
||||
{
|
||||
if(caseApplication.getAffiliate()==null||caseApplication.getAffiliate().getOrganizeFlag()==null){
|
||||
if( caseApplication.getAffiliate()==null|| caseApplication.getOrganizeFlag()==null){
|
||||
error("参数校验失败");
|
||||
}
|
||||
AjaxResult ajaxResult = AjaxResult.success();
|
||||
@@ -344,19 +344,7 @@ public class MsCaseApplicationController extends BaseController {
|
||||
|
||||
return caseApplicationService.updateTrialPen(attach);
|
||||
}
|
||||
/**
|
||||
* 确认调解书
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/confirmMediation")
|
||||
public AjaxResult confirmMediation(@RequestBody MsCaseAttachVO attach) throws EsignDemoException, InterruptedException {
|
||||
if (attach.getCaseFlowId()==null || attach.getCaseAppliId()==null ) {
|
||||
return error("参数校验失败");
|
||||
}
|
||||
|
||||
return caseApplicationService.confirmMediation(attach);
|
||||
}
|
||||
/**
|
||||
* 获取userSign
|
||||
* @param userId
|
||||
|
||||
+1
-63
@@ -2,18 +2,15 @@ package com.ruoyi.web.controller.wisdomarbitrate.mscase;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.ruoyi.common.annotation.Anonymous;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.exception.EsignDemoException;
|
||||
import com.ruoyi.wisdomarbitrate.domain.dto.mscase.MsSignSealDTO;
|
||||
import com.ruoyi.wisdomarbitrate.domain.dto.mscase.SealSignRecord;
|
||||
import com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsCaseApplicationVO;
|
||||
import com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsCaseLogRecordVO;
|
||||
import com.ruoyi.wisdomarbitrate.service.mscase.MsSignSealService;
|
||||
import com.ruoyi.wisdomarbitrate.utils.SignVerifyUtils;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
@@ -29,16 +26,7 @@ public class MsSignSealController extends BaseController {
|
||||
@Autowired
|
||||
private MsSignSealService msSignSealService;
|
||||
|
||||
/**
|
||||
* 调解书签名
|
||||
*/
|
||||
@PostMapping("/sureMediationSeal")
|
||||
public AjaxResult sureMediationSeal(@RequestBody MsCaseApplicationVO caseApplication ) throws EsignDemoException, InterruptedException {
|
||||
if(caseApplication.getId()==null){
|
||||
error("id不能为空");
|
||||
}
|
||||
return msSignSealService.sureMediationSeal(caseApplication);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 用印申请
|
||||
@@ -151,55 +139,5 @@ public class MsSignSealController extends BaseController {
|
||||
return msSignSealService.msCaseSignUrlApplyPC(dto);
|
||||
}
|
||||
|
||||
/**
|
||||
* PC端被申请人签名
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/msCaseSignUrlResPC")
|
||||
public AjaxResult msCaseSignUrlResPC(@RequestBody MsSignSealDTO dto) throws EsignDemoException {
|
||||
if (dto.getCaseId() == null) {
|
||||
return error("参数校验失败");
|
||||
}
|
||||
return msSignSealService.msCaseSignUrlResPC(dto);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 小程序端申请人签名
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/msCaseSignUrlApplyAPP")
|
||||
public AjaxResult msCaseSignUrlApplyAPP(@RequestBody MsSignSealDTO dto) throws EsignDemoException {
|
||||
if (dto.getCaseId() == null) {
|
||||
return error("参数校验失败");
|
||||
}
|
||||
return msSignSealService.msCaseSignUrlApplyAPP(dto);
|
||||
}
|
||||
|
||||
/**
|
||||
* 小程序端被申请人签名
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/msCaseSignUrlResAPP")
|
||||
public AjaxResult msCaseSignUrlResAPP(@RequestBody MsSignSealDTO dto) throws EsignDemoException {
|
||||
if (dto.getCaseId() == null) {
|
||||
return error("参数校验失败");
|
||||
}
|
||||
return msSignSealService.msCaseSignUrlResAPP(dto);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
+2
-2
@@ -106,9 +106,9 @@ public class MsVideoConferenceController extends BaseController {
|
||||
*/
|
||||
@Anonymous
|
||||
@GetMapping("secretaryRoleByUserId")
|
||||
public AjaxResult secretaryRoleByUserId( @RequestParam(value = "userId",required = true) Long userId) {
|
||||
public AjaxResult secretaryRoleByUserId( @RequestParam(value = "userId",required = true) Long userId,@RequestParam(value = "caseId",required = true) Long caseId) {
|
||||
|
||||
return videoService.secretaryRoleByUserId(userId);
|
||||
return videoService.secretaryRoleByUserId(userId,caseId);
|
||||
}
|
||||
/**
|
||||
* 根据html字符串转pdf并和案件关联
|
||||
|
||||
Reference in New Issue
Block a user