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
69acd0b5
Commit
69acd0b5
authored
Sep 17, 2019
by
liuxinben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
0e70b0ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
TaskListApi.java
src/main/java/com/yxproject/start/api/TaskListApi.java
+4
-4
TaskListMapper.java
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
+2
-2
No files found.
src/main/java/com/yxproject/start/api/TaskListApi.java
View file @
69acd0b5
...
@@ -713,7 +713,7 @@ public class TaskListApi {
...
@@ -713,7 +713,7 @@ public class TaskListApi {
* 通过派出所代码查询派出所
* 通过派出所代码查询派出所
*/
*/
@RequestMapping
(
"selectPoliceListByPoliceCode"
)
@RequestMapping
(
"selectPoliceListByPoliceCode"
)
public
List
<
Map
<
String
,
Object
>>
selectPoliceListByPoliceCode
(
String
policeCode
)
{
public
List
<
Map
<
String
,
Object
>>
selectPoliceListByPoliceCode
(
@RequestParam
(
"policeCode"
)
String
policeCode
)
{
return
taskListService
.
selectPoliceListByPoliceCode
(
policeCode
);
return
taskListService
.
selectPoliceListByPoliceCode
(
policeCode
);
}
}
...
@@ -721,7 +721,7 @@ public class TaskListApi {
...
@@ -721,7 +721,7 @@ public class TaskListApi {
* 添加派出所代码
* 添加派出所代码
*/
*/
@RequestMapping
(
"insertPolice"
)
@RequestMapping
(
"insertPolice"
)
public
boolean
insertPolice
(
String
policeCode
,
String
policeName
)
{
public
boolean
insertPolice
(
@RequestParam
(
"policeCode"
)
String
policeCode
,
@RequestParam
(
"policeName"
)
String
policeName
)
{
return
taskListService
.
insertPolice
(
policeCode
,
policeName
);
return
taskListService
.
insertPolice
(
policeCode
,
policeName
);
}
}
...
@@ -729,7 +729,7 @@ public class TaskListApi {
...
@@ -729,7 +729,7 @@ public class TaskListApi {
* 修改派出所代码
* 修改派出所代码
*/
*/
@RequestMapping
(
"updatePolice"
)
@RequestMapping
(
"updatePolice"
)
public
boolean
updatePolice
(
String
policeCode
,
String
policeName
,
String
newPoliceCode
)
{
public
boolean
updatePolice
(
@RequestParam
(
"policeCode"
)
String
policeCode
,
@RequestParam
(
"policeName"
)
String
policeName
,
@RequestParam
(
"newPoliceCode"
)
String
newPoliceCode
)
{
return
taskListService
.
updatePolice
(
policeCode
,
policeName
,
newPoliceCode
);
return
taskListService
.
updatePolice
(
policeCode
,
policeName
,
newPoliceCode
);
}
}
...
@@ -737,7 +737,7 @@ public class TaskListApi {
...
@@ -737,7 +737,7 @@ public class TaskListApi {
* 删除派出所代码
* 删除派出所代码
*/
*/
@RequestMapping
(
"deletePolice"
)
@RequestMapping
(
"deletePolice"
)
public
boolean
deletePolice
(
String
policeCode
)
{
public
boolean
deletePolice
(
@RequestParam
(
"policeCode"
)
String
policeCode
)
{
return
taskListService
.
deletePolice
(
policeCode
);
return
taskListService
.
deletePolice
(
policeCode
);
}
}
...
...
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
View file @
69acd0b5
...
@@ -1633,8 +1633,8 @@ public interface TaskListMapper {
...
@@ -1633,8 +1633,8 @@ public interface TaskListMapper {
@Select
(
"SELECT * FROM POLICE_DIC"
)
@Select
(
"SELECT * FROM POLICE_DIC"
)
public
List
<
Map
<
String
,
Object
>>
selectPoliceList
();
public
List
<
Map
<
String
,
Object
>>
selectPoliceList
();
@Select
(
"SELECT * FROM POLICE_DIC WHERE POLICE_CODE = #{policeCode} OR POLICE_NAME LIKE #{police
Nam
e}"
)
@Select
(
"SELECT * FROM POLICE_DIC WHERE POLICE_CODE = #{policeCode} OR POLICE_NAME LIKE #{police
Cod
e}"
)
public
List
<
Map
<
String
,
Object
>>
selectPoliceListByPoliceCode
(
String
policeCode
);
public
List
<
Map
<
String
,
Object
>>
selectPoliceListByPoliceCode
(
@Param
(
"policeCode"
)
String
policeCode
);
@Insert
(
"INSERT INTO POLICE_DIC (POLICE_CODE,POLICE_NAME) VALUES (#{policeCode},#{policeName})"
)
@Insert
(
"INSERT INTO POLICE_DIC (POLICE_CODE,POLICE_NAME) VALUES (#{policeCode},#{policeName})"
)
public
boolean
insertPolice
(
@Param
(
"policeCode"
)
String
policeCode
,
@Param
(
"policeName"
)
String
policeName
);
public
boolean
insertPolice
(
@Param
(
"policeCode"
)
String
policeCode
,
@Param
(
"policeName"
)
String
policeName
);
...
...
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