Commit 69acd0b5 authored by liuxinben's avatar liuxinben

push

parent 0e70b0ce
......@@ -713,7 +713,7 @@ public class TaskListApi {
* 通过派出所代码查询派出所
*/
@RequestMapping("selectPoliceListByPoliceCode")
public List<Map<String,Object>> selectPoliceListByPoliceCode(String policeCode) {
public List<Map<String,Object>> selectPoliceListByPoliceCode(@RequestParam("policeCode")String policeCode) {
return taskListService.selectPoliceListByPoliceCode(policeCode);
}
......@@ -721,7 +721,7 @@ public class TaskListApi {
* 添加派出所代码
*/
@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);
}
......@@ -729,7 +729,7 @@ public class TaskListApi {
* 修改派出所代码
*/
@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);
}
......@@ -737,7 +737,7 @@ public class TaskListApi {
* 删除派出所代码
*/
@RequestMapping("deletePolice")
public boolean deletePolice(String policeCode) {
public boolean deletePolice(@RequestParam("policeCode")String policeCode) {
return taskListService.deletePolice(policeCode);
}
......
......@@ -1633,8 +1633,8 @@ public interface TaskListMapper {
@Select("SELECT * FROM POLICE_DIC")
public List<Map<String,Object>> selectPoliceList();
@Select("SELECT * FROM POLICE_DIC WHERE POLICE_CODE = #{policeCode} OR POLICE_NAME LIKE #{policeName}")
public List<Map<String,Object>> selectPoliceListByPoliceCode(String policeCode);
@Select("SELECT * FROM POLICE_DIC WHERE POLICE_CODE = #{policeCode} OR POLICE_NAME LIKE #{policeCode}")
public List<Map<String,Object>> selectPoliceListByPoliceCode(@Param("policeCode") String policeCode);
@Insert("INSERT INTO POLICE_DIC (POLICE_CODE,POLICE_NAME) VALUES (#{policeCode},#{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