|
@@ -96,9 +96,12 @@ public class BugInfoController {
|
|
|
String sureId = bugInfo.getSureId();
|
|
|
bugInfo.setTitle(null);
|
|
|
bugInfo.setSureId(null);
|
|
|
+ Date startDate1 = bugInfo.getStartDate();
|
|
|
+ Date endDate1 = bugInfo.getEndDate();
|
|
|
LambdaQueryWrapper<BugInfo> wrapper = new QueryWrapper<>(bugInfo).lambda()
|
|
|
.like(StringUtils.isNotBlank(title), BugInfo::getTitle, title)
|
|
|
.eq(BugInfo::getDeleted, 0)
|
|
|
+ .between(Objects.nonNull(startDate1) && Objects.nonNull(endDate1),BugInfo::getCreateTime, startDate1, endDate1)
|
|
|
.in(BugInfo::getProjectId, projectIdList)
|
|
|
.orderByDesc(BugInfo::getCreateTime);
|
|
|
if (StringUtils.isNotBlank(sureId)) {
|
|
@@ -502,10 +505,13 @@ public class BugInfoController {
|
|
|
String sureId = bugInfo.getSureId();
|
|
|
bugInfo.setTitle(null);
|
|
|
bugInfo.setSureId(null);
|
|
|
+ Date startDate = bugInfo.getStartDate();
|
|
|
+ Date endDate = bugInfo.getEndDate();
|
|
|
BugStatusCountWithAllVo b = new BugStatusCountWithAllVo();
|
|
|
LambdaQueryWrapper<BugInfo> w = Wrappers.query(bugInfo)
|
|
|
.lambda()
|
|
|
.eq(BugInfo::getDeleted, 0)
|
|
|
+ .between(Objects.nonNull(startDate) && Objects.nonNull(endDate),BugInfo::getCreateTime, startDate, endDate)
|
|
|
.like(StringUtils.isNotBlank(title),
|
|
|
BugInfo::getTitle, title)
|
|
|
.in(BugInfo::getProjectId, selfProjectId);
|