Commit 3327c003 authored by zjy's avatar zjy

user/role/tright 7.23

parent 18ffd097
...@@ -34,4 +34,11 @@ ...@@ -34,4 +34,11 @@
</repository> </repository>
</repositories> </repositories>
<dependencies>
<dependency>
<groupId>com.pangding.web</groupId>
<artifactId>pd-upload-feign</artifactId>
</dependency>
</dependencies>
</project> </project>
\ No newline at end of file
...@@ -142,6 +142,21 @@ public class ComputerRegisterController { ...@@ -142,6 +142,21 @@ public class ComputerRegisterController {
return ResponseResult.result(verifyCode); return ResponseResult.result(verifyCode);
} }
/**
* 上传印业执照图片地址,更新公司表
* @param reqVo
* @return
*/
@RequestMapping(value = "/businessLicenseCode",method = RequestMethod.POST,produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseResult businessLicenseCode(@RequestBody BusinessLicenseCodeReqVo reqVo){
CheckerHelper.newInstance()
.notBlankCheck("companyId",reqVo.getCompanyId())
.notBlankCheck("url",reqVo.getUrl())
.checkException();
registerServiceImpl.businesslicenseCode(reqVo);
return new ResponseResult();
}
@RequestMapping(value = "/fileUpload",method = RequestMethod.POST,produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @RequestMapping(value = "/fileUpload",method = RequestMethod.POST,produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseResult<String> fileUpload(@RequestBody CommonsMultipartFile file) throws IOException { public ResponseResult<String> fileUpload(@RequestBody CommonsMultipartFile file) throws IOException {
return ResponseResult.result(registerServiceImpl.fileUpload(file)); return ResponseResult.result(registerServiceImpl.fileUpload(file));
......
...@@ -76,4 +76,6 @@ public interface RegisterService { ...@@ -76,4 +76,6 @@ public interface RegisterService {
String enterpriceSubmit(EnterpriceSubmitReqVo reqVo); String enterpriceSubmit(EnterpriceSubmitReqVo reqVo);
String fileUpload(CommonsMultipartFile file) throws IOException; String fileUpload(CommonsMultipartFile file) throws IOException;
void businesslicenseCode(BusinessLicenseCodeReqVo reqVo);
} }
...@@ -648,4 +648,13 @@ public class RegisterServiceImpl implements RegisterService { ...@@ -648,4 +648,13 @@ public class RegisterServiceImpl implements RegisterService {
file.transferTo(newFile); file.transferTo(newFile);
return path; return path;
} }
@Override
public void businesslicenseCode(BusinessLicenseCodeReqVo reqVo) {
CompanyGetReqVo companyGetReqVo = new CompanyGetReqVo();
companyGetReqVo.setId(reqVo.getCompanyId());
CompanyVo companyVo = companyDaoImpl.load(companyGetReqVo,CompanyVo.class);
companyVo.setUrl(reqVo.getUrl());
companyDaoImpl.update(companyVo);
}
} }
...@@ -72,6 +72,16 @@ public class CompanyVo extends BaseVo implements InitDao { ...@@ -72,6 +72,16 @@ public class CompanyVo extends BaseVo implements InitDao {
@TableAnnotation("examine_failed_reason") @TableAnnotation("examine_failed_reason")
private String examineFailedReason; private String examineFailedReason;
private String url;
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getExamineFailedReason() { public String getExamineFailedReason() {
return examineFailedReason; return examineFailedReason;
} }
......
package com.pangding.web.authority.vo.reqvo;
/**
* @Author zhangjinyao
* @create 2019/7/23 17:22
*/
public class BusinessLicenseCodeReqVo {
private String reqId;
private String companyId;
private String url;
public String getReqId() {
return reqId;
}
public void setReqId(String reqId) {
this.reqId = reqId;
}
public String getCompanyId() {
return companyId;
}
public void setCompanyId(String companyId) {
this.companyId = companyId;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment