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
edbd1046
Commit
edbd1046
authored
Sep 29, 2022
by
wanglong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加查看企业信息详情
parent
3ba57df9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
CompanyController.java
...mos/boot/module/ugp/biz/controller/CompanyController.java
+25
-5
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/CompanyController.java
View file @
edbd1046
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ugp
.
biz
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.module.common.api.dto.CompanyPerson
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.yeejoin.amos.boot.module.ugp.api.entity.Company
;
import
com.yeejoin.amos.boot.module.ugp.api.mapper.CompanyMapper
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
...
...
@@ -27,7 +25,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.yeejoin.amos.boot.module.ugp.api.dto.CompanyDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
springfox.documentation.spring.web.json.Json
;
/**
* 企业信息表
...
...
@@ -42,6 +39,8 @@ public class CompanyController extends BaseController {
@Autowired
CompanyServiceImpl
companyServiceImpl
;
@Autowired
CompanyMapper
companyMapper
;
/**
* 新增企业信息表
...
...
@@ -137,6 +136,7 @@ public class CompanyController extends BaseController {
Map
<
String
,
Object
>
message
=
new
HashMap
<>();
try
{
companyServiceImpl
.
queryForCompanyList
();
companyServiceImpl
.
modifyCompanyInfo
(
companyList
);
message
.
put
(
"res"
,
true
);
}
catch
(
Exception
e
){
...
...
@@ -148,6 +148,26 @@ public class CompanyController extends BaseController {
}
/**
* 查看企业信息详情
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查看企业信息详情"
,
notes
=
"查看企业信息详情"
)
@GetMapping
(
value
=
"/getCompanyInfo"
)
public
ResponseModel
<
Company
>
getCompanyInfo
(
Company
companyList
)
{
Company
company
;
QueryWrapper
<
Company
>
lambdaQueryWrapper
=
new
QueryWrapper
<>();
lambdaQueryWrapper
.
eq
(
"name"
,
companyList
.
getName
());
company
=
companyMapper
.
selectOne
(
lambdaQueryWrapper
);
return
ResponseHelper
.
buildResponse
(
company
);
}
}
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