Commit 69acd0b5 authored by liuxinben's avatar liuxinben

push

parent 0e70b0ce
...@@ -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);
} }
......
...@@ -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 #{policeName}") @Select("SELECT * FROM POLICE_DIC WHERE POLICE_CODE = #{policeCode} OR POLICE_NAME LIKE #{policeCode}")
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment