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
6f53b218
Commit
6f53b218
authored
Mar 08, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加添加快证任务单API
parent
6c54680a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
40 deletions
+7
-40
TaskListApi.java
src/main/java/com/yxproject/start/api/TaskListApi.java
+6
-39
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+1
-1
No files found.
src/main/java/com/yxproject/start/api/TaskListApi.java
View file @
6f53b218
...
...
@@ -176,9 +176,7 @@ public class TaskListApi {
List
<
Object
>
objects
=
taskListService
.
selectGroupAtACCU
(
groupNo
);
boolean
b
=
taskListService
.
saveTask
(
objects
,
name
,
0
+
""
);
}
//todo 保存任务单数据
return
"成功生成循环单"
;
}
...
...
@@ -190,43 +188,12 @@ public class TaskListApi {
* countyList 区县列表 {typeCode:1,countyCode:'123456'}
* @return
*/
// @RequestMapping("createTask")
// @Transactional
// public String queryByCountyAtACCU(@RequestBody String str, HttpServletResponse resp){
// System.out.println(str);
// JSONObject jsonObject = JSONObject.fromObject(str);
// String date = jsonObject.getString("date");
// String name = jsonObject.getString("name");
//// String process = jsonObject.getString("tag");
// JSONArray jsonCounty = jsonObject.getJSONArray("countyList");
// JSONArray jsonGroup = jsonObject.getJSONArray("groupList");
// List<Map<String,Object>> countyList =(List<Map<String,Object>>)jsonCounty;
// //正常生成区县任务单
// for (Map<String,Object> map :countyList){
// String typeCode = map.get("typeCode").toString();
// String countyCode = map.get("countyCode").toString();
// List<Object> objects = taskListService.selectGroupAtACCU(replaceDate(date), typeCode, countyCode);
// boolean b = taskListService.saveTask(objects,name,0+"");
// }
// //生成某几个组的区县任务单
// if (jsonGroup.size()>0){
// List<String> groupList =(List<String>)jsonGroup;
// //查询组号详情
// String groupNo = "(";
// for ( int i= 0; i<groupList.size();i++){
// if (i!=groupList.size()-1){
// groupNo=groupNo+groupList.get(i)+",";
// }else {
// groupNo=groupNo+groupList.get(i)+")";
// }
// }
// List<Object> objects = taskListService.selectGroupAtACCU(groupNo);
// boolean b = taskListService.saveTask(objects,name,0+"");
// }
// //todo 保存任务单数据
// return "成功生成循环单";
//
// }
@RequestMapping
(
"createFastTask"
)
@Transactional
public
String
createFastTask
(
@RequestBody
String
str
,
HttpServletResponse
resp
){
//todo
return
null
;
}
...
...
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
View file @
6f53b218
...
...
@@ -342,7 +342,7 @@ public class TaskListServiceImpl implements TaskListService {
Map
<
String
,
Object
>
typemap
=
new
LinkedHashMap
<>();
for
(
Map
<
String
,
Object
>
o:
mapList
){
if
(
typemap
!=
null
&&
typemap
.
containsKey
(
o
.
get
(
"TASK_ID"
)+
""
)){
List
<
Map
<
String
,
Object
>>
maplist_county
=
(
List
<
Map
<
String
,
Object
>>)
typemap
.
get
(
o
.
get
(
"TASK_ID"
));
List
<
Map
<
String
,
Object
>>
maplist_county
=
(
List
<
Map
<
String
,
Object
>>)
typemap
.
get
(
o
.
get
(
"TASK_ID"
)
+
""
);
maplist_county
.
add
(
o
);
typemap
.
put
(
o
.
get
(
"TASK_ID"
)+
""
,
maplist_county
);
}
else
{
...
...
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