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
57d9b5cc
Commit
57d9b5cc
authored
Apr 28, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序》根据企业统一信用代码查询企业详情
parent
c293e216
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
3 deletions
+23
-3
ITzBaseEnterpriseInfoService.java
.../module/tzs/api/service/ITzBaseEnterpriseInfoService.java
+2
-0
TzBaseEnterpriseInfoController.java
...le/tzs/biz/controller/TzBaseEnterpriseInfoController.java
+8
-1
TzBaseEnterpriseInfoServiceImpl.java
...tzs/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
+13
-2
No files found.
amos-boot-system-tzs/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/api/service/ITzBaseEnterpriseInfoService.java
View file @
57d9b5cc
...
@@ -40,4 +40,6 @@ public interface ITzBaseEnterpriseInfoService extends IService<TzBaseEnterpriseI
...
@@ -40,4 +40,6 @@ public interface ITzBaseEnterpriseInfoService extends IService<TzBaseEnterpriseI
TzBaseEnterpriseInfoDto
companyInfoUpdate
(
Map
<
String
,
Object
>
map
);
TzBaseEnterpriseInfoDto
companyInfoUpdate
(
Map
<
String
,
Object
>
map
);
Map
<
String
,
Object
>
adminInfoUpdate
(
Map
<
String
,
Object
>
map
);
Map
<
String
,
Object
>
adminInfoUpdate
(
Map
<
String
,
Object
>
map
);
TzBaseEnterpriseInfoDto
getInfoByUseCode
(
String
useCode
);
}
}
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/controller/TzBaseEnterpriseInfoController.java
View file @
57d9b5cc
...
@@ -172,7 +172,7 @@ public class TzBaseEnterpriseInfoController {
...
@@ -172,7 +172,7 @@ public class TzBaseEnterpriseInfoController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/info"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/info"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"
根据id查询企业详情"
,
notes
=
"根据id查询
企业详情"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"
查询企业端当前登录人所在企业详情"
,
notes
=
"查询企业端当前登录人所在
企业详情"
)
public
ResponseModel
<
IPage
<
TzBaseEnterpriseInfoDto
>>
pageInfo
(
PageParam
pageParam
,
Long
id
)
{
public
ResponseModel
<
IPage
<
TzBaseEnterpriseInfoDto
>>
pageInfo
(
PageParam
pageParam
,
Long
id
)
{
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
ReginParams
reginParams
=
JSON
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
if
(
ObjectUtils
.
isEmpty
(
reginParams
)){
if
(
ObjectUtils
.
isEmpty
(
reginParams
)){
...
@@ -181,6 +181,13 @@ public class TzBaseEnterpriseInfoController {
...
@@ -181,6 +181,13 @@ public class TzBaseEnterpriseInfoController {
return
ResponseHelper
.
buildResponse
(
iTzBaseEnterpriseInfoService
.
page
(
pageParam
,
reginParams
.
getCompany
().
getCompanyName
()));
return
ResponseHelper
.
buildResponse
(
iTzBaseEnterpriseInfoService
.
page
(
pageParam
,
reginParams
.
getCompany
().
getCompanyName
()));
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/getInfoByUseCode"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据统一信用代码查询企业详情"
,
notes
=
"根据统一信用代码查询企业详情"
)
public
ResponseModel
<
TzBaseEnterpriseInfoDto
>
getInfoByUseCode
(
String
useCode
)
{
return
ResponseHelper
.
buildResponse
(
iTzBaseEnterpriseInfoService
.
getInfoByUseCode
(
useCode
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/companyInfoUpdate"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/companyInfoUpdate"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"修改企业信息"
,
notes
=
"修改企业信息"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"修改企业信息"
,
notes
=
"修改企业信息"
)
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/service/impl/TzBaseEnterpriseInfoServiceImpl.java
View file @
57d9b5cc
...
@@ -173,8 +173,12 @@ public class TzBaseEnterpriseInfoServiceImpl
...
@@ -173,8 +173,12 @@ public class TzBaseEnterpriseInfoServiceImpl
}
}
@Override
@Override
public
IPage
<
TzBaseEnterpriseInfoDto
>
page
(
PageParam
pageParam
,
String
companyName
)
{
public
TzBaseEnterpriseInfoDto
getInfoByUseCode
(
String
useCode
)
{
TzBaseEnterpriseInfo
tzBaseEnterpriseInfo
=
tzBaseEnterpriseInfoMapper
.
selectOne
(
new
QueryWrapper
<
TzBaseEnterpriseInfo
>().
eq
(
"use_unit"
,
companyName
));
TzBaseEnterpriseInfo
tzBaseEnterpriseInfo
=
tzBaseEnterpriseInfoMapper
.
selectOne
(
new
QueryWrapper
<
TzBaseEnterpriseInfo
>().
eq
(
"use_code"
,
useCode
));
return
ObjectUtils
.
isEmpty
(
tzBaseEnterpriseInfo
)
?
null
:
getDetail
(
tzBaseEnterpriseInfo
);
}
private
TzBaseEnterpriseInfoDto
getDetail
(
TzBaseEnterpriseInfo
tzBaseEnterpriseInfo
){
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
=
detail
(
tzBaseEnterpriseInfo
.
getSequenceNbr
());
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
=
detail
(
tzBaseEnterpriseInfo
.
getSequenceNbr
());
RegUnitIcDto
regUnitIcDto
=
new
RegUnitIcDto
();
RegUnitIcDto
regUnitIcDto
=
new
RegUnitIcDto
();
Map
<
String
,
Object
>
resultMap
=
accessFeignService
.
getData
(
tzBaseEnterpriseInfoDto
.
getUseCode
()).
getResult
();
Map
<
String
,
Object
>
resultMap
=
accessFeignService
.
getData
(
tzBaseEnterpriseInfoDto
.
getUseCode
()).
getResult
();
...
@@ -217,6 +221,13 @@ public class TzBaseEnterpriseInfoServiceImpl
...
@@ -217,6 +221,13 @@ public class TzBaseEnterpriseInfoServiceImpl
}
}
tzBaseEnterpriseInfoDto
.
setRegUnitIcDto
(
regUnitIcDto
);
tzBaseEnterpriseInfoDto
.
setRegUnitIcDto
(
regUnitIcDto
);
tzBaseEnterpriseInfoDto
.
setApprovalTime
(
regUnitIcDto
.
getApprovedDate
());
tzBaseEnterpriseInfoDto
.
setApprovalTime
(
regUnitIcDto
.
getApprovedDate
());
return
tzBaseEnterpriseInfoDto
;
}
@Override
public
IPage
<
TzBaseEnterpriseInfoDto
>
page
(
PageParam
pageParam
,
String
companyName
)
{
TzBaseEnterpriseInfo
tzBaseEnterpriseInfo
=
tzBaseEnterpriseInfoMapper
.
selectOne
(
new
QueryWrapper
<
TzBaseEnterpriseInfo
>().
eq
(
"use_unit"
,
companyName
));
TzBaseEnterpriseInfoDto
tzBaseEnterpriseInfoDto
=
getDetail
(
tzBaseEnterpriseInfo
);
ArrayList
<
TzBaseEnterpriseInfoDto
>
result
=
new
ArrayList
<>();
ArrayList
<
TzBaseEnterpriseInfoDto
>
result
=
new
ArrayList
<>();
result
.
add
(
tzBaseEnterpriseInfoDto
);
result
.
add
(
tzBaseEnterpriseInfoDto
);
Page
<
TzBaseEnterpriseInfoDto
>
page
=
new
Page
<>(
pageParam
.
getCurrent
(),
pageParam
.
getSize
());
Page
<
TzBaseEnterpriseInfoDto
>
page
=
new
Page
<>(
pageParam
.
getCurrent
(),
pageParam
.
getSize
());
...
...
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