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 b9067e24
authored
Jun 08, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重命名
1 parent
83f7e9b2
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
60 additions
and
59 deletions
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/EngineerBusinessDao.java → project-order/src/main/java/com/alibaba/cloud/integration/order/dao/EngineerBusinessMPDao.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/EngineerInfoDao.java → project-order/src/main/java/com/alibaba/cloud/integration/order/dao/EngineerInfoMPDao.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/EngineerSkillDao.java → project-order/src/main/java/com/alibaba/cloud/integration/order/dao/EngineerSkillMPDao.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/EngineerTimelineDao.java → project-order/src/main/java/com/alibaba/cloud/integration/order/dao/EngineerTimelineMPDao.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderAppointmentDao.java → project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderAppointmentMPDao.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderEventDao.java → project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderEventMPDao.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderRequestDao.java → project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderRequestMPDao.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderTimelineDao.java → project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderTimelineMPDao.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrgBranchDao.java → project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrgBranchMPDao.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrgClusterDao.java → project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrgClusterMPDao.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrgGroupDao.java → project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrgGroupMPDao.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/ProductCategory2Dao.java → project-order/src/main/java/com/alibaba/cloud/integration/order/dao/ProductCategoryMPDao.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/WarehouseInfoDao.java → project-order/src/main/java/com/alibaba/cloud/integration/order/dao/WarehouseInfoMPDao.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/EngineerServiceImpl.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/EnginnerTimelineServiceImpl.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/OrderServiceDetailImpl.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/OrderServiceListServiceImpl.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/ProductCategoryServiceImpl.java
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/EngineerBusinessDao.java
→
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/EngineerBusiness
MP
Dao.java
View file @
b9067e2
...
...
@@ -5,5 +5,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
EngineerBusinessDao
extends
BaseMapper
<
EngineerBusiness
>
{
public
interface
EngineerBusiness
MP
Dao
extends
BaseMapper
<
EngineerBusiness
>
{
}
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/EngineerInfoDao.java
→
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/EngineerInfo
MP
Dao.java
View file @
b9067e2
...
...
@@ -5,6 +5,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
EngineerInfoDao
extends
BaseMapper
<
EngineerInfo
>
{
public
interface
EngineerInfo
MP
Dao
extends
BaseMapper
<
EngineerInfo
>
{
}
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/EngineerSkillDao.java
→
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/EngineerSkill
MP
Dao.java
View file @
b9067e2
...
...
@@ -5,5 +5,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
EngineerSkillDao
extends
BaseMapper
<
EngineerSkill
>
{
public
interface
EngineerSkill
MP
Dao
extends
BaseMapper
<
EngineerSkill
>
{
}
\ No newline at end of file
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/EngineerTimelineDao.java
→
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/EngineerTimeline
MP
Dao.java
View file @
b9067e2
...
...
@@ -5,5 +5,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
EngineerTimelineDao
extends
BaseMapper
<
EngineerTimeline
>
{
public
interface
EngineerTimeline
MP
Dao
extends
BaseMapper
<
EngineerTimeline
>
{
}
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderAppointmentDao.java
→
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderAppointment
MP
Dao.java
View file @
b9067e2
...
...
@@ -5,5 +5,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
OrderAppointmentDao
extends
BaseMapper
<
OrderAppointment
>
{
public
interface
OrderAppointment
MP
Dao
extends
BaseMapper
<
OrderAppointment
>
{
}
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderEventDao.java
→
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderEvent
MP
Dao.java
View file @
b9067e2
...
...
@@ -5,5 +5,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
OrderEventDao
extends
BaseMapper
<
OrderEvent
>
{
public
interface
OrderEvent
MP
Dao
extends
BaseMapper
<
OrderEvent
>
{
}
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderRequestDao.java
→
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderRequest
MP
Dao.java
View file @
b9067e2
...
...
@@ -5,5 +5,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
OrderRequestDao
extends
BaseMapper
<
OrderRequest
>
{
public
interface
OrderRequest
MP
Dao
extends
BaseMapper
<
OrderRequest
>
{
}
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderTimelineDao.java
→
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrderTimeline
MP
Dao.java
View file @
b9067e2
...
...
@@ -5,5 +5,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
OrderTimelineDao
extends
BaseMapper
<
OrderTimeline
>
{
public
interface
OrderTimeline
MP
Dao
extends
BaseMapper
<
OrderTimeline
>
{
}
\ No newline at end of file
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrgBranchDao.java
→
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrgBranch
MP
Dao.java
View file @
b9067e2
...
...
@@ -5,5 +5,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
OrgBranchDao
extends
BaseMapper
<
OrgBranch
>
{
public
interface
OrgBranch
MP
Dao
extends
BaseMapper
<
OrgBranch
>
{
}
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrgClusterDao.java
→
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrgCluster
MP
Dao.java
View file @
b9067e2
...
...
@@ -5,5 +5,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
OrgClusterDao
extends
BaseMapper
<
OrgCluster
>
{
public
interface
OrgCluster
MP
Dao
extends
BaseMapper
<
OrgCluster
>
{
}
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrgGroupDao.java
→
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/OrgGroup
MP
Dao.java
View file @
b9067e2
...
...
@@ -5,5 +5,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
OrgGroupDao
extends
BaseMapper
<
OrgGroup
>
{
public
interface
OrgGroup
MP
Dao
extends
BaseMapper
<
OrgGroup
>
{
}
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/ProductCategory
2
Dao.java
→
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/ProductCategory
MP
Dao.java
View file @
b9067e2
...
...
@@ -5,5 +5,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
ProductCategory
2
Dao
extends
BaseMapper
<
ProductCategory
>
{
public
interface
ProductCategory
MP
Dao
extends
BaseMapper
<
ProductCategory
>
{
}
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/WarehouseInfoDao.java
→
project-order/src/main/java/com/alibaba/cloud/integration/order/dao/WarehouseInfo
MP
Dao.java
View file @
b9067e2
...
...
@@ -5,5 +5,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import
org.apache.ibatis.annotations.Mapper
;
@Mapper
public
interface
WarehouseInfoDao
extends
BaseMapper
<
WarehouseInfo
>
{
public
interface
WarehouseInfo
MP
Dao
extends
BaseMapper
<
WarehouseInfo
>
{
}
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/EngineerServiceImpl.java
View file @
b9067e2
...
...
@@ -23,16 +23,16 @@ import java.util.stream.Collectors;
public
class
EngineerServiceImpl
implements
EngineerService
{
@Autowired
private
EngineerInfo
Dao
engineerInfo
Dao
;
private
EngineerInfo
MPDao
engineerInfoMP
Dao
;
@Autowired
private
EngineerSkill
Dao
engineerSkill
Dao
;
private
EngineerSkill
MPDao
engineerSkillMP
Dao
;
@Autowired
private
OrgGroup
Dao
orgGroup
Dao
;
private
OrgGroup
MPDao
orgGroupMP
Dao
;
@Autowired
private
EngineerBusinessDao
engineerBusinessDao
;
private
EngineerBusiness
MP
Dao
engineerBusinessDao
;
@Transactional
@Override
...
...
@@ -111,7 +111,7 @@ public class EngineerServiceImpl implements EngineerService {
// 先将所有技能更新为0-不可用状态
LambdaUpdateWrapper
<
EngineerSkill
>
wrapper
=
new
LambdaUpdateWrapper
<>();
wrapper
.
eq
(
EngineerSkill:
:
getEngineerCode
,
engineerCode
).
set
(
EngineerSkill:
:
getStatus
,
0
);
engineerSkillDao
.
update
(
null
,
wrapper
);
engineerSkill
MP
Dao
.
update
(
null
,
wrapper
);
if
(
categoryIds
.
isEmpty
()){
return
null
;
}
...
...
@@ -120,7 +120,7 @@ public class EngineerServiceImpl implements EngineerService {
wrapper
.
eq
(
EngineerSkill:
:
getEngineerCode
,
engineerCode
);
wrapper
.
in
(
EngineerSkill:
:
getCategoryId
,
categoryIds
);
wrapper
.
set
(
EngineerSkill:
:
getStatus
,
1
);
int
n
=
engineerSkillDao
.
update
(
null
,
wrapper
);
int
n
=
engineerSkill
MP
Dao
.
update
(
null
,
wrapper
);
if
(
categoryIds
.
size
()
==
n
)
{
// 更新记录条数等于提交记录条数
return
null
;
...
...
@@ -139,7 +139,7 @@ public class EngineerServiceImpl implements EngineerService {
e
.
setEngineerCode
(
engineerCode
);
e
.
setCategoryId
(
categoryId
);
e
.
setStatus
(
1
);
engineerSkillDao
.
insert
(
e
);
engineerSkill
MP
Dao
.
insert
(
e
);
}
return
null
;
}
...
...
@@ -242,7 +242,7 @@ public class EngineerServiceImpl implements EngineerService {
lqw
.
orderByAsc
(
EngineerInfo:
:
getEngineerCode
);
IPage
<
EngineerInfo
>
pg
=
new
Page
(
page
,
size
);
engineerInfoDao
.
selectPage
(
pg
,
lqw
);
engineerInfo
MP
Dao
.
selectPage
(
pg
,
lqw
);
return
pg
;
}
...
...
@@ -256,7 +256,7 @@ public class EngineerServiceImpl implements EngineerService {
LambdaQueryWrapper
<
OrgGroup
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
select
(
OrgGroup:
:
getGroupId
,
OrgGroup:
:
getGroupName
);
lqw
.
in
(
OrgGroup:
:
getGroupId
,
groupIds
);
List
<
OrgGroup
>
groups
=
orgGroupDao
.
selectList
(
lqw
);
List
<
OrgGroup
>
groups
=
orgGroup
MP
Dao
.
selectList
(
lqw
);
for
(
OrgGroup
g:
groups
)
{
map
.
put
(
g
.
getGroupId
(),
g
.
getGroupName
());
}
...
...
@@ -273,7 +273,7 @@ public class EngineerServiceImpl implements EngineerService {
LambdaQueryWrapper
<
EngineerSkill
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
in
(
EngineerSkill:
:
getEngineerCode
,
engineerCodes
);
lqw
.
in
(
EngineerSkill:
:
getStatus
,
statuses
);
List
<
EngineerSkill
>
records
=
engineerSkillDao
.
selectList
(
lqw
);
List
<
EngineerSkill
>
records
=
engineerSkill
MP
Dao
.
selectList
(
lqw
);
Comparator
<
EngineerSkill
>
ec
=
Comparator
.
comparing
(
EngineerSkill:
:
getEngineerCode
,
String
.
CASE_INSENSITIVE_ORDER
);
List
<
EngineerSkill
>
results
=
records
.
stream
().
sorted
(
ec
).
collect
(
Collectors
.
toList
());
...
...
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/EnginnerTimelineServiceImpl.java
View file @
b9067e2
...
...
@@ -21,22 +21,22 @@ import java.util.stream.Stream;
public
class
EnginnerTimelineServiceImpl
implements
EnginnerTimelineService
{
@Autowired
private
EngineerTimeline
Dao
engineerTimeline
Dao
;
private
EngineerTimeline
MPDao
engineerTimelineMP
Dao
;
@Autowired
private
OrderAppointment
Dao
orderAppointment
Dao
;
private
OrderAppointment
MPDao
orderAppointmentMP
Dao
;
@Autowired
private
EngineerInfo
Dao
engineerInfo
Dao
;
private
EngineerInfo
MPDao
engineerInfoMP
Dao
;
@Autowired
private
OrderRequest
Dao
orderRequest
Dao
;
private
OrderRequest
MPDao
orderRequestMP
Dao
;
@Autowired
private
WarehouseInfo
Dao
warehouseInfo
Dao
;
private
WarehouseInfo
MPDao
warehouseInfoMP
Dao
;
@Autowired
private
OrgGroup
Dao
orgGroup
Dao
;
private
OrgGroup
MPDao
orgGroupMP
Dao
;
@Transactional
@Override
...
...
@@ -72,7 +72,7 @@ public class EnginnerTimelineServiceImpl implements EnginnerTimelineService {
private
String
GetEnginnerName
(
String
enginerrCode
){
LambdaQueryWrapper
<
EngineerInfo
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
EngineerInfo:
:
getEngineerCode
,
enginerrCode
);
EngineerInfo
e
=
engineerInfoDao
.
selectOne
(
lqw
);
EngineerInfo
e
=
engineerInfo
MP
Dao
.
selectOne
(
lqw
);
return
e
.
getName
();
}
...
...
@@ -82,7 +82,7 @@ public class EnginnerTimelineServiceImpl implements EnginnerTimelineService {
lqw
.
eq
(
OrderAppointment:
:
getEngineerCode
,
engineerCode
);
lqw
.
ge
(
OrderAppointment:
:
getExpectTime
,
date
+
" 00:00:00"
);
lqw
.
le
(
OrderAppointment:
:
getExpectTime
,
date
+
" 23:59:59"
);
return
orderAppointmentDao
.
selectList
(
lqw
);
return
orderAppointment
MP
Dao
.
selectList
(
lqw
);
}
private
List
<
EngineerTimeline
>
EnginnerTimelines
(
String
engineerCode
,
String
date
){
...
...
@@ -93,7 +93,7 @@ public class EnginnerTimelineServiceImpl implements EnginnerTimelineService {
lqw
.
ge
(
EngineerTimeline:
:
getHappen
,
date
+
" 00:00:00"
);
lqw
.
le
(
EngineerTimeline:
:
getHappen
,
date
+
" 23:59:59"
);
lqw
.
in
(
EngineerTimeline:
:
getEvent
,
events
);
return
engineerTimelineDao
.
selectList
(
lqw
);
return
engineerTimeline
MP
Dao
.
selectList
(
lqw
);
}
private
HashMap
<
String
,
String
>
OrderRequestsLocation
(
List
<
String
>
orderIds
)
{
...
...
@@ -102,7 +102,7 @@ public class EnginnerTimelineServiceImpl implements EnginnerTimelineService {
HashMap
<
String
,
String
>
map
=
new
HashMap
<>();
LambdaQueryWrapper
<
OrderRequest
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
in
(
OrderRequest:
:
getOrderId
,
orderIds
);
List
<
OrderRequest
>
orders
=
orderRequestDao
.
selectList
(
lqw
);
List
<
OrderRequest
>
orders
=
orderRequest
MP
Dao
.
selectList
(
lqw
);
for
(
OrderRequest
o:
orders
){
map
.
put
(
o
.
getOrderId
(),
String
.
format
(
"%s,%s"
,
o
.
getX
(),
o
.
getY
()));
}
...
...
@@ -113,7 +113,7 @@ public class EnginnerTimelineServiceImpl implements EnginnerTimelineService {
// 获取配送站location
LambdaQueryWrapper
<
WarehouseInfo
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
WarehouseInfo:
:
getBranchId
,
branchId
);
WarehouseInfo
w
=
warehouseInfoDao
.
selectOne
(
lqw
);
WarehouseInfo
w
=
warehouseInfo
MP
Dao
.
selectOne
(
lqw
);
return
String
.
format
(
"%s,%s"
,
w
.
getX
(),
w
.
getY
());
}
...
...
@@ -121,7 +121,7 @@ public class EnginnerTimelineServiceImpl implements EnginnerTimelineService {
LambdaQueryWrapper
<
EngineerInfo
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
select
(
EngineerInfo:
:
getGroupId
);
lqw
.
eq
(
EngineerInfo:
:
getEngineerCode
,
engineerCode
);
EngineerInfo
e
=
engineerInfoDao
.
selectOne
(
lqw
);
EngineerInfo
e
=
engineerInfo
MP
Dao
.
selectOne
(
lqw
);
if
(
e
==
null
)
{
return
""
;
}
...
...
@@ -129,7 +129,7 @@ public class EnginnerTimelineServiceImpl implements EnginnerTimelineService {
LambdaQueryWrapper
<
OrgGroup
>
lqw2
=
new
LambdaQueryWrapper
<>();
lqw2
.
select
(
OrgGroup:
:
getBranchId
);
lqw2
.
eq
(
OrgGroup:
:
getGroupId
,
e
.
getGroupId
());
OrgGroup
g
=
orgGroupDao
.
selectOne
(
lqw2
);
OrgGroup
g
=
orgGroup
MP
Dao
.
selectOne
(
lqw2
);
return
(
g
==
null
)?
""
:
g
.
getBranchId
();
}
...
...
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/OrderServiceDetailImpl.java
View file @
b9067e2
...
...
@@ -19,22 +19,22 @@ import java.util.stream.Collectors;
public
class
OrderServiceDetailImpl
implements
OrderServiceDetail
{
@Autowired
private
OrderRequest
Dao
orderRequest
Dao
;
private
OrderRequest
MPDao
orderRequestMP
Dao
;
@Autowired
private
OrderAppointment
Dao
orderAppointment
Dao
;
private
OrderAppointment
MPDao
orderAppointmentMP
Dao
;
@Autowired
private
EngineerSkill
Dao
engineerSkill
Dao
;
private
EngineerSkill
MPDao
engineerSkillMP
Dao
;
@Autowired
private
EngineerInfo
Dao
engineerInfo
Dao
;
private
EngineerInfo
MPDao
engineerInfoMP
Dao
;
@Autowired
private
OrderTimeline
Dao
orderTimeline
Dao
;
private
OrderTimeline
MPDao
orderTimelineMP
Dao
;
@Autowired
private
OrderEvent
Dao
orderEvent
Dao
;
private
OrderEvent
MPDao
orderEventMP
Dao
;
@Transactional
@Override
...
...
@@ -140,20 +140,20 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
// 获取服务单记录
LambdaQueryWrapper
<
OrderRequest
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
OrderRequest:
:
getOrderId
,
orderId
);
return
orderRequestDao
.
selectOne
(
lqw
);
return
orderRequest
MP
Dao
.
selectOne
(
lqw
);
}
private
List
<
OrderAppointment
>
queryOrderAppointments
(
String
orderId
)
{
// 获取指派单记录列表
LambdaQueryWrapper
<
OrderAppointment
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
OrderAppointment:
:
getOrderId
,
orderId
);
return
orderAppointmentDao
.
selectList
(
lqw
);
return
orderAppointment
MP
Dao
.
selectList
(
lqw
);
}
private
List
<
OrderEvent
>
queryOrderEvents
(
String
orderId
)
{
LambdaQueryWrapper
<
OrderEvent
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
OrderEvent:
:
getOrderId
,
orderId
);
return
orderEventDao
.
selectList
(
lqw
);
return
orderEvent
MP
Dao
.
selectList
(
lqw
);
}
private
HashMap
<
String
,
EngineerInfo
>
getEngineerInfos
(
List
<
String
>
egCodes
){
...
...
@@ -162,7 +162,7 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
LambdaQueryWrapper
<
EngineerInfo
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
in
(
EngineerInfo:
:
getEngineerCode
,
egCodes
);
List
<
EngineerInfo
>
rows
=
engineerInfoDao
.
selectList
(
lqw
);
List
<
EngineerInfo
>
rows
=
engineerInfo
MP
Dao
.
selectList
(
lqw
);
for
(
EngineerInfo
row:
rows
){
map
.
put
(
row
.
getEngineerCode
(),
row
);
...
...
@@ -177,7 +177,7 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
LambdaQueryWrapper
<
EngineerSkill
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
in
(
EngineerSkill:
:
getEngineerCode
,
egCodes
);
List
<
EngineerSkill
>
rows
=
engineerSkillDao
.
selectList
(
lqw
);
List
<
EngineerSkill
>
rows
=
engineerSkill
MP
Dao
.
selectList
(
lqw
);
for
(
EngineerSkill
row:
rows
){
map
.
put
(
row
.
getEngineerCode
(),
row
);
...
...
@@ -190,7 +190,7 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
LambdaQueryWrapper
<
OrderTimeline
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
OrderTimeline:
:
getOrderId
,
orderId
);
List
<
OrderTimeline
>
timelines
=
orderTimelineDao
.
selectList
(
lqw
);
List
<
OrderTimeline
>
timelines
=
orderTimeline
MP
Dao
.
selectList
(
lqw
);
// 根据subOrderId + happend字段排序
Comparator
<
OrderTimeline
>
sb
=
Comparator
.
comparing
(
OrderTimeline:
:
getSuborderId
,
String
.
CASE_INSENSITIVE_ORDER
);
...
...
@@ -224,7 +224,7 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
items
.
add
(
this
.
packEngineer
(
"性别/年龄:"
,
eg
.
getGender
()+
"/"
+
age
,
""
));
items
.
add
(
this
.
packEngineer
(
"手机号:"
,
eg
.
getPhone
(),
""
));
items
.
add
(
this
.
packEngineer
(
"工号:"
,
eg
.
getEngineerCode
(),
""
));
items
.
add
(
this
.
packEngineer
(
"技能:"
,
skill
.
getSkill
(),
""
));
items
.
add
(
this
.
packEngineer
(
"技能:"
,
"TODO"
,
""
));
// TODO
return
items
;
}
...
...
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/OrderServiceListServiceImpl.java
View file @
b9067e2
...
...
@@ -3,15 +3,14 @@ package com.alibaba.cloud.integration.order.service.impl;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.alibaba.cloud.integration.common.BusinessException
;
import
com.alibaba.cloud.integration.common.Result
;
import
com.alibaba.cloud.integration.order.dao.OrderAppointmentDao
;
import
com.alibaba.cloud.integration.order.dao.OrderRequestDao
;
import
com.alibaba.cloud.integration.order.dao.OrderAppointment
MP
Dao
;
import
com.alibaba.cloud.integration.order.dao.OrderRequest
MP
Dao
;
import
com.alibaba.cloud.integration.order.dto.OrderServiceList
;
import
com.alibaba.cloud.integration.order.dto.OrderServiceListResp
;
import
com.alibaba.cloud.integration.order.entity.OrderAppointment
;
import
com.alibaba.cloud.integration.order.entity.OrderRequest
;
import
com.alibaba.cloud.integration.order.service.OrderServiceListService
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.apache.logging.log4j.util.Strings
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -27,10 +26,10 @@ import java.util.stream.Collectors;
public
class
OrderServiceListServiceImpl
implements
OrderServiceListService
{
@Autowired
private
OrderRequest
Dao
orderRequest
Dao
;
private
OrderRequest
MPDao
orderRequestMP
Dao
;
@Autowired
private
OrderAppointment
Dao
orderAppointment
Dao
;
private
OrderAppointment
MPDao
orderAppointmentMP
Dao
;
@Transactional
@Override
...
...
@@ -51,7 +50,7 @@ public class OrderServiceListServiceImpl implements OrderServiceListService {
lqw
.
eq
(
Strings
.
isNotEmpty
(
skill
),
OrderRequest:
:
getSkill
,
skill
);
//技能
// 查询工单表列表
orderRequestDao
.
selectPage
(
pg
,
lqw
);
orderRequest
MP
Dao
.
selectPage
(
pg
,
lqw
);
List
<
OrderRequest
>
records
=
pg
.
getRecords
();
...
...
@@ -112,7 +111,7 @@ public class OrderServiceListServiceImpl implements OrderServiceListService {
}
LambdaQueryWrapper
<
OrderAppointment
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
in
(
OrderAppointment:
:
getOrderId
,
orderIds
);
return
orderAppointmentDao
.
selectList
(
lqw
);
return
orderAppointment
MP
Dao
.
selectList
(
lqw
);
}
...
...
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/ProductCategoryServiceImpl.java
View file @
b9067e2
package
com
.
alibaba
.
cloud
.
integration
.
order
.
service
.
impl
;
import
com.alibaba.cloud.integration.common.Result
;
import
com.alibaba.cloud.integration.order.dao.ProductCategory
2
Dao
;
import
com.alibaba.cloud.integration.order.dao.ProductCategory
MP
Dao
;
import
com.alibaba.cloud.integration.order.dto.ProductCategoryResp
;
import
com.alibaba.cloud.integration.order.entity.ProductCategory
;
import
com.alibaba.cloud.integration.order.service.ProductCategoryService
;
...
...
@@ -18,14 +18,14 @@ import java.util.stream.Collectors;
public
class
ProductCategoryServiceImpl
implements
ProductCategoryService
{
@Autowired
private
ProductCategory
2Dao
productCategory2
Dao
;
private
ProductCategory
MPDao
productCategoryMP
Dao
;
@Transactional
@Override
public
Result
<?>
getProductCategory
()
{
// 查询所有记录
List
<
ProductCategory
>
records
=
productCategory
2
Dao
.
selectList
(
null
);
List
<
ProductCategory
>
records
=
productCategory
MP
Dao
.
selectList
(
null
);
// 排序brand+type+skill
Comparator
<
ProductCategory
>
byBrand
=
Comparator
.
comparing
(
ProductCategory:
:
getBrand
);
...
...
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