Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
2f1397b5
Commit
2f1397b5
authored
May 10, 2022
by
龙于生
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增获取企业名称接口
parent
128f723f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
8 deletions
+29
-8
src/main/java/cn/timer/api/config/interceptor/WebSecurityConfig.java
+3
-1
src/main/java/cn/timer/api/controller/zpgl/ZpglH5Controller.java
+26
-7
No files found.
src/main/java/cn/timer/api/config/interceptor/WebSecurityConfig.java
View file @
2f1397b5
...
...
@@ -60,7 +60,9 @@ public class WebSecurityConfig implements WebMvcConfigurer {
.
excludePathPatterns
(
"/wxgzpt/**"
)
.
excludePathPatterns
(
"/evaluation/**"
)
.
excludePathPatterns
(
"/oss/uploadImg"
)
.
excludePathPatterns
(
"/check/**"
);
.
excludePathPatterns
(
"/check/**"
)
.
excludePathPatterns
(
"/yggl/native_place"
);
// registry.addInterceptor(getSessionInterceptor()).addPathPatterns("/**").excludePathPatterns("/swagger-ui*");
}
...
...
src/main/java/cn/timer/api/controller/zpgl/ZpglH5Controller.java
View file @
2f1397b5
...
...
@@ -2,6 +2,7 @@ package cn.timer.api.controller.zpgl;
import
cn.timer.api.aspect.lang.annotation.Log
;
import
cn.timer.api.aspect.lang.enums.BusinessType
;
import
cn.timer.api.bean.qyzx.QyzxEntInfoM
;
import
cn.timer.api.bean.zpgl.*
;
import
cn.timer.api.config.enuminterface.JxglEnumInterface
;
import
cn.timer.api.controller.zpgl.sevice.ZpglMslcLogService
;
...
...
@@ -21,6 +22,7 @@ import org.springframework.validation.annotation.Validated;
import
org.springframework.web.bind.annotation.*
;
import
javax.transaction.Transactional
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -119,22 +121,28 @@ public class ZpglH5Controller {
* @param
* @return
*/
@RequestMapping
(
"/interview_application_info
/{mobile}
"
)
@RequestMapping
(
"/interview_application_info"
)
@ApiOperation
(
value
=
"查询面试申请信息"
,
httpMethod
=
"GET"
,
notes
=
"查询面试申请信息"
)
@Log
(
title
=
"interviewApplicationIofo"
,
businessType
=
BusinessType
.
INSERT_UPDATE
)
public
Result
<
InterviewApplicationDto
>
interviewApplicationIofo
(
@PathVariable
String
mobile
)
{
System
.
out
.
println
(
mobile
);
if
(
mobile
==
null
||
""
.
equals
(
mobile
)){
return
ResultUtil
.
error
(
"手机号不能为空"
);
}
public
Result
<
InterviewApplicationDto
>
interviewApplicationIofo
(
@RequestParam
String
mobile
,
Integer
zpglRcxxId
)
{
InterviewApplicationDto
dto
=
new
InterviewApplicationDto
();
List
<
ZpglRcxx
>
zpglRcxxes
=
ZpglRcxx
.
builder
().
build
()
List
<
ZpglRcxx
>
zpglRcxxes
=
new
ArrayList
<>();
if
(
null
!=
zpglRcxxId
){
zpglRcxxes
=
ZpglRcxx
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
ZpglRcxx
>().
lambda
()
.
eq
(
ZpglRcxx:
:
getId
,
zpglRcxxId
));
}
else
{
zpglRcxxes
=
ZpglRcxx
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
ZpglRcxx
>().
lambda
()
.
eq
(
ZpglRcxx:
:
getMobile
,
mobile
));
}
if
(
zpglRcxxes
.
size
()
==
0
){
return
ResultUtil
.
error
(
"没有简历信息"
);
}
ZpglRcxx
zpglRcxx
=
zpglRcxxes
.
get
(
0
);
//复制到dto
BeanUtils
.
copyProperties
(
zpglRcxx
,
dto
);
...
...
@@ -171,4 +179,15 @@ public class ZpglH5Controller {
return
ResultUtil
.
data
(
dto
,
"查询成功"
);
}
@RequestMapping
(
"/getOrgName"
)
@ApiOperation
(
value
=
"根据orgCode获取企业名称"
,
httpMethod
=
"GET"
,
notes
=
"获取企业名称"
)
public
Object
getOrgName
(
@RequestParam
(
"orgCode"
)
Integer
orgCode
){
QyzxEntInfoM
qyzxEntInfoM
=
QyzxEntInfoM
.
builder
().
build
()
.
selectOne
(
new
QueryWrapper
<
QyzxEntInfoM
>().
lambda
()
.
select
(
QyzxEntInfoM:
:
getName
).
eq
(
QyzxEntInfoM:
:
getId
,
orgCode
));
return
ResultUtil
.
data
(
qyzxEntInfoM
);
}
}
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