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 9159b9a8
authored
Jul 06, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
2 parents
8aaccd8e
8559feb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
29 deletions
project-order/src/main/java/com/dituhui/pea/order/controller/WorkbenchController.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/WorkbenchServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/controller/WorkbenchController.java
View file @
9159b9a
...
@@ -19,28 +19,28 @@ import java.time.LocalDate;
...
@@ -19,28 +19,28 @@ import java.time.LocalDate;
@RequestMapping
(
"/pea-order"
)
@RequestMapping
(
"/pea-order"
)
public
class
WorkbenchController
{
public
class
WorkbenchController
{
@Autowired
@Autowired
WorkbenchService
workbenchService
;
WorkbenchService
workbenchService
;
@GetMapping
(
"/workbench/serviceOrder/change/list"
)
@GetMapping
(
"/workbench/serviceOrder/change/list"
)
public
Result
<?>
orderChangeList
(
@Validated
OrderChangeListReqDTO
reqDTO
)
{
public
Result
<?>
orderChangeList
(
@Validated
OrderChangeListReqDTO
reqDTO
)
{
Result
<?>
res
=
null
;
Result
<?>
res
=
null
;
try
{
try
{
res
=
workbenchService
.
getOrderChangeList
(
reqDTO
);
res
=
workbenchService
.
getOrderChangeList
(
reqDTO
);
}
catch
(
BusinessException
e
)
{
}
catch
(
BusinessException
e
)
{
return
Result
.
failed
(
e
.
getMessage
());
return
Result
.
failed
(
e
.
getMessage
());
}
}
return
res
;
return
res
;
}
}
@GetMapping
(
"/workbench/summary"
)
@GetMapping
(
"/workbench/summary"
)
public
Result
<?>
workbenchSummary
(
@RequestParam
String
levelType
,
@RequestParam
String
levelValue
,
@RequestParam
LocalDate
date
)
{
public
Result
<?>
workbenchSummary
(
@RequestParam
String
levelType
,
@RequestParam
String
levelValue
,
@RequestParam
LocalDate
date
)
{
Result
<?>
res
=
null
;
Result
<?>
res
=
null
;
try
{
try
{
res
=
workbenchService
.
getWorkbenchSummary
(
levelType
,
levelValue
,
date
);
res
=
workbenchService
.
getWorkbenchSummary
(
levelType
,
levelValue
,
date
);
}
catch
(
BusinessException
e
)
{
}
catch
(
BusinessException
e
)
{
return
Result
.
failed
(
e
.
getMessage
());
return
Result
.
failed
(
e
.
getMessage
());
}
}
return
res
;
return
res
;
}
}
}
}
project-order/src/main/java/com/dituhui/pea/order/service/impl/WorkbenchServiceImpl.java
View file @
9159b9a
...
@@ -28,9 +28,6 @@ import java.util.Map;
...
@@ -28,9 +28,6 @@ import java.util.Map;
public
class
WorkbenchServiceImpl
implements
WorkbenchService
{
public
class
WorkbenchServiceImpl
implements
WorkbenchService
{
@Autowired
@Autowired
private
OrderChangeDao
orderChangeDao
;
@Autowired
private
OrderRequestDao
orderRequestDao
;
private
OrderRequestDao
orderRequestDao
;
@Autowired
@Autowired
...
@@ -43,6 +40,10 @@ public class WorkbenchServiceImpl implements WorkbenchService {
...
@@ -43,6 +40,10 @@ public class WorkbenchServiceImpl implements WorkbenchService {
private
CapacityEngineerStatDao
capacityEngineerStatDao
;
private
CapacityEngineerStatDao
capacityEngineerStatDao
;
@Autowired
@Autowired
private
OrderEventDao
orderEventDao
;
@Autowired
private
OrderRequestMPDao
orderRequestMPDao
;
private
OrderRequestMPDao
orderRequestMPDao
;
@Override
@Override
...
@@ -52,11 +53,11 @@ public class WorkbenchServiceImpl implements WorkbenchService {
...
@@ -52,11 +53,11 @@ public class WorkbenchServiceImpl implements WorkbenchService {
String
levelType
=
reqDTO
.
getLevelType
();
String
levelType
=
reqDTO
.
getLevelType
();
String
levelValue
=
reqDTO
.
getLevelValue
();
String
levelValue
=
reqDTO
.
getLevelValue
();
if
(
"cluster"
.
equals
(
levelType
))
{
if
(
"cluster"
.
equals
(
levelType
))
{
changes
=
order
ChangeDao
.
findAllByClusterId
(
levelValue
,
reqDTO
.
getDate
(),
pageable
);
changes
=
order
EventDao
.
findAllByClusterId
(
levelValue
,
reqDTO
.
getDate
(),
pageable
);
}
else
if
(
"branch"
.
equals
(
levelType
))
{
}
else
if
(
"branch"
.
equals
(
levelType
))
{
changes
=
order
Change
Dao
.
findAllByBranchId
(
levelValue
,
reqDTO
.
getDate
(),
pageable
);
changes
=
order
Event
Dao
.
findAllByBranchId
(
levelValue
,
reqDTO
.
getDate
(),
pageable
);
}
else
{
}
else
{
changes
=
order
Change
Dao
.
findAllByGroupId
(
levelValue
,
reqDTO
.
getDate
(),
pageable
);
changes
=
order
Event
Dao
.
findAllByGroupId
(
levelValue
,
reqDTO
.
getDate
(),
pageable
);
}
}
List
<
OrderChangeListRespDTO
.
Content
>
contents
=
new
ArrayList
<>();
List
<
OrderChangeListRespDTO
.
Content
>
contents
=
new
ArrayList
<>();
for
(
Object
e1
:
changes
.
getContent
())
{
for
(
Object
e1
:
changes
.
getContent
())
{
...
@@ -68,7 +69,7 @@ public class WorkbenchServiceImpl implements WorkbenchService {
...
@@ -68,7 +69,7 @@ public class WorkbenchServiceImpl implements WorkbenchService {
.
setOperator
(
e
.
getOperator
())
.
setOperator
(
e
.
getOperator
())
.
setDescription
(
e
.
getContent
())
.
setDescription
(
e
.
getContent
())
.
setMemo
(
e
.
getMemo
())
.
setMemo
(
e
.
getMemo
())
.
setUpdateTime
(
e
.
getUpdateTime
()
.
toString
()
);
.
setUpdateTime
(
e
.
getUpdateTime
());
contents
.
add
(
content
);
contents
.
add
(
content
);
}
}
OrderChangeListRespDTO
respDTO
=
new
OrderChangeListRespDTO
();
OrderChangeListRespDTO
respDTO
=
new
OrderChangeListRespDTO
();
...
...
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