CHENYIZONG vor 6 Jahren
Ursprung
Commit
e8f1784440

+ 1 - 1
src/main/java/com/example/hotel/controller/hotel/HotelController.java

@@ -16,7 +16,7 @@ public class HotelController {
     @Autowired
     private HotelService hotelService;
 
-    @PostMapping()
+    @PostMapping("/addHotel")
     public ResponseVO createHotel(@RequestBody HotelVO hotelVO) {
 
         hotelService.addHotel(hotelVO);

+ 1 - 1
src/main/resources/dataImpl/user/AccountMapper.xml

@@ -13,7 +13,7 @@
     </select>
     <update id="updateAccount">
         update User set password=#{password},username=#{userName},phonenumber=#{phoneNumber}
-        where email=#{email}
+        where id=#{id}
     </update>