Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
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
项目统一框架
amos-boot-biz
Commits
955ecdca
Commit
955ecdca
authored
Sep 01, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
415ad758
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
TzsBaseInstitutionController.java
...dule/tcm/biz/controller/TzsBaseInstitutionController.java
+1
-1
TzsBaseInstitutionServiceImpl.java
...e/tcm/biz/service/impl/TzsBaseInstitutionServiceImpl.java
+5
-1
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/controller/TzsBaseInstitutionController.java
View file @
955ecdca
...
@@ -115,7 +115,7 @@ public class TzsBaseInstitutionController extends BaseController {
...
@@ -115,7 +115,7 @@ public class TzsBaseInstitutionController extends BaseController {
return
ResponseHelper
.
buildResponse
(
tzsBaseInstitutionServiceImpl
.
queryForTzsBaseInstitutionList
());
return
ResponseHelper
.
buildResponse
(
tzsBaseInstitutionServiceImpl
.
queryForTzsBaseInstitutionList
());
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PostMapping
(
value
=
"/register"
)
@PostMapping
(
value
=
"/register"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"事业单位注册"
,
notes
=
"事业单位注册"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"事业单位注册"
,
notes
=
"事业单位注册"
)
public
ResponseModel
<
Object
>
register
(
@RequestBody
BaseInstitutionRegisterDto
dto
)
{
public
ResponseModel
<
Object
>
register
(
@RequestBody
BaseInstitutionRegisterDto
dto
)
{
...
...
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/TzsBaseInstitutionServiceImpl.java
View file @
955ecdca
...
@@ -54,6 +54,8 @@ public class TzsBaseInstitutionServiceImpl extends BaseService<TzsBaseInstitutio
...
@@ -54,6 +54,8 @@ public class TzsBaseInstitutionServiceImpl extends BaseService<TzsBaseInstitutio
@Autowired
@Autowired
BaseUnitLicenceServiceImpl
baseUnitLicenceService
;
BaseUnitLicenceServiceImpl
baseUnitLicenceService
;
@Autowired
StartPlatformTokenService
startPlatformTokenService
;
/**
/**
* 分页查询
* 分页查询
*/
*/
...
@@ -83,12 +85,14 @@ public class TzsBaseInstitutionServiceImpl extends BaseService<TzsBaseInstitutio
...
@@ -83,12 +85,14 @@ public class TzsBaseInstitutionServiceImpl extends BaseService<TzsBaseInstitutio
companyInfo
.
setAgencyCode
(
"tzs"
);
companyInfo
.
setAgencyCode
(
"tzs"
);
companyInfo
.
setParentId
(
Long
.
parseLong
(
dto
.
getManagementUnitId
()));
companyInfo
.
setParentId
(
Long
.
parseLong
(
dto
.
getManagementUnitId
()));
companyInfo
.
setLevel
(
"company"
);
companyInfo
.
setLevel
(
"company"
);
companyInfo
.
setCompanyName
(
dto
.
getName
());
companyInfo
.
setCompanyName
(
dto
.
get
RegUnitMessage
().
getUnit
Name
());
companyInfo
.
setCompanyCode
(
dto
.
getUnitCode
());
companyInfo
.
setCompanyCode
(
dto
.
getUnitCode
());
companyInfo
.
setContact
(
dto
.
getLegalPerson
());
companyInfo
.
setContact
(
dto
.
getLegalPerson
());
companyInfo
.
setCompanyType
(
unitType
);
companyInfo
.
setCompanyType
(
unitType
);
companyInfo
.
setLandlinePhone
(
dto
.
getLegalPersonTel
());
companyInfo
.
setLandlinePhone
(
dto
.
getLegalPersonTel
());
dto
.
setName
(
dto
.
getRegUnitMessage
().
getUnitName
());
try
{
try
{
startPlatformTokenService
.
setRequestContext
();
FeignClientResult
<
CompanyModel
>
companyResult
=
Privilege
.
companyClient
.
create
(
companyInfo
);
FeignClientResult
<
CompanyModel
>
companyResult
=
Privilege
.
companyClient
.
create
(
companyInfo
);
if
(
companyResult
==
null
||
companyResult
.
getResult
()
==
null
)
{
if
(
companyResult
==
null
||
companyResult
.
getResult
()
==
null
)
{
throw
new
BadRequest
(
"单位注册失败"
);
throw
new
BadRequest
(
"单位注册失败"
);
...
...
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