张延森 3 years ago
parent
commit
2172b06a28

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

82
      */
82
      */
83
     @RequestMapping(value="/admin/taHotel/{id}", method= RequestMethod.DELETE)
83
     @RequestMapping(value="/admin/taHotel/{id}", method= RequestMethod.DELETE)
84
     @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
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
         if(iTaHotelService.removeById(id)){
86
         if(iTaHotelService.removeById(id)){
87
             return ResponseBean.success("success");
87
             return ResponseBean.success("success");
88
         }else {
88
         }else {
98
      */
98
      */
99
     @RequestMapping(value="/admin/taHotel/{id}",method= RequestMethod.PUT)
99
     @RequestMapping(value="/admin/taHotel/{id}",method= RequestMethod.PUT)
100
     @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
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
                                         @ApiParam("更新内容") @RequestBody TaHotel taHotel) throws Exception{
102
                                         @ApiParam("更新内容") @RequestBody TaHotel taHotel) throws Exception{
103
 
103
 
104
         if (iTaHotelService.updateById(taHotel)){
104
         if (iTaHotelService.updateById(taHotel)){
114
      */
114
      */
115
     @RequestMapping(value="/admin/taHotel/{id}",method= RequestMethod.GET)
115
     @RequestMapping(value="/admin/taHotel/{id}",method= RequestMethod.GET)
116
     @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
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
         return ResponseBean.success(iTaHotelService.getById(id));
118
         return ResponseBean.success(iTaHotelService.getById(id));
119
     }
119
     }
120
 }
120
 }

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

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