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 7abce3a6
authored
Nov 15, 2023
by
huangjinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:甘特图取消筛选工程师
1 parent
a4e18180
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
18 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerGanttServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderAssignImpl.java
project-user/src/main/java/com/dituhui/pea/user/service/UserService.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerGanttServiceImpl.java
View file @
7abce3a
...
@@ -180,19 +180,19 @@ public class EngineerGanttServiceImpl implements EngineerGanttService {
...
@@ -180,19 +180,19 @@ public class EngineerGanttServiceImpl implements EngineerGanttService {
// 最后,还需要根据key进行过滤(需要结合数据库表)
// 最后,还需要根据key进行过滤(需要结合数据库表)
engineerCodes
=
engineerUtils
.
filterEngineersByKey
(
engineerCodes
,
key
).
stream
().
map
(
EngineerInfoEntity:
:
getEngineerCode
).
collect
(
Collectors
.
toList
());
engineerCodes
=
engineerUtils
.
filterEngineersByKey
(
engineerCodes
,
key
).
stream
().
map
(
EngineerInfoEntity:
:
getEngineerCode
).
collect
(
Collectors
.
toList
());
}
}
if
(
CollectionUtils
.
isNotEmpty
(
orderIds
))
{
//
if (CollectionUtils.isNotEmpty(orderIds)) {
List
<
OrderInfoEntity
>
infoEntities
=
orderInfoDao
.
findAllByOrderIdIn
(
orderIds
);
//
List<OrderInfoEntity> infoEntities = orderInfoDao.findAllByOrderIdIn(orderIds);
Set
<
String
>
skillGroupCodes
=
Sets
.
newConcurrentHashSet
();
//
Set<String> skillGroupCodes = Sets.newConcurrentHashSet();
for
(
OrderInfoEntity
orderInfo
:
infoEntities
)
{
//
for (OrderInfoEntity orderInfo : infoEntities) {
//查询对应的技能信息
//
//查询对应的技能信息
SkillInfoEntity
skill
=
skillInfoDao
.
getByBrandAndTypeAndSkill
(
orderInfo
.
getBrand
(),
orderInfo
.
getType
(),
orderInfo
.
getSkill
());
//
SkillInfoEntity skill = skillInfoDao.getByBrandAndTypeAndSkill(orderInfo.getBrand(), orderInfo.getType(), orderInfo.getSkill());
if
(
Objects
.
isNull
(
skill
))
{
//
if (Objects.isNull(skill)) {
throw
new
BusinessException
(
"查询不到对应的技能组信息:"
+
String
.
join
(
","
,
orderInfo
.
getType
(),
orderInfo
.
getSkill
()));
//
throw new BusinessException("查询不到对应的技能组信息:" + String.join(",", orderInfo.getType(), orderInfo.getSkill()));
}
//
}
skillGroupCodes
.
add
(
skill
.
getSkillGroupCode
());
//
skillGroupCodes.add(skill.getSkillGroupCode());
}
//
}
engineerCodes
=
engineerInfoDao
.
findByEngineerCodesBySkillCodes
(
engineerCodes
,
skillGroupCodes
);
//
engineerCodes = engineerInfoDao.findByEngineerCodesBySkillCodes(engineerCodes, skillGroupCodes);
}
//
}
return
engineerCodes
;
return
engineerCodes
;
}
}
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderAssignImpl.java
View file @
7abce3a
...
@@ -206,16 +206,15 @@ public class OrderAssignImpl implements OrderAssign {
...
@@ -206,16 +206,15 @@ public class OrderAssignImpl implements OrderAssign {
OrgTeamEntity
orgTeam
=
orgTeamDao
.
getByTeamId
(
order
.
getOrgTeamId
());
OrgTeamEntity
orgTeam
=
orgTeamDao
.
getByTeamId
(
order
.
getOrgTeamId
());
// 判断cutoff
// 判断cutoff
Integer
cutoff
=
CommonUtil
.
isCutoff
(
order
.
getExpectTimeBegin
(),
orgTeam
.
getWorkOff
());
Integer
cutoff
=
CommonUtil
.
isCutoff
(
order
.
getExpectTimeBegin
(),
orgTeam
.
getWorkOff
());
order
.
setAppointmentStatus
(
OrderFlowEnum
.
INIT
.
name
());
order
.
setServiceStatus
(
OrderFlowEnum
.
INIT
.
name
());
if
(
cutoff
>
0
)
{
if
(
cutoff
>
0
)
{
// cutoff更新order_request表为人工指派
// cutoff更新order_request表为人工指派
order
.
setAppointmentStatus
(
AppointmentMethodEnum
.
MANUAL
.
name
());
order
.
setAppointmentMethod
(
AppointmentMethodEnum
.
MANUAL
.
name
());
order
.
setServiceStatus
(
OrderFlowEnum
.
INIT
.
name
());
order
=
OrderUtil
.
handleErrorOrder
(
order
);
order
=
OrderUtil
.
handleErrorOrder
(
order
);
order
.
setIsCutoff
(
cutoff
);
order
.
setIsCutoff
(
cutoff
);
}
else
{
}
else
{
// 更新order_request表为未指派
// 更新order_request表为未指派
order
.
setAppointmentStatus
(
OrderFlowEnum
.
INIT
.
name
());
order
.
setServiceStatus
(
OrderFlowEnum
.
INIT
.
name
());
order
=
OrderUtil
.
handleErrorOrder2
(
order
);
order
=
OrderUtil
.
handleErrorOrder2
(
order
);
}
}
orderInfoDao
.
save
(
order
);
orderInfoDao
.
save
(
order
);
...
...
project-user/src/main/java/com/dituhui/pea/user/service/UserService.java
View file @
7abce3a
...
@@ -909,7 +909,7 @@ public class UserService {
...
@@ -909,7 +909,7 @@ public class UserService {
}
}
byUserId
.
forEach
(
e
->
{
byUserId
.
forEach
(
e
->
{
OrgInfo
orgInfo
=
new
OrgInfo
();
OrgInfo
orgInfo
=
new
OrgInfo
();
orgInfo
.
setId
(
e
.
getId
());
orgInfo
.
setId
(
e
.
get
Org
Id
());
orgInfo
.
setOrgLevel
(
e
.
getOrgLevel
());
orgInfo
.
setOrgLevel
(
e
.
getOrgLevel
());
orgInfos
.
add
(
orgInfo
);
orgInfos
.
add
(
orgInfo
);
});
});
...
...
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