bug修改 #88
+4
@@ -12,6 +12,10 @@ public class IdentityAuthentication extends BaseEntity {
|
|||||||
|
|
||||||
/** ID */
|
/** ID */
|
||||||
private Long id;
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 角色id
|
||||||
|
*/
|
||||||
|
private Long roleId;
|
||||||
/** 姓名 */
|
/** 姓名 */
|
||||||
private String name;
|
private String name;
|
||||||
/** 身份证号 */
|
/** 身份证号 */
|
||||||
|
|||||||
+9
-5
@@ -123,10 +123,10 @@ public class WeChatUserServiceImpl implements WeChatUserService {
|
|||||||
// 根据身份证查询系统用户表中是否存在该用户,存在则同步已认证的信息,不存在则新增
|
// 根据身份证查询系统用户表中是否存在该用户,存在则同步已认证的信息,不存在则新增
|
||||||
SysUser sysUser=sysUserMapper.selectUserByIdCard(ientityAuthentication.getIdentityNo());
|
SysUser sysUser=sysUserMapper.selectUserByIdCard(ientityAuthentication.getIdentityNo());
|
||||||
// 查询角色
|
// 查询角色
|
||||||
Long roleIdByName = roleMapper.selectRoleIdByName("被申请人");
|
Long roleIdByName =ientityAuthentication.getRoleId();
|
||||||
if(roleIdByName==null){
|
// if(roleIdByName==null){
|
||||||
return AjaxResult.warn("被申请人角色不存在,请联系系统管理员新增角色");
|
// return AjaxResult.warn("被申请人角色不存在,请联系系统管理员新增角色");
|
||||||
}
|
// }
|
||||||
if(sysUser!=null){
|
if(sysUser!=null){
|
||||||
sysUser.setIdCard(ientityAuthentication.getIdentityNo());
|
sysUser.setIdCard(ientityAuthentication.getIdentityNo());
|
||||||
sysUser.setNickName(ientityAuthentication.getName());
|
sysUser.setNickName(ientityAuthentication.getName());
|
||||||
@@ -137,7 +137,7 @@ public class WeChatUserServiceImpl implements WeChatUserService {
|
|||||||
sysUserMapper.updateUser(sysUser);
|
sysUserMapper.updateUser(sysUser);
|
||||||
ientityAuthentication.setUserId(sysUser.getUserId());
|
ientityAuthentication.setUserId(sysUser.getUserId());
|
||||||
int count=0;
|
int count=0;
|
||||||
if(CollectionUtil.isNotEmpty(sysUser.getRoles()) ){
|
if(CollectionUtil.isNotEmpty(sysUser.getRoles()) && roleIdByName!=null){
|
||||||
|
|
||||||
for (SysRole role : sysUser.getRoles()) {
|
for (SysRole role : sysUser.getRoles()) {
|
||||||
if(Objects.equals(role.getRoleId(), roleIdByName)){
|
if(Objects.equals(role.getRoleId(), roleIdByName)){
|
||||||
@@ -147,9 +147,11 @@ public class WeChatUserServiceImpl implements WeChatUserService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(CollectionUtil.isEmpty(sysUser.getRoles())||count==0){
|
if(CollectionUtil.isEmpty(sysUser.getRoles())||count==0){
|
||||||
|
if(roleIdByName!=null) {
|
||||||
// 用户未关联被申请人角色,关联角色
|
// 用户未关联被申请人角色,关联角色
|
||||||
userRoleMapper.insertUserRole(sysUser.getUserId(), roleIdByName);
|
userRoleMapper.insertUserRole(sysUser.getUserId(), roleIdByName);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}else {
|
}else {
|
||||||
sysUser=new SysUser();
|
sysUser=new SysUser();
|
||||||
@@ -164,9 +166,11 @@ public class WeChatUserServiceImpl implements WeChatUserService {
|
|||||||
if(row<1) {
|
if(row<1) {
|
||||||
return AjaxResult.warn("注册失败");
|
return AjaxResult.warn("注册失败");
|
||||||
}
|
}
|
||||||
|
if(roleIdByName!=null) {
|
||||||
// 用户关联被申请人角色
|
// 用户关联被申请人角色
|
||||||
userRoleMapper.insertUserRole(sysUser.getUserId(), roleIdByName);
|
userRoleMapper.insertUserRole(sysUser.getUserId(), roleIdByName);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ientityAuthentication.setUserId(sysUser.getUserId());
|
ientityAuthentication.setUserId(sysUser.getUserId());
|
||||||
ientityAuthentication.setUserName(sysUser.getUserName());
|
ientityAuthentication.setUserName(sysUser.getUserName());
|
||||||
|
|||||||
+4
-5
@@ -688,14 +688,12 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|||||||
}
|
}
|
||||||
String templatePath = "/home/ruoyi" + templateManage.getTemOrigPath();
|
String templatePath = "/home/ruoyi" + templateManage.getTemOrigPath();
|
||||||
templatePath=templatePath.replace("/profile","/uploadPath");
|
templatePath=templatePath.replace("/profile","/uploadPath");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
File file = new File(templatePath);
|
File file = new File(templatePath);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new ServiceException("未找到模板");
|
throw new ServiceException("未找到模板");
|
||||||
}
|
}
|
||||||
|
// // 获取模板中的占位符key
|
||||||
// 获取模板中的占位符key
|
|
||||||
List<String> bookmarkList = getBookmarkByDocx(templatePath);
|
List<String> bookmarkList = getBookmarkByDocx(templatePath);
|
||||||
if (CollectionUtil.isEmpty(bookmarkList)) {
|
if (CollectionUtil.isEmpty(bookmarkList)) {
|
||||||
throw new ServiceException("请检查模板是否配置正确,未获取到占位符");
|
throw new ServiceException("请检查模板是否配置正确,未获取到占位符");
|
||||||
@@ -1441,8 +1439,8 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|||||||
msCaseAttachMapper.deleteCaseAttachByCasedIdAndType(req.getId(), AnnexTypeEnum.MEDIATE_BOOK.getCode());
|
msCaseAttachMapper.deleteCaseAttachByCasedIdAndType(req.getId(), AnnexTypeEnum.MEDIATE_BOOK.getCode());
|
||||||
for (MsCaseAttach attach : attachList) {
|
for (MsCaseAttach attach : attachList) {
|
||||||
attach.setCaseAppliId(req.getId());
|
attach.setCaseAppliId(req.getId());
|
||||||
|
msCaseAttachMapper.updateCaseAttach(attach);
|
||||||
}
|
}
|
||||||
msCaseAttachMapper.batchSave(attachList);
|
|
||||||
}
|
}
|
||||||
Integer mediaResult = req.getMediaResult();
|
Integer mediaResult = req.getMediaResult();
|
||||||
if(mediaResult!=null){
|
if(mediaResult!=null){
|
||||||
@@ -2035,8 +2033,9 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|||||||
msCaseAttachMapper.deleteCaseAttachByCasedIdAndType(req.getId(),AnnexTypeEnum.MEDIATE_BOOK.getCode());
|
msCaseAttachMapper.deleteCaseAttachByCasedIdAndType(req.getId(),AnnexTypeEnum.MEDIATE_BOOK.getCode());
|
||||||
for (MsCaseAttach attach : attachList) {
|
for (MsCaseAttach attach : attachList) {
|
||||||
attach.setCaseAppliId(req.getId());
|
attach.setCaseAppliId(req.getId());
|
||||||
|
msCaseAttachMapper.updateCaseAttach(attach);
|
||||||
}
|
}
|
||||||
msCaseAttachMapper.batchSave(attachList);
|
// msCaseAttachMapper.batchSave(attachList);
|
||||||
// 修改案件状态为待送达
|
// 修改案件状态为待送达
|
||||||
Example flowExample = new Example(MsCaseFlow.class);
|
Example flowExample = new Example(MsCaseFlow.class);
|
||||||
flowExample.createCriteria().andEqualTo("caseStatusName", "待送达");
|
flowExample.createCriteria().andEqualTo("caseStatusName", "待送达");
|
||||||
|
|||||||
Reference in New Issue
Block a user