张延森 3 anni fa
parent
commit
2172b06a28

+ 3
- 3
src/main/java/com/yunzhi/shigongli/controller/TaHotelController.java Vedi File

@@ -82,7 +82,7 @@ public class TaHotelController extends BaseController {
82 82
      */
83 83
     @RequestMapping(value="/admin/taHotel/{id}", method= RequestMethod.DELETE)
84 84
     @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
85
-    public ResponseBean taHotelDelete(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
85
+    public ResponseBean taHotelDelete(@ApiParam("对象ID") @PathVariable String id) throws Exception{
86 86
         if(iTaHotelService.removeById(id)){
87 87
             return ResponseBean.success("success");
88 88
         }else {
@@ -98,7 +98,7 @@ public class TaHotelController extends BaseController {
98 98
      */
99 99
     @RequestMapping(value="/admin/taHotel/{id}",method= RequestMethod.PUT)
100 100
     @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
101
-    public ResponseBean taHotelUpdate(@ApiParam("对象ID") @PathVariable Integer id,
101
+    public ResponseBean taHotelUpdate(@ApiParam("对象ID") @PathVariable String id,
102 102
                                         @ApiParam("更新内容") @RequestBody TaHotel taHotel) throws Exception{
103 103
 
104 104
         if (iTaHotelService.updateById(taHotel)){
@@ -114,7 +114,7 @@ public class TaHotelController extends BaseController {
114 114
      */
115 115
     @RequestMapping(value="/admin/taHotel/{id}",method= RequestMethod.GET)
116 116
     @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
117
-    public ResponseBean taHotelGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
117
+    public ResponseBean taHotelGet(@ApiParam("对象ID") @PathVariable String id) throws Exception{
118 118
         return ResponseBean.success(iTaHotelService.getById(id));
119 119
     }
120 120
 }

+ 3
- 3
src/main/java/com/yunzhi/shigongli/controller/TaRoomController.java Vedi File

@@ -84,7 +84,7 @@ public class TaRoomController extends BaseController {
84 84
     @RequestMapping(value="/{plat}//taRoom/{id}", method= RequestMethod.DELETE)
85 85
     @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
86 86
     public ResponseBean taRoomDelete(@ApiParam(value = "客户端", allowableValues = "wx,admin") @PathVariable String plat,
87
-                                     @ApiParam("对象ID") @PathVariable Integer id) throws Exception{
87
+                                     @ApiParam("对象ID") @PathVariable String id) throws Exception{
88 88
         if(iTaRoomService.removeById(id)){
89 89
             return ResponseBean.success("success");
90 90
         }else {
@@ -101,7 +101,7 @@ public class TaRoomController extends BaseController {
101 101
     @RequestMapping(value="/{plat}/taRoom/{id}",method= RequestMethod.PUT)
102 102
     @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
103 103
     public ResponseBean taRoomUpdate(@ApiParam(value = "客户端", allowableValues = "wx,admin") @PathVariable String plat,
104
-                                     @ApiParam("对象ID") @PathVariable Integer id,
104
+                                     @ApiParam("对象ID") @PathVariable String id,
105 105
                                      @ApiParam("更新内容") @RequestBody TaRoom taRoom) throws Exception{
106 106
 
107 107
         if (iTaRoomService.updateById(taRoom)){
@@ -118,7 +118,7 @@ public class TaRoomController extends BaseController {
118 118
     @RequestMapping(value="/{plat}/taRoom/{id}",method= RequestMethod.GET)
119 119
     @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
120 120
     public ResponseBean taRoomGet(@ApiParam(value = "客户端", allowableValues = "wx,admin") @PathVariable String plat,
121
-                                  @ApiParam("对象ID") @PathVariable Integer id) throws Exception{
121
+                                  @ApiParam("对象ID") @PathVariable String id) throws Exception{
122 122
         return ResponseBean.success(iTaRoomService.getById(id));
123 123
     }
124 124
 }