|
@@ -240,6 +240,21 @@ public class OwnMessageController extends BaseController {
|
|
@PostMapping("/contractSigning")
|
|
@PostMapping("/contractSigning")
|
|
public AjaxResult contractSigning(@RequestBody Map<String,Object> map) throws Exception {
|
|
public AjaxResult contractSigning(@RequestBody Map<String,Object> map) throws Exception {
|
|
|
|
|
|
|
|
+ //判断当前用户是否为该公司的经办人
|
|
|
|
+ //获取此操作员
|
|
|
|
+ //当前公司
|
|
|
|
+ String companyId = tokenService.getLoginUser().getSysUser().getCompanyId();
|
|
|
|
+ //获取当前用户
|
|
|
|
+ String currentUserId = CommonUtil.objToString(tokenService.getLoginUser().getSysUser().getUserId());
|
|
|
|
+ //查询当前用户是否是经办人
|
|
|
|
+ LambdaQueryWrapper<SysUserCompanyRel> companyRelWrapper = new LambdaQueryWrapper<>();
|
|
|
|
+ companyRelWrapper.eq(SysUserCompanyRel::getSucrUserId,currentUserId);
|
|
|
|
+ companyRelWrapper.eq(SysUserCompanyRel::getSucrCompanyId,companyId);
|
|
|
|
+ companyRelWrapper.eq(SysUserCompanyRel::getSucrHandler,"1");
|
|
|
|
+ List<SysUserCompanyRel> list = sysUserCompanyRelService.findSysUserCompanyRels(companyRelWrapper);
|
|
|
|
+ if (list.size() < 1){
|
|
|
|
+ return AjaxResult.error("此操作需经办人权限,请确认您是否是经办人");
|
|
|
|
+ }
|
|
//存放合同编号
|
|
//存放合同编号
|
|
List<String> contractIdList = new ArrayList<>();
|
|
List<String> contractIdList = new ArrayList<>();
|
|
//获取授信编号
|
|
//获取授信编号
|
|
@@ -543,8 +558,7 @@ public class OwnMessageController extends BaseController {
|
|
/**-------- 获取合同盖章关键字 结束--------**/
|
|
/**-------- 获取合同盖章关键字 结束--------**/
|
|
/**-------- CFCA盖章 开始--------**/
|
|
/**-------- CFCA盖章 开始--------**/
|
|
//盖章
|
|
//盖章
|
|
- //当前公司
|
|
|
|
- String companyId = tokenService.getLoginUser().getSysUser().getCompanyId();
|
|
|
|
|
|
+
|
|
//当前公司的cfca人员编号
|
|
//当前公司的cfca人员编号
|
|
//查询当前企业信息
|
|
//查询当前企业信息
|
|
SysCompany currentCompany = companyService.getById(companyId);
|
|
SysCompany currentCompany = companyService.getById(companyId);
|