Bläddra i källkod

日期格式 fix

gqx 2 år sedan
förälder
incheckning
09cb06258f

+ 1 - 1
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/controller/BusRoomBookingOrdersController.java

@@ -305,7 +305,7 @@ public class BusRoomBookingOrdersController extends JeecgController<BusRoomBooki
 	  */
 	 @ApiOperation(value="酒店预定订单-续住/提前", notes="酒店预定订单-续住/提前")
 	 @RequestMapping(value = "/continue-living",method = RequestMethod.POST)
-	 public Result<Boolean> continueLiving(@RequestBody BusOrderFee fees, Date dueOutTime,String livingOrderId , String hotelId) {
+	 public Result<Boolean> continueLiving(@RequestBody BusOrderFee fees,@RequestParam(name = "dueOutTime") @JsonFormat(pattern = "yyyy-MM-dd HH:mm")  @DateTimeFormat(pattern="yyyy-MM-dd HH:mm") Date dueOutTime,String livingOrderId , String hotelId) {
 		 Boolean isOk = service.continueLiving(fees,dueOutTime,livingOrderId,hotelId);
 		 return Result.OK(isOk);
 	 }