Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
T
tcm-system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TCM
tcm-system
Commits
3327c003
Commit
3327c003
authored
Jul 23, 2019
by
zjy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user/role/tright 7.23
parent
18ffd097
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
80 additions
and
0 deletions
+80
-0
pom.xml
pom.xml
+7
-0
ComputerRegisterController.java
.../web/authority/controller/ComputerRegisterController.java
+15
-0
RegisterService.java
...a/com/pangding/web/authority/service/RegisterService.java
+2
-0
RegisterServiceImpl.java
...gding/web/authority/service/impl/RegisterServiceImpl.java
+9
-0
CompanyVo.java
src/main/java/com/pangding/web/authority/vo/CompanyVo.java
+10
-0
BusinessLicenseCodeReqVo.java
...ding/web/authority/vo/reqvo/BusinessLicenseCodeReqVo.java
+37
-0
No files found.
pom.xml
View file @
3327c003
...
...
@@ -34,4 +34,11 @@
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>
com.pangding.web
</groupId>
<artifactId>
pd-upload-feign
</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
src/main/java/com/pangding/web/authority/controller/ComputerRegisterController.java
View file @
3327c003
...
...
@@ -142,6 +142,21 @@ public class ComputerRegisterController {
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
)
public
ResponseResult
<
String
>
fileUpload
(
@RequestBody
CommonsMultipartFile
file
)
throws
IOException
{
return
ResponseResult
.
result
(
registerServiceImpl
.
fileUpload
(
file
));
...
...
src/main/java/com/pangding/web/authority/service/RegisterService.java
View file @
3327c003
...
...
@@ -76,4 +76,6 @@ public interface RegisterService {
String
enterpriceSubmit
(
EnterpriceSubmitReqVo
reqVo
);
String
fileUpload
(
CommonsMultipartFile
file
)
throws
IOException
;
void
businesslicenseCode
(
BusinessLicenseCodeReqVo
reqVo
);
}
src/main/java/com/pangding/web/authority/service/impl/RegisterServiceImpl.java
View file @
3327c003
...
...
@@ -648,4 +648,13 @@ public class RegisterServiceImpl implements RegisterService {
file
.
transferTo
(
newFile
);
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
);
}
}
src/main/java/com/pangding/web/authority/vo/CompanyVo.java
View file @
3327c003
...
...
@@ -72,6 +72,16 @@ public class CompanyVo extends BaseVo implements InitDao {
@TableAnnotation
(
"examine_failed_reason"
)
private
String
examineFailedReason
;
private
String
url
;
public
String
getUrl
()
{
return
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
public
String
getExamineFailedReason
()
{
return
examineFailedReason
;
}
...
...
src/main/java/com/pangding/web/authority/vo/reqvo/BusinessLicenseCodeReqVo.java
0 → 100644
View file @
3327c003
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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment