11
This commit is contained in:
@ -69,6 +69,7 @@ public class ComboController {
|
|||||||
@PreAuthorize("@ss.hasPermission('t:combo:query')")
|
@PreAuthorize("@ss.hasPermission('t:combo:query')")
|
||||||
public CommonResult<ComboRespVO> getCombo(@RequestParam("id") Long id) {
|
public CommonResult<ComboRespVO> getCombo(@RequestParam("id") Long id) {
|
||||||
ComboDO combo = comboService.getCombo(id);
|
ComboDO combo = comboService.getCombo(id);
|
||||||
|
|
||||||
return success(BeanUtils.toBean(combo, ComboRespVO.class));
|
return success(BeanUtils.toBean(combo, ComboRespVO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,5 +38,6 @@ public class ComboPageReqVO extends PageParam {
|
|||||||
|
|
||||||
@Schema(description = "状态", example = "2")
|
@Schema(description = "状态", example = "2")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
@Schema(description = "2普通管理员1用户0超级管理员", example = "2")
|
||||||
|
private Integer type;
|
||||||
}
|
}
|
@ -46,5 +46,6 @@ public class ComboRespVO {
|
|||||||
@Schema(description = "状态", example = "2")
|
@Schema(description = "状态", example = "2")
|
||||||
@ExcelProperty("状态")
|
@ExcelProperty("状态")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
@Schema(description = "2普通管理员1用户0超级管理员", example = "2")
|
||||||
|
private Integer type;
|
||||||
}
|
}
|
@ -35,5 +35,8 @@ public class ComboSaveReqVO {
|
|||||||
|
|
||||||
@Schema(description = "状态", example = "2")
|
@Schema(description = "状态", example = "2")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
@Schema(description = "2普通管理员1用户0超级管理员", example = "2")
|
||||||
|
@NotNull(message = "套餐权限不能为空")
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
}
|
}
|
@ -51,5 +51,9 @@ public class ComboDO extends BaseDO {
|
|||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
/**
|
||||||
|
* 1普通管理员0用户2超级管理员
|
||||||
|
*/
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
}
|
}
|
@ -24,6 +24,7 @@ public interface ComboMapper extends BaseMapperX<ComboDO> {
|
|||||||
.eqIfPresent(ComboDO::getMinutes, reqVO.getMinutes())
|
.eqIfPresent(ComboDO::getMinutes, reqVO.getMinutes())
|
||||||
.eqIfPresent(ComboDO::getRemark, reqVO.getRemark())
|
.eqIfPresent(ComboDO::getRemark, reqVO.getRemark())
|
||||||
.eqIfPresent(ComboDO::getCarteenId, reqVO.getCarteenId())
|
.eqIfPresent(ComboDO::getCarteenId, reqVO.getCarteenId())
|
||||||
|
.eqIfPresent(ComboDO::getType, reqVO.getType())
|
||||||
.betweenIfPresent(ComboDO::getCreateTime, reqVO.getCreateTime())
|
.betweenIfPresent(ComboDO::getCreateTime, reqVO.getCreateTime())
|
||||||
.eqIfPresent(ComboDO::getStatus, reqVO.getStatus())
|
.eqIfPresent(ComboDO::getStatus, reqVO.getStatus())
|
||||||
.orderByDesc(ComboDO::getId));
|
.orderByDesc(ComboDO::getId));
|
||||||
|
Reference in New Issue
Block a user