Forráskód Böngészése

设置付款状态保存

覃浩 2 éve
szülő
commit
49744ddf44

+ 13 - 0
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/controller/BusHotelController.java

@@ -791,4 +791,17 @@ public class BusHotelController extends JeecgController<BusHotel, IBusHotelServi
 		 List<BusHotel> list = busHotelService.list(queryWrapper);
 		 return Result.OK(list);
 	 }
+
+	 /**
+	  * 设置入住付款状态
+	  * @return
+	  */
+	 @ApiOperation(value="设置入住付款状态", notes="设置入住付款状态")
+	 @GetMapping(value = "/set-pay-state")
+	 public Result<Boolean> setPayState(String hotelId,String type) {
+		 BusHotel hotel = busHotelService.getById(hotelId);
+		 if(hotel==null) throw new JeecgBootException("酒店不存在");
+		 hotel.setRemenmberPayState(type);
+		 return Result.OK(true);
+	 }
  }

+ 10 - 0
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/entity/BusHotel.java

@@ -304,5 +304,15 @@ public class BusHotel implements Serializable {
     @TableField(exist = false)
     private  BusLivingCustomer busLivingCustomer;
 
+    /**
+     * 记住付款类型
+     * a-b-c
+     * a:1、押金房费分开,2、不分开
+     * b:第一个项目,1、房费;2、押金
+     * c:第二个项目,1、房费;2、押金
+     */
+    @ApiModelProperty(value = "入住记住付款类型")
+    private String remenmberPayState;
+
 
 }