Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
a2ca388f
Commit
a2ca388f
authored
Mar 09, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询任务单详情
parent
b9d35a90
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
6 deletions
+40
-6
TaskListApi.java
src/main/java/com/yxproject/start/api/TaskListApi.java
+5
-5
TaskListService.java
...ain/java/com/yxproject/start/service/TaskListService.java
+2
-0
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+33
-1
No files found.
src/main/java/com/yxproject/start/api/TaskListApi.java
View file @
a2ca388f
...
@@ -163,7 +163,7 @@ public class TaskListApi {
...
@@ -163,7 +163,7 @@ public class TaskListApi {
/**
/**
* 查询任务单详情
* 查询任务单详情
* (辅助库)
* (辅助库)
*
*
(下发、数据核验)
* @param process 工序
* @param process 工序
* @param resp
* @param resp
* @return
* @return
...
@@ -177,15 +177,15 @@ public class TaskListApi {
...
@@ -177,15 +177,15 @@ public class TaskListApi {
/**
/**
* 查询任务单详情
* 查询任务单详情
* (辅助库)
* (辅助库)
*
*
(预订位、平压、冲切)
* @param process 工序
* @param process 工序
* @param resp
* @param resp
* @return
* @return
*/
*/
@RequestMapping
(
"queryByCountyAtAuxiliaryState1"
)
@RequestMapping
(
"queryByCountyAtAuxiliaryState1"
)
public
List
<
Object
>
queryByCountyAtAuxiliaryState1
(
@RequestParam
(
"process"
)
String
process
,
HttpServletResponse
resp
)
{
public
Map
queryByCountyAtAuxiliaryState1
(
@RequestParam
(
"process"
)
String
process
,
HttpServletResponse
resp
)
{
List
<
Object
>
objects
=
taskListService
.
selectByCountyAtAuxiliary
(
Long
.
valueOf
(
process
)
-
1
);
Map
map
=
taskListService
.
selectByCountyAtAuxiliary2
(
Long
.
valueOf
(
process
)
-
1
);
return
objects
;
return
map
;
}
}
/**
/**
...
...
src/main/java/com/yxproject/start/service/TaskListService.java
View file @
a2ca388f
...
@@ -29,6 +29,8 @@ public interface TaskListService {
...
@@ -29,6 +29,8 @@ public interface TaskListService {
public
List
<
Object
>
selectByCountyAtAuxiliary
(
long
process
);
public
List
<
Object
>
selectByCountyAtAuxiliary
(
long
process
);
public
Map
selectByCountyAtAuxiliary2
(
long
process
);
public
List
<
Object
>
selectGroupAtACCU
(
String
date
,
String
typeCode
,
String
countyCode
);
public
List
<
Object
>
selectGroupAtACCU
(
String
date
,
String
typeCode
,
String
countyCode
);
public
List
<
Object
>
selectGroupAtACCU
(
String
groupNo
);
public
List
<
Object
>
selectGroupAtACCU
(
String
groupNo
);
...
...
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
View file @
a2ca388f
...
@@ -217,6 +217,7 @@ public class TaskListServiceImpl implements TaskListService {
...
@@ -217,6 +217,7 @@ public class TaskListServiceImpl implements TaskListService {
/**
/**
* 查询任务单详情
* 查询任务单详情
* 辅助库
* 辅助库
* (下发、数据核验)
* @param process 查询工序
* @param process 查询工序
* @return
* @return
*/
*/
...
@@ -236,6 +237,37 @@ public class TaskListServiceImpl implements TaskListService {
...
@@ -236,6 +237,37 @@ public class TaskListServiceImpl implements TaskListService {
return
list
;
return
list
;
}
}
/**
* 查询任务单详情
* 辅助库
* (预订位、平压、冲切)
* @param process 查询工序
* @return
*/
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Map
selectByCountyAtAuxiliary2
(
long
process
)
{
//查询普通组号列表 在辅助库中
List
<
Map
<
String
,
Object
>>
mapList_common
=
taskListMapper
.
selectByCountyAtAuxiliary_common
(
process
);
//查询快证组号列表 在辅助库中
List
<
Map
<
String
,
Object
>>
mapList_fast
=
taskListMapper
.
selectByCountyAtAuxiliary_fast
(
process
);
//查询余证组号列表 在辅助库中
List
<
Map
<
String
,
Object
>>
mapList_remaind
=
taskListMapper
.
selectByCountyAtAuxiliary_remaind
(
process
);
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
list
=
formateMap
(
mapList_common
);
list
.
addAll
(
formateMap
(
mapList_fast
));
list
.
addAll
(
formateMap
(
mapList_remaind
));
int
total
=
0
;
for
(
Map
<
String
,
Object
>
map
:
list
){
total
+=
Integer
.
valueOf
(
map
.
get
(
"typeSum"
).
toString
());
}
Map
<
String
,
Object
>
map
=
new
LinkedHashMap
<>();
map
.
put
(
"total"
,
total
);
map
.
put
(
"typeList"
,
list
);
return
map
;
}
/**
/**
* 查询组号信息
* 查询组号信息
* 受理库
* 受理库
...
@@ -412,7 +444,7 @@ public class TaskListServiceImpl implements TaskListService {
...
@@ -412,7 +444,7 @@ public class TaskListServiceImpl implements TaskListService {
}
}
private
List
formateMap
(
List
<
Map
<
String
,
Object
>>
maplist
){
private
List
<
Map
<
String
,
Object
>>
formateMap
(
List
<
Map
<
String
,
Object
>>
maplist
){
Map
<
String
,
Object
>
typeMap
=
new
LinkedHashMap
<>();
Map
<
String
,
Object
>
typeMap
=
new
LinkedHashMap
<>();
for
(
Map
o
:
maplist
){
for
(
Map
o
:
maplist
){
// 组合JSON
// 组合JSON
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment