11.23开发
This commit is contained in:
@@ -254,4 +254,5 @@ public class SysUserController extends BaseController
|
|||||||
public AjaxResult selectUserById(@RequestParam(required = true) Long userId){
|
public AjaxResult selectUserById(@RequestParam(required = true) Long userId){
|
||||||
return AjaxResult.success(userService.selectUserById(userId));
|
return AjaxResult.success(userService.selectUserById(userId));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+14
@@ -163,4 +163,18 @@ public class DeptIdentifyController extends BaseController {
|
|||||||
List<TemplateManage> sealList = deptIdentifyService.getTemplateList(deptIdentify);
|
List<TemplateManage> sealList = deptIdentifyService.getTemplateList(deptIdentify);
|
||||||
return getDataTable(sealList);
|
return getDataTable(sealList);
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 根据部门id查询岗位用户信息
|
||||||
|
*/
|
||||||
|
@GetMapping("selectPostUserByDeptId")
|
||||||
|
public AjaxResult selectPostUserByDeptId(DeptIdentify deptIdentify){
|
||||||
|
return AjaxResult.success(deptIdentifyService.selectPostUserByDeptId(deptIdentify));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 给机构绑定经办人
|
||||||
|
*/
|
||||||
|
@GetMapping("bindHandler")
|
||||||
|
public AjaxResult bindHandler(DeptIdentify deptIdentify){
|
||||||
|
return deptIdentifyService.bindHandler(deptIdentify);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -156,4 +156,6 @@ public interface SysUserMapper
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<SysUser> selectByDeptIdAndRole(@Param("deptId")String applicationOrganId, @Param("roleName")String roleName);
|
List<SysUser> selectByDeptIdAndRole(@Param("deptId")String applicationOrganId, @Param("roleName")String roleName);
|
||||||
|
|
||||||
|
List<SysUser> selectRoleUserByDeptId(@Param("deptId")Long deptId,@Param("roleId") Long roleId );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -207,4 +207,5 @@ public interface ISysUserService
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public String importUser(List<SysUser> userList, Boolean isUpdateSupport, String operName);
|
public String importUser(List<SysUser> userList, Boolean isUpdateSupport, String operName);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -537,4 +537,6 @@ public class SysUserServiceImpl implements ISysUserService {
|
|||||||
}
|
}
|
||||||
return successMsg.toString();
|
return successMsg.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ public class DeptIdentify extends BaseEntity {
|
|||||||
|
|
||||||
/** ID */
|
/** ID */
|
||||||
private Long id;
|
private Long id;
|
||||||
|
/** 部门id */
|
||||||
|
private Long deptId;
|
||||||
|
/** 用户id */
|
||||||
|
private Long userId;
|
||||||
/** 机构名称 */
|
/** 机构名称 */
|
||||||
private String identifyName;
|
private String identifyName;
|
||||||
/** 认证状态 */
|
/** 认证状态 */
|
||||||
|
|||||||
+2
-2
@@ -12,10 +12,10 @@ import java.util.List;
|
|||||||
@Data
|
@Data
|
||||||
public class CaseConfirmPayDTO {
|
public class CaseConfirmPayDTO {
|
||||||
/**
|
/**
|
||||||
* 案件id
|
* 案件ids
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "案件id不能为空")
|
@NotNull(message = "案件id不能为空")
|
||||||
private Long caseId;
|
private List<Long> caseIds;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 支付方式 0线上支付,1线下支付
|
* 支付方式 0线上支付,1线下支付
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.ruoyi.wisdomarbitrate.service;
|
package com.ruoyi.wisdomarbitrate.service;
|
||||||
|
|
||||||
import com.ruoyi.common.core.domain.AjaxResult;
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||||
import com.ruoyi.common.exception.EsignDemoException;
|
import com.ruoyi.common.exception.EsignDemoException;
|
||||||
import com.ruoyi.wisdomarbitrate.domain.DeptIdentify;
|
import com.ruoyi.wisdomarbitrate.domain.DeptIdentify;
|
||||||
import com.ruoyi.wisdomarbitrate.domain.SealManage;
|
import com.ruoyi.wisdomarbitrate.domain.SealManage;
|
||||||
@@ -44,4 +45,10 @@ public interface IDeptIdentifyService {
|
|||||||
|
|
||||||
List<TemplateManage> getTemplateList(DeptIdentify deptIdentify);
|
List<TemplateManage> getTemplateList(DeptIdentify deptIdentify);
|
||||||
|
|
||||||
|
|
||||||
|
List<SysUser> selectPostUserByDeptId(DeptIdentify deptIdentify);
|
||||||
|
|
||||||
|
|
||||||
|
AjaxResult bindHandler(DeptIdentify deptIdentify);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+37
-29
@@ -47,12 +47,13 @@ public class CasePaymentServiceImpl implements ICasePaymentService {
|
|||||||
, CaseApplicationMapper caseApplicationMapper
|
, CaseApplicationMapper caseApplicationMapper
|
||||||
, CasePaymentRecordMapper casePaymentRecordMapper
|
, CasePaymentRecordMapper casePaymentRecordMapper
|
||||||
, CaseAffiliateMapper caseAffiliateMapper
|
, CaseAffiliateMapper caseAffiliateMapper
|
||||||
) {
|
) {
|
||||||
this.elegentPay = elegentPay;
|
this.elegentPay = elegentPay;
|
||||||
this.caseApplicationMapper = caseApplicationMapper;
|
this.caseApplicationMapper = caseApplicationMapper;
|
||||||
this.casePaymentRecordMapper = casePaymentRecordMapper;
|
this.casePaymentRecordMapper = casePaymentRecordMapper;
|
||||||
this.caseAffiliateMapper = caseAffiliateMapper;
|
this.caseAffiliateMapper = caseAffiliateMapper;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ICaseApplicationService caseApplicationService;
|
private ICaseApplicationService caseApplicationService;
|
||||||
|
|
||||||
@@ -190,38 +191,45 @@ public class CasePaymentServiceImpl implements ICasePaymentService {
|
|||||||
@Transactional
|
@Transactional
|
||||||
@Override
|
@Override
|
||||||
public AjaxResult confirmPay(CaseConfirmPayDTO payDTO) {
|
public AjaxResult confirmPay(CaseConfirmPayDTO payDTO) {
|
||||||
if (payDTO.getCaseId() != null && payDTO.getPayType() != null) {
|
List<Long> caseIds = payDTO.getCaseIds();
|
||||||
|
if (caseIds == null || caseIds.size() == 0) {
|
||||||
|
return AjaxResult.error("案件id参数有误");
|
||||||
|
}
|
||||||
|
if (payDTO.getPayType() != null) {
|
||||||
// 修改支付方式
|
// 修改支付方式
|
||||||
|
|
||||||
caseApplicationMapper.updatePayType(payDTO);
|
caseApplicationMapper.updatePayType(payDTO);
|
||||||
}
|
}
|
||||||
if (CollectionUtil.isNotEmpty(payDTO.getPayOrderList())) {
|
for (Long caseId : caseIds) {
|
||||||
for (CaseAttach caseAttach : payDTO.getPayOrderList()) {
|
if (CollectionUtil.isNotEmpty(payDTO.getPayOrderList())) {
|
||||||
caseAttach.setCaseAppliId(payDTO.getCaseId());
|
for (CaseAttach caseAttach : payDTO.getPayOrderList()) {
|
||||||
caseAttachMapper.updateCaseAttach(caseAttach);
|
caseAttach.setCaseAppliId(caseId);
|
||||||
|
caseAttachMapper.updateCaseAttach(caseAttach);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 修改节点状态
|
||||||
|
//根据案件id查询案件信息
|
||||||
|
CaseApplication caseApplication = new CaseApplication();
|
||||||
|
caseApplication.setId(caseId);
|
||||||
|
CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
|
||||||
|
caseApplication1.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT_CONFIRM);
|
||||||
|
//修改案件状态
|
||||||
|
int i = caseApplicationMapper.submitCaseApplication(caseApplication1);
|
||||||
|
if (i > 0) {
|
||||||
|
// 修改支付状态
|
||||||
|
CasePaymentRecord paymentRecord = new CasePaymentRecord();
|
||||||
|
paymentRecord.setPayType(payDTO.getPayType());
|
||||||
|
paymentRecord.setCaseId(caseId);
|
||||||
|
paymentRecord.setPaymentStatus(1);
|
||||||
|
casePaymentRecordMapper.saveRecord(paymentRecord);
|
||||||
|
// 新增日志
|
||||||
|
CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_PAYMENT_CONFIRM, "");
|
||||||
|
|
||||||
|
return AjaxResult.success("确认缴费成功");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// 修改节点状态
|
|
||||||
//根据案件id查询案件信息
|
|
||||||
CaseApplication caseApplication = new CaseApplication();
|
|
||||||
caseApplication.setId(payDTO.getCaseId());
|
|
||||||
CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
|
|
||||||
caseApplication1.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT_CONFIRM);
|
|
||||||
//修改案件状态
|
|
||||||
int i = caseApplicationMapper.submitCaseApplication(caseApplication1);
|
|
||||||
if (i > 0) {
|
|
||||||
// 修改支付状态
|
|
||||||
CasePaymentRecord paymentRecord = new CasePaymentRecord();
|
|
||||||
paymentRecord.setPayType(payDTO.getPayType());
|
|
||||||
paymentRecord.setCaseId(payDTO.getCaseId());
|
|
||||||
paymentRecord.setPaymentStatus(1);
|
|
||||||
casePaymentRecordMapper.saveRecord(paymentRecord);
|
|
||||||
// 新增日志
|
|
||||||
CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.PENDING_PAYMENT_CONFIRM, "");
|
|
||||||
|
|
||||||
return AjaxResult.success("确认缴费成功");
|
|
||||||
}
|
}
|
||||||
return AjaxResult.success("确认缴费失败");
|
return AjaxResult.success("确认缴费失败");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -231,11 +239,11 @@ public class CasePaymentServiceImpl implements ICasePaymentService {
|
|||||||
if (caseIds == null || caseIds.size() == 0) {
|
if (caseIds == null || caseIds.size() == 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
BigDecimal totalCost = new BigDecimal(0);
|
BigDecimal totalCost = new BigDecimal(0);
|
||||||
BigDecimal sum =totalCost;
|
BigDecimal sum = totalCost;
|
||||||
CasePayListVO listVO = new CasePayListVO();
|
CasePayListVO listVO = new CasePayListVO();
|
||||||
listVO.setCaseTotal(caseIds.size());
|
listVO.setCaseTotal(caseIds.size());
|
||||||
List<CaseApplicationPay> caseApplicationList =new ArrayList<>();
|
List<CaseApplicationPay> caseApplicationList = new ArrayList<>();
|
||||||
for (Long caseId : caseIds) {
|
for (Long caseId : caseIds) {
|
||||||
CaseApplication caseApplication = new CaseApplication();
|
CaseApplication caseApplication = new CaseApplication();
|
||||||
CaseApplicationPay caseApplicationPay = new CaseApplicationPay();
|
CaseApplicationPay caseApplicationPay = new CaseApplicationPay();
|
||||||
|
|||||||
+78
-29
@@ -14,8 +14,10 @@ import com.ruoyi.common.core.domain.entity.SysUser;
|
|||||||
import com.ruoyi.common.exception.EsignDemoException;
|
import com.ruoyi.common.exception.EsignDemoException;
|
||||||
import com.ruoyi.common.utils.SealUtil;
|
import com.ruoyi.common.utils.SealUtil;
|
||||||
import com.ruoyi.common.utils.file.FileUploadUtils;
|
import com.ruoyi.common.utils.file.FileUploadUtils;
|
||||||
|
import com.ruoyi.system.domain.SysUserPost;
|
||||||
import com.ruoyi.system.mapper.SysDeptMapper;
|
import com.ruoyi.system.mapper.SysDeptMapper;
|
||||||
import com.ruoyi.system.mapper.SysUserMapper;
|
import com.ruoyi.system.mapper.SysUserMapper;
|
||||||
|
import com.ruoyi.system.mapper.SysUserPostMapper;
|
||||||
import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
|
import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
|
||||||
import com.ruoyi.wisdomarbitrate.domain.DeptIdentify;
|
import com.ruoyi.wisdomarbitrate.domain.DeptIdentify;
|
||||||
import com.ruoyi.wisdomarbitrate.domain.SealManage;
|
import com.ruoyi.wisdomarbitrate.domain.SealManage;
|
||||||
@@ -56,6 +58,8 @@ public class DeptIdentifyServiceImpl implements IDeptIdentifyService {
|
|||||||
private SysUserMapper sysUserMapper;
|
private SysUserMapper sysUserMapper;
|
||||||
@Autowired
|
@Autowired
|
||||||
private TemplateManageMapper templateManageMapper;
|
private TemplateManageMapper templateManageMapper;
|
||||||
|
@Autowired
|
||||||
|
private SysUserPostMapper sysUserPostMapper;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -299,45 +303,48 @@ public class DeptIdentifyServiceImpl implements IDeptIdentifyService {
|
|||||||
public AjaxResult insertDeptIdentify(DeptIdentify deptIdentify) {
|
public AjaxResult insertDeptIdentify(DeptIdentify deptIdentify) {
|
||||||
//参数校验
|
//参数校验
|
||||||
String identifyName = deptIdentify.getIdentifyName();
|
String identifyName = deptIdentify.getIdentifyName();
|
||||||
String operName = deptIdentify.getOperName();
|
if (identifyName == null) {
|
||||||
String operPhone = deptIdentify.getOperPhone();
|
|
||||||
if (identifyName == null || operName == null || operPhone == null) {
|
|
||||||
AjaxResult.error("请检查参数是否完整");
|
AjaxResult.error("请检查参数是否完整");
|
||||||
}
|
}
|
||||||
Integer identifyType = deptIdentify.getIdentifyType();
|
Integer identifyType = deptIdentify.getIdentifyType();
|
||||||
if (identifyType == null) {
|
if (identifyType == null) {
|
||||||
deptIdentify.setIdentifyType(1); // 设置机构默认为仲裁机构
|
deptIdentify.setIdentifyType(1); // 设置机构默认为仲裁机构
|
||||||
}
|
}
|
||||||
//先查询看数据库里有没有相同的机构经办人
|
|
||||||
List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentify(deptIdentify);
|
|
||||||
if (deptIdentifies != null && deptIdentifies.size() > 0) {
|
|
||||||
//说明之前新增过
|
|
||||||
return AjaxResult.error("信息重复");
|
|
||||||
}
|
|
||||||
deptIdentify.setIdentifyStatus(0); //设置认证状态默认为未认证
|
deptIdentify.setIdentifyStatus(0); //设置认证状态默认为未认证
|
||||||
deptIdentify.setIsUse(0); //设置机构默认为未启用
|
deptIdentify.setIsUse(0); //设置机构默认为未启用
|
||||||
|
//将机构名称保存到部门表里
|
||||||
|
SysDept sysDept = new SysDept();
|
||||||
|
sysDept.setDeptName(identifyName);
|
||||||
|
sysDept.setParentId(0L);
|
||||||
|
sysDept.setDeptType(1);
|
||||||
|
int i1 = sysDeptMapper.insertDept(sysDept);
|
||||||
|
if (i1 > 0) {
|
||||||
|
/* //将经办人信息存入到用户表里
|
||||||
|
Long deptId = sysDept.getDeptId();
|
||||||
|
SysUser sysUser = new SysUser();
|
||||||
|
sysUser.setDeptId(deptId);
|
||||||
|
sysUser.setUserName(deptIdentify.getOperUserName());
|
||||||
|
sysUser.setNickName(operName);
|
||||||
|
sysUser.setPhonenumber(operPhone);
|
||||||
|
SysUser sysUser1 = sysUserMapper.selectUserByUserName(deptIdentify.getOperUserName());
|
||||||
|
if (sysUser1== null) {
|
||||||
|
sysUserMapper.insertUser(sysUser);
|
||||||
|
}
|
||||||
|
Long userId = sysUser.getUserId();
|
||||||
|
deptIdentify.setDeptId(deptId);
|
||||||
|
deptIdentify.setUserId(userId);
|
||||||
|
List<SysUserPost> sysUserPosts = new ArrayList<>();
|
||||||
|
SysUserPost sysUserPost = new SysUserPost();
|
||||||
|
sysUserPost.setUserId(userId);
|
||||||
|
sysUserPost.setPostId(5L);
|
||||||
|
sysUserPosts.add(sysUserPost);
|
||||||
|
sysUserPostMapper.batchUserPost(sysUserPosts);*/
|
||||||
|
Long deptId = sysDept.getDeptId();
|
||||||
|
deptIdentify.setDeptId(deptId);
|
||||||
|
}
|
||||||
|
|
||||||
int i = deptIdentifyMapper.insertDeptIdentify(deptIdentify);
|
int i = deptIdentifyMapper.insertDeptIdentify(deptIdentify);
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
//将机构名称保存到部门表里
|
|
||||||
SysDept sysDept = new SysDept();
|
|
||||||
sysDept.setDeptName(identifyName);
|
|
||||||
sysDept.setParentId(0L);
|
|
||||||
sysDept.setDeptType(1);
|
|
||||||
int i1 = sysDeptMapper.insertDept(sysDept);
|
|
||||||
if (i1 > 0) {
|
|
||||||
//将经办人信息存入到用户表里
|
|
||||||
Long deptId = sysDept.getDeptId();
|
|
||||||
SysUser sysUser = new SysUser();
|
|
||||||
sysUser.setDeptId(deptId);
|
|
||||||
sysUser.setUserName(deptIdentify.getOperUserName());
|
|
||||||
sysUser.setNickName(operName);
|
|
||||||
sysUser.setPhonenumber(operPhone);
|
|
||||||
SysUser sysUser1 = sysUserMapper.selectUserByUserName(deptIdentify.getOperUserName());
|
|
||||||
if (sysUser1== null) {
|
|
||||||
sysUserMapper.insertUser(sysUser);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return AjaxResult.success("新增成功");
|
return AjaxResult.success("新增成功");
|
||||||
}
|
}
|
||||||
return AjaxResult.error();
|
return AjaxResult.error();
|
||||||
@@ -350,6 +357,8 @@ public class DeptIdentifyServiceImpl implements IDeptIdentifyService {
|
|||||||
deptIdentify.setDelFlag(2);
|
deptIdentify.setDelFlag(2);
|
||||||
int i = deptIdentifyMapper.updateDeptIdentify(deptIdentify);
|
int i = deptIdentifyMapper.updateDeptIdentify(deptIdentify);
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
|
//删除部门表数据
|
||||||
|
sysDeptMapper.deleteDeptById(id);
|
||||||
return AjaxResult.success("删除成功");
|
return AjaxResult.success("删除成功");
|
||||||
}
|
}
|
||||||
return AjaxResult.error();
|
return AjaxResult.error();
|
||||||
@@ -371,9 +380,15 @@ public class DeptIdentifyServiceImpl implements IDeptIdentifyService {
|
|||||||
}
|
}
|
||||||
int i = deptIdentifyMapper.updateDeptIdentify(deptIdentify);
|
int i = deptIdentifyMapper.updateDeptIdentify(deptIdentify);
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
|
//修改部门表数据
|
||||||
|
SysDept sysDept = new SysDept();
|
||||||
|
sysDept.setDeptId(deptIdentify1.getDeptId());
|
||||||
|
sysDept.setDeptName(deptIdentify.getIdentifyName());
|
||||||
|
sysDeptMapper.updateDept(sysDept);
|
||||||
return AjaxResult.success("修改成功");
|
return AjaxResult.success("修改成功");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -475,7 +490,41 @@ public class DeptIdentifyServiceImpl implements IDeptIdentifyService {
|
|||||||
return templateManages;
|
return templateManages;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<SysUser> selectPostUserByDeptId(DeptIdentify deptIdentify) {
|
||||||
|
List<DeptIdentify> deptIdentifies = deptIdentifyMapper.selectDeptIdentify(deptIdentify);
|
||||||
|
if (deptIdentifies!= null && deptIdentifies.size() > 0) {
|
||||||
|
deptIdentify = deptIdentifies.get(0);
|
||||||
|
if (deptIdentify.getDeptId()!= null) {
|
||||||
|
//默认查询经办人的
|
||||||
|
Long roleId = 106L;
|
||||||
|
List<SysUser> sysUserList = sysUserMapper.selectRoleUserByDeptId(deptIdentify.getDeptId(),roleId);
|
||||||
|
return sysUserList;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AjaxResult bindHandler(DeptIdentify deptIdentify) {
|
||||||
|
if (deptIdentify.getId()== null||deptIdentify.getUserId()==null) {
|
||||||
|
return AjaxResult.error("请检查参数是否完整");
|
||||||
|
}
|
||||||
|
//根据userid查询用户信息
|
||||||
|
SysUser sysUser = sysUserMapper.selectUserById(deptIdentify.getUserId());
|
||||||
|
if (sysUser!= null) {
|
||||||
|
deptIdentify.setOperName(sysUser.getNickName());
|
||||||
|
deptIdentify.setOperPhone(sysUser.getPhonenumber());
|
||||||
|
deptIdentify.setOperUserName(sysUser.getUserName());
|
||||||
|
//更新
|
||||||
|
int i = deptIdentifyMapper.updateDeptIdentify(deptIdentify);
|
||||||
|
if (i > 0) {
|
||||||
|
return AjaxResult.success("绑定成功");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
private String getFileExtension(String fileName) {
|
private String getFileExtension(String fileName) {
|
||||||
int lastDotIndex = fileName.lastIndexOf(".");
|
int lastDotIndex = fileName.lastIndexOf(".");
|
||||||
|
|||||||
@@ -281,5 +281,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
#{userId}
|
#{userId}
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
<select id="selectRoleUserByDeptId" parameterType="long" resultMap="SysUserResult">
|
||||||
|
SELECT u.* FROM sys_user u
|
||||||
|
INNER JOIN sys_user_role ur ON u.user_id = ur.user_id
|
||||||
|
INNER JOIN sys_dept d ON u.dept_id = d.dept_id
|
||||||
|
WHERE upr.role_id = #{roleId} AND d.dept_id = #{deptId};
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -1453,7 +1453,10 @@
|
|||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
<update id="updatePayType">
|
<update id="updatePayType">
|
||||||
update case_application set pay_type=#{payType} where id = #{caseId}
|
update case_application set pay_type=#{payDTO.payType} where id in
|
||||||
|
<foreach item="caseId" collection="caseIds" open="(" separator="," close=")">
|
||||||
|
#{caseId}
|
||||||
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
<update id="updateCaseLockStatus">
|
<update id="updateCaseLockStatus">
|
||||||
update case_application set lock_status=#{lockStatus} where id = #{id}
|
update case_application set lock_status=#{lockStatus} where id = #{id}
|
||||||
|
|||||||
@@ -19,13 +19,16 @@
|
|||||||
<result property="legalPerName" column="legal_per_name" />
|
<result property="legalPerName" column="legal_per_name" />
|
||||||
<result property="legalPerPhone" column="legal_per_phone" />
|
<result property="legalPerPhone" column="legal_per_phone" />
|
||||||
<result property="identifyEmail" column="identify_email" />
|
<result property="identifyEmail" column="identify_email" />
|
||||||
|
<result property="deptId" column="dept_id" />
|
||||||
|
<result property="userId" column="user_id" />
|
||||||
|
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
<select id="selectDeptIdentify" parameterType="DeptIdentify" resultMap="DeptIdentifyResult">
|
<select id="selectDeptIdentify" parameterType="DeptIdentify" resultMap="DeptIdentifyResult">
|
||||||
SELECT id, identify_name ,identify_status , identify_date,is_use,org_id,auth_flow_id,
|
SELECT id, identify_name ,identify_status , identify_date,is_use,org_id,auth_flow_id,
|
||||||
oper_name,oper_phone,identify_type,credit_code,legal_per_name,legal_per_phone,identify_email
|
oper_name,oper_phone,identify_type,credit_code,legal_per_name,legal_per_phone
|
||||||
|
,identify_email,dept_id ,user_id
|
||||||
FROM dept_identify
|
FROM dept_identify
|
||||||
<where>
|
<where>
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
@@ -67,6 +70,8 @@
|
|||||||
<if test="legalPerName != null and legalPerName != ''">legal_per_name,</if>
|
<if test="legalPerName != null and legalPerName != ''">legal_per_name,</if>
|
||||||
<if test="legalPerPhone != null and legalPerPhone != ''">legal_per_phone,</if>
|
<if test="legalPerPhone != null and legalPerPhone != ''">legal_per_phone,</if>
|
||||||
<if test="identifyEmail != null and identifyEmail != ''">identify_email,</if>
|
<if test="identifyEmail != null and identifyEmail != ''">identify_email,</if>
|
||||||
|
<if test="deptId != null ">dept_id,</if>
|
||||||
|
<if test="userId != null ">user_id,</if>
|
||||||
del_flag
|
del_flag
|
||||||
)values(
|
)values(
|
||||||
<if test="identifyName != null and identifyName != ''">#{identifyName},</if>
|
<if test="identifyName != null and identifyName != ''">#{identifyName},</if>
|
||||||
@@ -82,6 +87,8 @@
|
|||||||
<if test="legalPerName != null and legalPerName != '' ">#{legalPerName},</if>
|
<if test="legalPerName != null and legalPerName != '' ">#{legalPerName},</if>
|
||||||
<if test="legalPerPhone != null and legalPerPhone != '' ">#{legalPerPhone},</if>
|
<if test="legalPerPhone != null and legalPerPhone != '' ">#{legalPerPhone},</if>
|
||||||
<if test="identifyEmail != null and identifyEmail != '' ">#{identifyEmail},</if>
|
<if test="identifyEmail != null and identifyEmail != '' ">#{identifyEmail},</if>
|
||||||
|
<if test="deptId != null ">#{deptId},</if>
|
||||||
|
<if test="userId != null ">#{userId},</if>
|
||||||
0
|
0
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|||||||
Reference in New Issue
Block a user