提交 1e69d4dc authored 作者: hzh's avatar hzh

增加筛选项

上级 ef98f539
......@@ -3,6 +3,8 @@ package org.dromara.mall.controller.weishi.admin.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.mall.domain.weishi.Insure;
import java.io.Serial;
......@@ -181,6 +183,7 @@ public class InsureVo implements Serializable {
/**
* 创建部门
*/
@Translation(type = TransConstant.DEPT_ID_TO_NAME)
private Long createDept;
/**
......
......@@ -88,6 +88,16 @@ public class InsureServiceImpl extends AbstractBaseService<InsureVo, InsureBo, I
lqw.eq(StringUtils.isNotBlank(bo.getStatus()), Insure::getStatus, bo.getStatus());
lqw.eq(bo.getCreateDept() != null, Insure::getCreateDept, bo.getCreateDept());
lqw.eq(bo.getOrderTime() != null, Insure::getOrderTime, bo.getOrderTime());
if (params != null) {
String startTime = params.getOrDefault("beginDate", StringUtils.EMPTY).toString();
if (StringUtils.isNotEmpty(startTime)) {
lqw.ge(Insure::getBeginDate, startTime);
}
String endTime = params.getOrDefault("endDate", StringUtils.EMPTY).toString();
if (StringUtils.isNotEmpty(endTime)) {
lqw.le(Insure::getEndDate, endTime);
}
}
return lqw;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论