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 1b09a8d7
authored
Jul 24, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
切换到order_info表
1 parent
0accb61e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/WorkbenchServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/WorkbenchServiceImpl.java
View file @
1b09a8d
...
...
@@ -7,6 +7,7 @@ import com.dituhui.pea.order.dao.*;
import
com.dituhui.pea.order.dto.OrderChangeListDTO
;
import
com.dituhui.pea.order.dto.WorkbenchSummaryResp
;
import
com.dituhui.pea.order.entity.OrderEventEntity
;
import
com.dituhui.pea.order.entity.OrderInfo
;
import
com.dituhui.pea.order.entity.OrderRequest
;
import
com.dituhui.pea.order.entity.OrderRequestEntity
;
import
com.dituhui.pea.order.service.WorkbenchService
;
...
...
@@ -40,7 +41,7 @@ public class WorkbenchServiceImpl implements WorkbenchService {
private
OrderEventDao
orderEventDao
;
@Autowired
private
Order
RequestMPDao
orderRequest
MPDao
;
private
Order
InfoMPDao
orderInfo
MPDao
;
@Override
public
Result
<?>
getOrderChangeList
(
OrderChangeListDTO
.
Request
reqDTO
)
{
...
...
@@ -98,27 +99,27 @@ public class WorkbenchServiceImpl implements WorkbenchService {
}
private
List
<
Map
<
String
,
Object
>>
queryCountByAppointmentMethod
(
String
levelType
,
String
levelValue
,
LocalDate
dt
)
{
QueryWrapper
<
Order
Request
>
wrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
Order
Info
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
select
(
"appointment_method, appointment_status, COUNT(*) as count"
)
.
lambda
()
.
eq
(
Order
Request
:
:
getDt
,
dt
)
.
eq
(
levelType
.
equals
(
"cluster"
),
Order
Request
:
:
getOrgClusterId
,
levelValue
)
.
eq
(
levelType
.
equals
(
"branch"
),
Order
Request
:
:
getOrgBranchId
,
levelValue
)
.
eq
(
levelType
.
equals
(
"group"
),
Order
Request
:
:
getOrgGroupId
,
levelValue
)
.
groupBy
(
Order
Request:
:
getAppointmentMethod
,
OrderRequest
:
:
getAppointmentStatus
);
return
order
Request
MPDao
.
selectMaps
(
wrapper
);
.
eq
(
Order
Info
:
:
getDt
,
dt
)
.
eq
(
levelType
.
equals
(
"cluster"
),
Order
Info
:
:
getOrgClusterId
,
levelValue
)
.
eq
(
levelType
.
equals
(
"branch"
),
Order
Info
:
:
getOrgBranchId
,
levelValue
)
.
eq
(
levelType
.
equals
(
"group"
),
Order
Info
:
:
getOrgGroupId
,
levelValue
)
.
groupBy
(
Order
Info:
:
getAppointmentMethod
,
OrderInfo
:
:
getAppointmentStatus
);
return
order
Info
MPDao
.
selectMaps
(
wrapper
);
}
private
List
<
Map
<
String
,
Object
>>
queryCountByOrderStatus
(
String
levelType
,
String
levelValue
,
LocalDate
dt
)
{
QueryWrapper
<
Order
Request
>
wrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
Order
Info
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
select
(
"appointment_status, COUNT(*) as count"
)
.
lambda
()
.
eq
(
Order
Request
:
:
getDt
,
dt
)
.
eq
(
levelType
.
equals
(
"cluster"
),
Order
Request
:
:
getOrgClusterId
,
levelValue
)
.
eq
(
levelType
.
equals
(
"branch"
),
Order
Request
:
:
getOrgBranchId
,
levelValue
)
.
eq
(
levelType
.
equals
(
"group"
),
Order
Request
:
:
getOrgGroupId
,
levelValue
)
.
groupBy
(
Order
Request
:
:
getAppointmentStatus
);
return
order
Request
MPDao
.
selectMaps
(
wrapper
);
.
eq
(
Order
Info
:
:
getDt
,
dt
)
.
eq
(
levelType
.
equals
(
"cluster"
),
Order
Info
:
:
getOrgClusterId
,
levelValue
)
.
eq
(
levelType
.
equals
(
"branch"
),
Order
Info
:
:
getOrgBranchId
,
levelValue
)
.
eq
(
levelType
.
equals
(
"group"
),
Order
Info
:
:
getOrgGroupId
,
levelValue
)
.
groupBy
(
Order
Info
:
:
getAppointmentStatus
);
return
order
Info
MPDao
.
selectMaps
(
wrapper
);
}
private
HashMap
<
String
,
Long
>
transAppointmentMethod
(
List
<
Map
<
String
,
Object
>>
results
)
{
...
...
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