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 a87f4757
authored
Jun 21, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
复印mp
1 parent
4bd3ec8b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
19 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/DispatchServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/DispatchServiceImpl.java
View file @
a87f475
...
...
@@ -206,7 +206,7 @@ public class DispatchServiceImpl implements DispatchService {
public
Result
<?>
dispatchOrderConfirm
(
String
engineerCode
,
List
<
String
>
orderIds
)
throws
BusinessException
{
// 派工台确认派单
EngineerInfo
engineer
=
this
.
queryEngineer
(
engineerCode
);
EngineerInfo
engineer
=
engineerInfoMPDao
.
getByEngineerCode
(
engineerCode
);
if
(
engineer
==
null
)
{
throw
new
BusinessException
(
"技术员不存在"
);
}
...
...
@@ -313,12 +313,6 @@ public class DispatchServiceImpl implements DispatchService {
return
engineerInfoMPDao
.
selectList
(
lqw
);
}
private
EngineerInfo
queryEngineer
(
String
engineerCode
)
{
LambdaQueryWrapper
<
EngineerInfo
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
EngineerInfo:
:
getEngineerCode
,
engineerCode
);
return
engineerInfoMPDao
.
selectOne
(
lqw
);
}
private
List
<
String
>
queryOrgGroupIds
(
String
levelType
,
List
<
String
>
levelIds
)
{
LambdaQueryWrapper
<
OrgGroup
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
in
(
levelType
.
equals
(
"cluster"
),
OrgGroup:
:
getClusterId
,
levelIds
);
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerServiceImpl.java
View file @
a87f475
...
...
@@ -17,9 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.sql.Timestamp
;
import
java.text.SimpleDateFormat
;
import
java.time.format.DateTimeFormatter
;
import
java.util.*
;
import
java.util.stream.Collectors
;
...
...
@@ -81,7 +79,7 @@ public class EngineerServiceImpl implements EngineerService {
// 获取技术员基础信息详情
// 获取技术员列表
List
<
EngineerInfo
>
records
=
this
.
queryEngineerInfos
(
engineerCode
);
List
<
EngineerInfo
>
records
=
engineerInfoMPDao
.
selectByEngineerCode
(
engineerCode
);
if
(
records
.
isEmpty
())
{
throw
new
BusinessException
(
"技术员不存在"
);
}
...
...
@@ -115,7 +113,7 @@ public class EngineerServiceImpl implements EngineerService {
@Override
public
Result
<?>
getEngineerSkillDetail
(
String
engineerCode
)
throws
BusinessException
{
// 获取工程师技能详情
List
<
EngineerInfo
>
engineers
=
this
.
queryEngineerInfos
(
engineerCode
);
List
<
EngineerInfo
>
engineers
=
engineerInfoMPDao
.
selectByEngineerCode
(
engineerCode
);
if
(
engineers
.
isEmpty
())
{
throw
new
BusinessException
(
"技术员不存在"
);
}
...
...
@@ -189,7 +187,7 @@ public class EngineerServiceImpl implements EngineerService {
@Override
public
Result
<?>
getEngineerBusinessDetail
(
String
engineerCode
)
{
// 获取技术员业务熟悉详情
List
<
EngineerInfo
>
engineers
=
this
.
queryEngineerInfos
(
engineerCode
);
List
<
EngineerInfo
>
engineers
=
engineerInfoMPDao
.
selectByEngineerCode
(
engineerCode
);
if
(
engineers
.
isEmpty
())
{
throw
new
BusinessException
(
"技术员不存在"
);
}
...
...
@@ -240,13 +238,6 @@ public class EngineerServiceImpl implements EngineerService {
return
pg
;
}
private
List
<
EngineerInfo
>
queryEngineerInfos
(
String
engineerCode
)
{
// 分页查询工程师基础信息
LambdaQueryWrapper
<
EngineerInfo
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
EngineerInfo:
:
getEngineerCode
,
engineerCode
);
return
engineerInfoMPDao
.
selectList
(
lqw
);
}
private
HashMap
<
String
,
String
>
queryGroupNames
(
List
<
String
>
groupIds
)
{
//查询小组名称映射关系
HashMap
<
String
,
String
>
map
=
new
HashMap
<>();
...
...
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