Commit 1845ba96 by HlQ

[add] 项目列表查询添加签订日期范围查询

1 parent 376f6542
......@@ -46,6 +46,10 @@ public class StoreDTO extends BaseDTO {
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date estDate;
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date estDateStart;
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date estDateEnd;
/** 主合同id */
private Long masterContract;
/** 维保状态 */
......
......@@ -111,6 +111,7 @@ public class StoreServiceImpl extends MPJBaseServiceImpl<StoreMapper, Store> imp
.in(ObjUtil.isNotNull(data.getMainUser()), Store::getId, storeIdListByMainUser)
.gt(ObjUtil.isNotNull(estDate), Store::getEstDate, estDate)
.in(ArrayUtil.isNotEmpty(data.getIds()), Store::getId, data.getIds())
.between(ArrayUtil.isAllNotNull(data.getEstDateStart(), data.getEstDateEnd()), Store::getEstDate, data.getEstDateStart(), data.getEstDateEnd())
.page(page);
// todo 缓存
List<Account> accountList = accountService.list();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!