Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_REFACTORING
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_REFACTORING
Commits
402c306a
Commit
402c306a
authored
Dec 25, 2018
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CountyList查询方式修改为只通过taskId
parent
b9ed059a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
UserApi.java
src/main/java/com/yxproject/start/api/UserApi.java
+12
-9
No files found.
src/main/java/com/yxproject/start/api/UserApi.java
View file @
402c306a
...
...
@@ -129,16 +129,19 @@ public class UserApi {
*
* @return
*/
@RequestMapping
(
value
=
"/update
ProductionTask
"
,
method
=
RequestMethod
.
GET
)
@RequiresPermissions
(
"userInfo.add"
)
//权限管理;
@RequestMapping
(
value
=
"/update
TaskState
"
,
method
=
RequestMethod
.
GET
)
//
@RequiresPermissions("userInfo.add")//权限管理;
@ResponseBody
public
String
updateProductionTask
(
@RequestParam
(
"id"
)
String
id
,
HttpServletResponse
resp
)
{
String
map
=
"{\"production_Task_List_Id\":\"20181016001\",\"make_Type\":8,\"old_Make_Type\":8,} "
;
JSONObject
jsonObject
=
JSONObject
.
fromObject
(
map
);
TaskEntity
productionTaskListEntity
=
(
TaskEntity
)
JSONObject
.
toBean
(
jsonObject
,
TaskEntity
.
class
);
public
String
updateProductionTask
(
@RequestParam
(
"taskId"
)
Long
id
,
@RequestParam
(
"state"
)
int
state
,
HttpServletResponse
resp
)
{
// String map = "{\"production_Task_List_Id\":\"20181016001\",\"make_Type\":8,\"old_Make_Type\":8,} ";
// JSONObject jsonObject = JSONObject.fromObject(map);
// TaskEntity productionTaskListEntity = (TaskEntity) JSONObject.toBean(jsonObject, TaskEntity.class);
TaskEntity
taskEntity
=
new
TaskEntity
();
taskEntity
.
setTask_Id
(
id
);
taskEntity
.
setTask_State_Id
(
state
);
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
int
i
=
taskService
.
updateProductionTask
(
productionTaskList
Entity
);
int
i
=
taskService
.
updateProductionTask
(
task
Entity
);
yxjsonResponse
.
outPutSuccess
(
i
+
"更新成功"
);
return
yxjsonResponse
.
toJSONString
();
}
...
...
@@ -351,8 +354,8 @@ public class UserApi {
*/
@RequestMapping
(
"getCountyList"
)
// @RequiresPermissions("userInfo.add")//权限管理;
public
String
getCountyListInfoByTaskId
(
@RequestParam
(
"taskId"
)
String
taskId
,
@RequestParam
(
"taskStateId"
)
String
taskStateId
,
@RequestParam
(
"cardType"
)
String
cardType
,
HttpServletResponse
resp
)
{
List
<
CountyEntity
>
countyListEntity
=
countyService
.
findCountyList
(
taskId
,
taskStateId
,
cardType
);
public
String
getCountyListInfoByTaskId
(
@RequestParam
(
"taskId"
)
String
taskId
,
HttpServletResponse
resp
)
{
List
<
CountyEntity
>
countyListEntity
=
countyService
.
findCountyList
(
taskId
);
YXJSONResponse
yxjsonResponse
=
new
YXJSONResponse
();
resp
.
setCharacterEncoding
(
"UTF-8"
);
yxjsonResponse
.
outPutSuccess
(
countyListEntity
);
...
...
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