Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pms-dispatch-assistant
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
姜耀祖
pms-dispatch-assistant
Commits
0653e1c3
Commit
0653e1c3
authored
Jun 06, 2025
by
赵灿灿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加查询条件
parent
6aab2c93
Pipeline
#21461
passed with stages
in 3 minutes and 50 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
0 deletions
+57
-0
MvcInterceptConfiguration.java
...stant/common/configuration/MvcInterceptConfiguration.java
+2
-0
expertController.java
...hassistant/controller/expertOpenApI/expertController.java
+38
-0
ExpertInformationService.java
...nt/domain/expertInformation/ExpertInformationService.java
+17
-0
No files found.
src/main/java/com/infoepoch/pms/dispatchassistant/common/configuration/MvcInterceptConfiguration.java
View file @
0653e1c3
...
...
@@ -55,6 +55,8 @@ public class MvcInterceptConfiguration implements WebMvcConfigurer {
adminInterceptor
.
excludePathPatterns
(
"/oa/account/sync-oa-employee"
);
// OA同步组织请求不拦截
adminInterceptor
.
excludePathPatterns
(
"/oa/sync-organization"
);
// 智能体请求不拦截
adminInterceptor
.
excludePathPatterns
(
"/expertApi/selectExpertInformation"
);
}
@Bean
...
...
src/main/java/com/infoepoch/pms/dispatchassistant/controller/expertOpenApI/expertController.java
0 → 100644
View file @
0653e1c3
package
com
.
infoepoch
.
pms
.
dispatchassistant
.
controller
.
expertOpenApI
;
import
com.infoepoch.pms.dispatchassistant.common.component.Result
;
import
com.infoepoch.pms.dispatchassistant.common.exception.ValidationException
;
import
com.infoepoch.pms.dispatchassistant.common.utils.StringUtils
;
import
com.infoepoch.pms.dispatchassistant.domain.expertInformation.ExpertInformation
;
import
com.infoepoch.pms.dispatchassistant.domain.expertInformation.ExpertInformationCriteria
;
import
com.infoepoch.pms.dispatchassistant.domain.expertInformation.ExpertInformationService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
@RestController
@RequestMapping
(
"/expertApi"
)
public
class
expertController
{
@Autowired
private
ExpertInformationService
service
;
/**
* 根据条件查询列表
**/
@PostMapping
(
"selectExpertInformation"
)
public
Result
selectExpertInformation
(
@RequestBody
ExpertInformationCriteria
criteria
)
{
criteria
.
removeMapNullOrEmpty
();
Map
<
String
,
Object
>
map
=
service
.
selectExpertInformation
(
criteria
);
return
Result
.
successData
(
map
);
}
}
src/main/java/com/infoepoch/pms/dispatchassistant/domain/expertInformation/ExpertInformationService.java
View file @
0653e1c3
...
...
@@ -80,6 +80,23 @@ public class ExpertInformationService {
}
}
/**
* 根据条件查询列表
**/
public
Map
<
String
,
Object
>
selectExpertInformation
(
ExpertInformationCriteria
criteria
)
{
try
{
criteria
.
removeMapNullOrEmpty
();
List
<
ExpertInformation
>
entityList
=
repository
.
selectByCriteria
(
criteria
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"entityList"
,
entityList
);
return
map
;
}
catch
(
Exception
e
)
{
LogHelper
.
info
(
e
.
getMessage
());
throw
new
ValidationException
(
"根据条件查询 专家信息表 列表 数据 失败。"
);
}
}
/**
* 保存
**/
...
...
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