|
@@ -7,6 +7,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.jeecg.common.Enum.ResultCode;
|
|
import org.jeecg.common.Enum.ResultCode;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
|
|
+import org.jeecg.common.util.CommonUtils;
|
|
|
import org.jeecg.modules.rooms.DTO.CesStockTypeDto;
|
|
import org.jeecg.modules.rooms.DTO.CesStockTypeDto;
|
|
|
import org.jeecg.modules.rooms.Enum.CouponEnums;
|
|
import org.jeecg.modules.rooms.Enum.CouponEnums;
|
|
|
import org.jeecg.modules.rooms.service.CesStockTypeServiceImpl;
|
|
import org.jeecg.modules.rooms.service.CesStockTypeServiceImpl;
|
|
@@ -49,6 +50,23 @@ public class CesStockTypeController {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @ApiOperation(value="顶级分类查询", notes="分类查询")
|
|
|
|
|
+ @GetMapping(value = "/getTopTypes")
|
|
|
|
|
+ public Result getTopTypes(@RequestParam String hotelId){
|
|
|
|
|
+ if(StringUtils.isBlank(hotelId)){
|
|
|
|
|
+ return Result.error(ResultCode.PARAM_MISS);
|
|
|
|
|
+ }
|
|
|
|
|
+ try{
|
|
|
|
|
+
|
|
|
|
|
+ return stockTypeService.getTopTypes(hotelId)
|
|
|
|
|
+
|
|
|
|
|
+ ;
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
|
+ return Result.error(e.getMessage());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
@ApiOperation(value="分类创建", notes="分类创建")
|
|
@ApiOperation(value="分类创建", notes="分类创建")
|
|
|
@PostMapping(value = "/create")
|
|
@PostMapping(value = "/create")
|