|
@@ -61,7 +61,7 @@ public class RegisterApproval extends BaseController {
|
|
|
private DictionaryItemService dictionaryItemService;
|
|
private DictionaryItemService dictionaryItemService;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ApprovalService approvalService;
|
|
private ApprovalService approvalService;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private UserService userService;
|
|
private UserService userService;
|
|
|
|
|
|
|
@@ -73,23 +73,23 @@ public class RegisterApproval extends BaseController {
|
|
|
|
|
|
|
|
@OperationLog(value = "查看企业注册列表")
|
|
@OperationLog(value = "查看企业注册列表")
|
|
|
@RequestMapping("/list")
|
|
@RequestMapping("/list")
|
|
|
- public String pageInfo(@RequestParam(value = "pageNum",defaultValue = "1") Integer pageNum , ModelMap modelMap,String keyword,Company searchCondition){
|
|
|
|
|
- PageInfo<Company> pageInfo = companyInfoManageService.findRegisterPage(pageNum, PAGESIZE, keyword,searchCondition);
|
|
|
|
|
- modelMap.put("pageInfo",pageInfo);
|
|
|
|
|
- modelMap.put("keyword",keyword);
|
|
|
|
|
- modelMap.put("searchCondition",searchCondition);
|
|
|
|
|
|
|
+ public String pageInfo(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, ModelMap modelMap, String keyword, Company searchCondition) {
|
|
|
|
|
+ PageInfo<Company> pageInfo = companyInfoManageService.findRegisterPage(pageNum, PAGESIZE, keyword, searchCondition);
|
|
|
|
|
+ modelMap.put("pageInfo", pageInfo);
|
|
|
|
|
+ modelMap.put("keyword", keyword);
|
|
|
|
|
+ modelMap.put("searchCondition", searchCondition);
|
|
|
return "/admin/government/register/index";
|
|
return "/admin/government/register/index";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@RequestMapping("/details")
|
|
@RequestMapping("/details")
|
|
|
- public String details(Integer id,ModelMap modelMap){
|
|
|
|
|
|
|
+ public String details(Integer id, ModelMap modelMap) {
|
|
|
|
|
|
|
|
Company company = companyService.findById(id);
|
|
Company company = companyService.findById(id);
|
|
|
|
|
|
|
|
//
|
|
//
|
|
|
- if(Objects.equals(company.getIndustry_code(),"Empty")){
|
|
|
|
|
|
|
+ if (Objects.equals(company.getIndustry_code(), "Empty")) {
|
|
|
company.setIndustry_code(company.getIndustry_name());
|
|
company.setIndustry_code(company.getIndustry_name());
|
|
|
- }else{
|
|
|
|
|
|
|
+ } else {
|
|
|
company.setIndustry_code(dictionaryItemService.findNameByTypeAndValue(Constant.DictionaryType.INDUSTRY_TYPE, company.getIndustry_code()));
|
|
company.setIndustry_code(dictionaryItemService.findNameByTypeAndValue(Constant.DictionaryType.INDUSTRY_TYPE, company.getIndustry_code()));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -114,7 +114,6 @@ public class RegisterApproval extends BaseController {
|
|
|
List<DictionaryItem> itemList = dictionaryItemService.findListByTypeName(Constant.DictionaryType.CURRENCY_UNIT);
|
|
List<DictionaryItem> itemList = dictionaryItemService.findListByTypeName(Constant.DictionaryType.CURRENCY_UNIT);
|
|
|
modelMap.put("itemList", itemList);
|
|
modelMap.put("itemList", itemList);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
List<Approval> approvalList = approvalService.getRegisterApprovalList(id);
|
|
List<Approval> approvalList = approvalService.getRegisterApprovalList(id);
|
|
|
modelMap.put("approvalList", approvalList);
|
|
modelMap.put("approvalList", approvalList);
|
|
|
|
|
|
|
@@ -125,15 +124,15 @@ public class RegisterApproval extends BaseController {
|
|
|
usercriteria.andEqualTo("company_id", id);
|
|
usercriteria.andEqualTo("company_id", id);
|
|
|
userexample.orderBy("create_time").asc();
|
|
userexample.orderBy("create_time").asc();
|
|
|
List<User> users = userService.selectByExample(userexample);
|
|
List<User> users = userService.selectByExample(userexample);
|
|
|
- if(null != users && users.size()>0) {
|
|
|
|
|
- modelMap.put("user", users.get(0));
|
|
|
|
|
- }else {
|
|
|
|
|
|
|
+ if (null != users && users.size() > 0) {
|
|
|
|
|
+ modelMap.put("user", users.get(0));
|
|
|
|
|
+ } else {
|
|
|
modelMap.put("user", new User());
|
|
modelMap.put("user", new User());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
modelMap.put("companyContract", companyContactService.findByCompanyId(id));
|
|
modelMap.put("companyContract", companyContactService.findByCompanyId(id));
|
|
|
|
|
|
|
|
- modelMap.put("fileUrl",getFileDownloadUri());
|
|
|
|
|
|
|
+ modelMap.put("fileUrl", getFileDownloadUri());
|
|
|
|
|
|
|
|
Example materialexample = new Example(CompanyMaterial.class);
|
|
Example materialexample = new Example(CompanyMaterial.class);
|
|
|
Example.Criteria materialcriteria = materialexample.createCriteria();
|
|
Example.Criteria materialcriteria = materialexample.createCriteria();
|
|
@@ -144,9 +143,9 @@ public class RegisterApproval extends BaseController {
|
|
|
List<CompanyMaterial> materialList = companyMaterialService.selectByExample(materialexample);
|
|
List<CompanyMaterial> materialList = companyMaterialService.selectByExample(materialexample);
|
|
|
List<Attachment> attachments = attachmentService.selectByIdAndBusinessId(Constant.Attachment.COMPANY_MATERIAL, id, null);
|
|
List<Attachment> attachments = attachmentService.selectByIdAndBusinessId(Constant.Attachment.COMPANY_MATERIAL, id, null);
|
|
|
if (null != attachments && attachments.size() > 0 && null != materialList && materialList.size() > 0) {
|
|
if (null != attachments && attachments.size() > 0 && null != materialList && materialList.size() > 0) {
|
|
|
- for(Attachment attachment:attachments){
|
|
|
|
|
- for(CompanyMaterial material:materialList){
|
|
|
|
|
- if(Objects.equals(material.getAttachment_id(),attachment.getId())){
|
|
|
|
|
|
|
+ for (Attachment attachment : attachments) {
|
|
|
|
|
+ for (CompanyMaterial material : materialList) {
|
|
|
|
|
+ if (Objects.equals(material.getAttachment_id(), attachment.getId())) {
|
|
|
CompanyFileDto companyFileDto = new CompanyFileDto();
|
|
CompanyFileDto companyFileDto = new CompanyFileDto();
|
|
|
FileDown fileDown = new FileDown(attachment.getId(), attachment.getFile_name(), attachment.getFile_url(), attachment.getDownload_uri());
|
|
FileDown fileDown = new FileDown(attachment.getId(), attachment.getFile_name(), attachment.getFile_url(), attachment.getDownload_uri());
|
|
|
companyFileDto.setFile_name(material.getFile_name());
|
|
companyFileDto.setFile_name(material.getFile_name());
|
|
@@ -164,14 +163,14 @@ public class RegisterApproval extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping("/approval")
|
|
@RequestMapping("/approval")
|
|
|
- public String approval(Integer id,ModelMap modelMap){
|
|
|
|
|
|
|
+ public String approval(Integer id, ModelMap modelMap) {
|
|
|
|
|
|
|
|
Company company = companyService.findById(id);
|
|
Company company = companyService.findById(id);
|
|
|
|
|
|
|
|
//
|
|
//
|
|
|
- if(Objects.equals(company.getIndustry_code(),"Empty")){
|
|
|
|
|
|
|
+ if (Objects.equals(company.getIndustry_code(), "Empty")) {
|
|
|
company.setIndustry_code(company.getIndustry_name());
|
|
company.setIndustry_code(company.getIndustry_name());
|
|
|
- }else{
|
|
|
|
|
|
|
+ } else {
|
|
|
company.setIndustry_code(dictionaryItemService.findNameByTypeAndValue(Constant.DictionaryType.INDUSTRY_TYPE, company.getIndustry_code()));
|
|
company.setIndustry_code(dictionaryItemService.findNameByTypeAndValue(Constant.DictionaryType.INDUSTRY_TYPE, company.getIndustry_code()));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -206,14 +205,14 @@ public class RegisterApproval extends BaseController {
|
|
|
usercriteria.andEqualTo("company_id", id);
|
|
usercriteria.andEqualTo("company_id", id);
|
|
|
userexample.orderBy("create_time").asc();
|
|
userexample.orderBy("create_time").asc();
|
|
|
List<User> users = userService.selectByExample(userexample);
|
|
List<User> users = userService.selectByExample(userexample);
|
|
|
- if(null != users && users.size()>0) {
|
|
|
|
|
- modelMap.put("user", users.get(0));
|
|
|
|
|
- }else {
|
|
|
|
|
|
|
+ if (null != users && users.size() > 0) {
|
|
|
|
|
+ modelMap.put("user", users.get(0));
|
|
|
|
|
+ } else {
|
|
|
modelMap.put("user", new User());
|
|
modelMap.put("user", new User());
|
|
|
}
|
|
}
|
|
|
modelMap.put("companyContract", companyContactService.findByCompanyId(id));
|
|
modelMap.put("companyContract", companyContactService.findByCompanyId(id));
|
|
|
|
|
|
|
|
- modelMap.put("fileUrl",getFileDownloadUri());
|
|
|
|
|
|
|
+ modelMap.put("fileUrl", getFileDownloadUri());
|
|
|
|
|
|
|
|
Example materialexample = new Example(CompanyMaterial.class);
|
|
Example materialexample = new Example(CompanyMaterial.class);
|
|
|
Example.Criteria materialcriteria = materialexample.createCriteria();
|
|
Example.Criteria materialcriteria = materialexample.createCriteria();
|
|
@@ -224,9 +223,9 @@ public class RegisterApproval extends BaseController {
|
|
|
List<CompanyMaterial> materialList = companyMaterialService.selectByExample(materialexample);
|
|
List<CompanyMaterial> materialList = companyMaterialService.selectByExample(materialexample);
|
|
|
List<Attachment> attachments = attachmentService.selectByIdAndBusinessId(Constant.Attachment.COMPANY_MATERIAL, id, null);
|
|
List<Attachment> attachments = attachmentService.selectByIdAndBusinessId(Constant.Attachment.COMPANY_MATERIAL, id, null);
|
|
|
if (null != attachments && attachments.size() > 0 && null != materialList && materialList.size() > 0) {
|
|
if (null != attachments && attachments.size() > 0 && null != materialList && materialList.size() > 0) {
|
|
|
- for(Attachment attachment:attachments){
|
|
|
|
|
- for(CompanyMaterial material:materialList){
|
|
|
|
|
- if(Objects.equals(material.getAttachment_id(),attachment.getId())){
|
|
|
|
|
|
|
+ for (Attachment attachment : attachments) {
|
|
|
|
|
+ for (CompanyMaterial material : materialList) {
|
|
|
|
|
+ if (Objects.equals(material.getAttachment_id(), attachment.getId())) {
|
|
|
CompanyFileDto companyFileDto = new CompanyFileDto();
|
|
CompanyFileDto companyFileDto = new CompanyFileDto();
|
|
|
FileDown fileDown = new FileDown(attachment.getId(), attachment.getFile_name(), attachment.getFile_url(), attachment.getDownload_uri());
|
|
FileDown fileDown = new FileDown(attachment.getId(), attachment.getFile_name(), attachment.getFile_url(), attachment.getDownload_uri());
|
|
|
companyFileDto.setFile_name(material.getFile_name());
|
|
companyFileDto.setFile_name(material.getFile_name());
|
|
@@ -241,33 +240,33 @@ public class RegisterApproval extends BaseController {
|
|
|
return "/admin/government/register/approval";
|
|
return "/admin/government/register/approval";
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
@OperationLog(value = "企业注册审核")
|
|
@OperationLog(value = "企业注册审核")
|
|
|
@RequestMapping("/submit")
|
|
@RequestMapping("/submit")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
- public ResponseMessage submit(Integer type,Integer id,String approval_comment){
|
|
|
|
|
|
|
+ public ResponseMessage submit(Integer type, Integer id, String approval_comment) {
|
|
|
try {
|
|
try {
|
|
|
- if(IsTooFrequently()) {
|
|
|
|
|
- return ResponseMessage.error("操作过于频繁,请稍后再试!");
|
|
|
|
|
- }
|
|
|
|
|
- return companyService.approval(type,id,approval_comment);
|
|
|
|
|
|
|
+ if (IsTooFrequently()) {
|
|
|
|
|
+ return ResponseMessage.error("操作过于频繁,请稍后再试!");
|
|
|
|
|
+ }
|
|
|
|
|
+ return companyService.approval(type, id, approval_comment);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
return ResponseMessage.error("审核失败");
|
|
return ResponseMessage.error("审核失败");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
@OperationLog(value = "查看企业注册审核列表")
|
|
@OperationLog(value = "查看企业注册审核列表")
|
|
|
@RequestMapping("/already_list")
|
|
@RequestMapping("/already_list")
|
|
|
- public String already_pageInfo(@RequestParam(value = "pageNum",defaultValue = "1") Integer pageNum , ModelMap modelMap, String keyword,Company searchCondition){
|
|
|
|
|
|
|
+ public String already_pageInfo(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, ModelMap modelMap, String keyword, Company searchCondition) {
|
|
|
PageInfo<Company> pageInfo = companyInfoManageService.findAlready_RegisterPage(pageNum, PAGESIZE, keyword, searchCondition);
|
|
PageInfo<Company> pageInfo = companyInfoManageService.findAlready_RegisterPage(pageNum, PAGESIZE, keyword, searchCondition);
|
|
|
- modelMap.put("pageInfo",pageInfo);
|
|
|
|
|
- modelMap.put("keyword",keyword);
|
|
|
|
|
- modelMap.put("searchCondition",searchCondition);
|
|
|
|
|
|
|
+ modelMap.put("pageInfo", pageInfo);
|
|
|
|
|
+ modelMap.put("keyword", keyword);
|
|
|
|
|
+ modelMap.put("searchCondition", searchCondition);
|
|
|
return "/admin/government/register/index1";
|
|
return "/admin/government/register/index1";
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 检验手机号是否存在
|
|
* 检验手机号是否存在
|
|
|
*
|
|
*
|
|
@@ -295,7 +294,7 @@ public class RegisterApproval extends BaseController {
|
|
|
log.info("检验用户名是否存在结果! flag = {}", flag);
|
|
log.info("检验用户名是否存在结果! flag = {}", flag);
|
|
|
return flag;
|
|
return flag;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 检验用户名是否存在
|
|
* 检验用户名是否存在
|
|
|
*
|
|
*
|
|
@@ -323,7 +322,7 @@ public class RegisterApproval extends BaseController {
|
|
|
log.info("检验用户名是否存在结果! flag = {}", flag);
|
|
log.info("检验用户名是否存在结果! flag = {}", flag);
|
|
|
return flag;
|
|
return flag;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 检验组织机构代码是否存在
|
|
* 检验组织机构代码是否存在
|
|
|
*
|
|
*
|
|
@@ -350,6 +349,6 @@ public class RegisterApproval extends BaseController {
|
|
|
log.info("检验组织机构代码是否存在结果! flag = {}", flag);
|
|
log.info("检验组织机构代码是否存在结果! flag = {}", flag);
|
|
|
return flag;
|
|
return flag;
|
|
|
}*/
|
|
}*/
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
}
|
|
}
|