工作日历修改
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled
yudao-ui-admin CI / build (14.x) (push) Has been cancelled
yudao-ui-admin CI / build (16.x) (push) Has been cancelled
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled
yudao-ui-admin CI / build (14.x) (push) Has been cancelled
yudao-ui-admin CI / build (16.x) (push) Has been cancelled
This commit is contained in:
parent
e1e37657f0
commit
ead15e55da
@ -25,8 +25,11 @@ public class CalendarPageReqVO extends PageParam {
|
|||||||
@Schema(description = "是否是节假日")
|
@Schema(description = "是否是节假日")
|
||||||
private Integer isWorkday;
|
private Integer isWorkday;
|
||||||
|
|
||||||
|
@Schema(description = "日期内容")
|
||||||
|
private Integer content;
|
||||||
|
|
||||||
@Schema(description = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||||
private LocalDateTime[] createTime;
|
private LocalDateTime[] createTime;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
package cn.iocoder.yudao.module.home.controller.admin.calendar.vo;
|
package cn.iocoder.yudao.module.home.controller.admin.calendar.vo;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
|
||||||
|
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
@ -24,8 +26,13 @@ public class CalendarRespVO {
|
|||||||
@ExcelProperty("是否是节假日")
|
@ExcelProperty("是否是节假日")
|
||||||
private Integer isWorkday;
|
private Integer isWorkday;
|
||||||
|
|
||||||
|
@Schema(description = "日期内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
|
@ExcelProperty(value = "日期内容", converter = DictConvert.class)
|
||||||
|
@DictFormat("calendar_content") // TODO 代码优化:建议设置到对应的 DictTypeConstants 枚举类中
|
||||||
|
private Integer content;
|
||||||
|
|
||||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@ExcelProperty("创建时间")
|
@ExcelProperty("创建时间")
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -20,4 +20,7 @@ public class CalendarSaveReqVO {
|
|||||||
@NotNull(message = "是否是节假日不能为空")
|
@NotNull(message = "是否是节假日不能为空")
|
||||||
private Integer isWorkday;
|
private Integer isWorkday;
|
||||||
|
|
||||||
}
|
@Schema(description = "日期内容", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
private Integer content;
|
||||||
|
|
||||||
|
}
|
||||||
|
@ -31,9 +31,13 @@ public class CalendarDO extends BaseDO {
|
|||||||
* 字符串日期
|
* 字符串日期
|
||||||
*/
|
*/
|
||||||
private String date;
|
private String date;
|
||||||
|
/**
|
||||||
|
* 日期内容
|
||||||
|
*/
|
||||||
|
private Integer content;
|
||||||
/**
|
/**
|
||||||
* 是否是节假日
|
* 是否是节假日
|
||||||
*/
|
*/
|
||||||
private Integer isWorkday;
|
private Integer isWorkday;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -22,8 +22,9 @@ public interface CalendarMapper extends BaseMapperX<CalendarDO> {
|
|||||||
.eqIfPresent(CalendarDO::getId, reqVO.getId())
|
.eqIfPresent(CalendarDO::getId, reqVO.getId())
|
||||||
.betweenIfPresent(CalendarDO::getDate, reqVO.getDate())
|
.betweenIfPresent(CalendarDO::getDate, reqVO.getDate())
|
||||||
.eqIfPresent(CalendarDO::getIsWorkday, reqVO.getIsWorkday())
|
.eqIfPresent(CalendarDO::getIsWorkday, reqVO.getIsWorkday())
|
||||||
|
.eqIfPresent(CalendarDO::getContent, reqVO.getContent())
|
||||||
.betweenIfPresent(CalendarDO::getCreateTime, reqVO.getCreateTime())
|
.betweenIfPresent(CalendarDO::getCreateTime, reqVO.getCreateTime())
|
||||||
.orderByDesc(CalendarDO::getId));
|
.orderByDesc(CalendarDO::getId));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user