Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 68c5947b
authored
Jul 11, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-dingwf-0715' into develop
2 parents
62852712
ad62fb23
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
project-order/src/main/java/com/dituhui/pea/order/common/EngineerUtil.java
project-order/src/main/java/com/dituhui/pea/order/dao/EngineerInfoDao.java
project-order/src/main/java/com/dituhui/pea/order/dto/BusinessTeamDetailDTO.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessTeamServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/common/EngineerUtil.java
View file @
68c5947
...
...
@@ -63,7 +63,7 @@ public class EngineerUtil {
public
Page
<
EngineerInfoEntity
>
findEngineersByKeyAndPage
(
List
<
String
>
engineerCodes
,
String
key
,
Integer
page
,
Integer
size
)
{
Pageable
pageable
=
PageRequest
.
of
(
page
-
1
,
size
);
return
engineerInfoDao
.
findAllByEngineerCodeIn
(
engineerCodes
,
buildSpecification
(
key
)
,
pageable
);
return
engineerInfoDao
.
findAllByEngineerCodeIn
(
buildSpecification
(
key
),
engineerCodes
,
pageable
);
}
...
...
project-order/src/main/java/com/dituhui/pea/order/dao/EngineerInfoDao.java
View file @
68c5947
...
...
@@ -6,12 +6,13 @@ import org.springframework.data.domain.Page;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.jpa.domain.Specification
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
@Repository
public
interface
EngineerInfoDao
extends
JpaRepository
<
EngineerInfoEntity
,
Integer
>
{
public
interface
EngineerInfoDao
extends
JpaRepository
<
EngineerInfoEntity
,
Integer
>
,
JpaSpecificationExecutor
<
EngineerInfoEntity
>
{
EngineerInfoEntity
getByEngineerCode
(
String
engineerCode
);
List
<
EngineerInfoEntity
>
findByGroupId
(
String
groupId
);
...
...
@@ -20,5 +21,5 @@ public interface EngineerInfoDao extends JpaRepository<EngineerInfoEntity, Integ
List
<
EngineerInfoEntity
>
findByEngineerCodeIn
(
List
<
String
>
engineerCodes
);
Page
<
EngineerInfoEntity
>
findAllByEngineerCodeIn
(
List
<
String
>
engineerCodes
,
Specification
<
EngineerInfoEntity
>
engineerInfoEntitySpecification
,
Pageable
pageable
);
Page
<
EngineerInfoEntity
>
findAllByEngineerCodeIn
(
Specification
<
EngineerInfoEntity
>
engineerInfoEntitySpecification
,
List
<
String
>
engineerCodes
,
Pageable
pageable
);
}
project-order/src/main/java/com/dituhui/pea/order/dto/BusinessTeamDetailDTO.java
View file @
68c5947
...
...
@@ -47,7 +47,7 @@ public class BusinessTeamDetailDTO {
/**
* 网点指派策略
*/
private
String
assig
i
nStrategy
;
private
String
assignStrategy
;
/**
* cutoff时间
*/
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/BusinessTeamServiceImpl.java
View file @
68c5947
...
...
@@ -246,7 +246,7 @@ public class BusinessTeamServiceImpl implements BusinessTeamService {
}).
collect
(
Collectors
.
toList
());
rs
.
setEngineers
(
engineers
);
BusinessTeamDetailDTO
.
ScheduleConfig
config
=
new
BusinessTeamDetailDTO
.
ScheduleConfig
();
config
.
setAssig
i
nStrategy
(
teamEntity
.
getStrategyAppointment
())
config
.
setAssignStrategy
(
teamEntity
.
getStrategyAppointment
())
.
setCutoffTime
(
teamEntity
.
getCuteOff
())
.
setTransportMode
(
teamEntity
.
getTransportMode
())
.
setScheduleStrategy
(
teamEntity
.
getStrategySchedule
())
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment