|
|
@@ -122,6 +122,8 @@ public class OwnCompanyManageController extends BaseController
|
|
|
if(CommonUtil.isNotEmpty(sysCompany.getScyType())) {
|
|
|
queryWrapper.eq(SysCompany::getScyType, sysCompany.getScyType());
|
|
|
}
|
|
|
+ //创建时间倒序排列
|
|
|
+ queryWrapper.orderByDesc(SysCompany::getCreateTime);
|
|
|
IPage<SysCompany> list = iSysCompanyService.findSysCompanys(request,queryWrapper);
|
|
|
return R.ok(list);
|
|
|
}
|
|
|
@@ -292,6 +294,82 @@ public class OwnCompanyManageController extends BaseController
|
|
|
return R.ok();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取企业明细信息(四要素审核专用)
|
|
|
+ */
|
|
|
+ @GetMapping("/queryExam/{scyId}")
|
|
|
+ public R queryExam(@PathVariable("scyId") String scyId) throws Exception {
|
|
|
+
|
|
|
+ LambdaQueryWrapper<SysCompany> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper.eq(SysCompany::getScyId,scyId);
|
|
|
+ List<SysCompany> list = iSysCompanyService.findSysCompanys(queryWrapper);
|
|
|
+ if(list.size() > 0) {
|
|
|
+ //经办人信息
|
|
|
+ LambdaQueryWrapper<SysUserCompanyRel> sysUserCompanyRel = new LambdaQueryWrapper<>();
|
|
|
+ sysUserCompanyRel.eq(SysUserCompanyRel::getSucrCompanyId,scyId);
|
|
|
+ sysUserCompanyRel.eq(SysUserCompanyRel::getSucrHandler,HANDER);
|
|
|
+ List<SysUserCompanyRel> contactsList = iSysUserCompanyRelService.findSysUserCompanyRels(sysUserCompanyRel);
|
|
|
+ List<Map> userList = null;
|
|
|
+ List<Map> handlerPositiveList = null;
|
|
|
+ List<Map> handlerNegativeList = null;
|
|
|
+
|
|
|
+ Map queryMap = new HashMap();
|
|
|
+ queryMap.put("companyId",scyId);
|
|
|
+ //发票信息
|
|
|
+ List<Map> invoiceList = iOwnCompanyManageService.selectInvoiceList(queryMap);
|
|
|
+ //营业执照信息
|
|
|
+ List<Map> licenseList = iOwnCompanyManageService.selectLicenseFileList(queryMap);
|
|
|
+ //法人证件正面信息
|
|
|
+ List<Map> legalFileList = iOwnCompanyManageService.selectLegalFileList(queryMap);
|
|
|
+ //法人证件反面信息
|
|
|
+ List<Map> legalBackFileList = iOwnCompanyManageService.selectLegalBackFileList(queryMap);
|
|
|
+ //法人授权书信息
|
|
|
+ List<Map> authorizationList = iOwnCompanyManageService.selectAuthorizationFileList(queryMap);
|
|
|
+ //数字证书授权与承诺书信息
|
|
|
+ List<Map> commitmentList = iOwnCompanyManageService.selectCommitmentFileList(queryMap);
|
|
|
+ //其他附件
|
|
|
+ List<Map> appendixList = iOwnCompanyManageService.selectAppendixFileList(queryMap);
|
|
|
+ /*返回结果*/
|
|
|
+ Map map = new HashMap();
|
|
|
+ //基本信息
|
|
|
+ map.put("basicList",list);
|
|
|
+ //经办人信息
|
|
|
+ if(contactsList.size() > 0) {
|
|
|
+ Long sucrUserId = contactsList.get(0).getSucrUserId();
|
|
|
+ Map userMap = new HashMap();
|
|
|
+ userMap.put("userId",sucrUserId);
|
|
|
+ userList = iOwnCompanyManageService.selectUserList(userMap);
|
|
|
+ Map handlerMap = new HashMap();
|
|
|
+ handlerMap.put("userId",sucrUserId);
|
|
|
+ handlerPositiveList = iOwnCompanyManageService.handlerPositiveList(handlerMap);
|
|
|
+ handlerNegativeList = iOwnCompanyManageService.handlerNegativeList(handlerMap);
|
|
|
+ }
|
|
|
+ map.put("contactsList", userList);
|
|
|
+ //发票信息
|
|
|
+ map.put("invoiceList", invoiceList);
|
|
|
+ //营业执照信息
|
|
|
+ map.put("licenseList",licenseList);
|
|
|
+ //法人证件正面信息
|
|
|
+ map.put("legalList",legalFileList);
|
|
|
+ //法人证件反面信息
|
|
|
+ map.put("legalBackList",legalBackFileList);
|
|
|
+ //经办人证件正面信息
|
|
|
+ map.put("handlerPositiveList",handlerPositiveList);
|
|
|
+ //经办人证件反面信息
|
|
|
+ map.put("handlerNegativeList",handlerNegativeList);
|
|
|
+ //法人授权书信息
|
|
|
+ map.put("authorizationList",authorizationList);
|
|
|
+ //数字证书授权与承诺书信息
|
|
|
+ map.put("commitmentList",commitmentList);
|
|
|
+ //其他附件
|
|
|
+ map.put("appendixList",appendixList);
|
|
|
+ return R.ok(map);
|
|
|
+ }else {
|
|
|
+ throw new Exception("企业不存在");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 修改企业信息
|
|
|
*/
|
|
|
@@ -472,13 +550,13 @@ public class OwnCompanyManageController extends BaseController
|
|
|
if(CommonUtil.isEmpty(state)){
|
|
|
throw new Exception("要执行信息的状态为空");
|
|
|
}
|
|
|
- //执行
|
|
|
- SysCompany sysCompany = new SysCompany();
|
|
|
- sysCompany.setScyId(scyId);
|
|
|
- sysCompany.setScyStatus(state);
|
|
|
- sysCompany.setUpdateBy(userId);
|
|
|
- sysCompany.setUpdateTime(DateUtils.getNowDate());
|
|
|
- iSysCompanyService.updateById(sysCompany);
|
|
|
+ //执行
|
|
|
+ SysCompany sysCompany = new SysCompany();
|
|
|
+ sysCompany.setScyId(scyId);
|
|
|
+ sysCompany.setScyAuthStatus(state);
|
|
|
+ sysCompany.setUpdateBy(userId);
|
|
|
+ sysCompany.setUpdateTime(DateUtils.getNowDate());
|
|
|
+ iSysCompanyService.updateById(sysCompany);
|
|
|
return R.ok();
|
|
|
}
|
|
|
|