Merge remote-tracking branch 'origin/master-xiantao5-lhj0905' into test

This commit is contained in:
10001392 2024-09-18 10:12:41 +08:00
commit 056419928d
1 changed files with 7 additions and 6 deletions

View File

@ -98,12 +98,13 @@ public class DQBomApi extends BaseApi {
@PostMapping("getPageList") @PostMapping("getPageList")
@ApiOperation("分页查询数据") @ApiOperation("分页查询数据")
public ResultVO<Page<BomNewDQbomVO>> getPageList(@Valid @RequestBody @NotNull BomNewDQbomPageQuery query) { public ResultVO<Page<BomNewDQbomVO>> getPageList(@Valid @RequestBody @NotNull BomNewDQbomPageQuery query) {
if (query.getStatus() == 2) { // 电气BOM正式表查询无须添加时间条件 by 10002327 240918
if (StrUtil.isBlank(query.getStartDate()) && StrUtil.isBlank(query.getEndDate())) { // if (query.getStatus() == 2) {
query.setStartDate(LocalDateTimeUtil.format(LocalDateTime.now().plusDays(-2), "yyyy-MM-dd")); // if (StrUtil.isBlank(query.getStartDate()) && StrUtil.isBlank(query.getEndDate())) {
query.setEndDate(LocalDateTimeUtil.format(LocalDateTime.now().plusDays(1), "yyyy-MM-dd")); // query.setStartDate(LocalDateTimeUtil.format(LocalDateTime.now().plusDays(-2), "yyyy-MM-dd"));
} // query.setEndDate(LocalDateTimeUtil.format(LocalDateTime.now().plusDays(1), "yyyy-MM-dd"));
} // }
// }
return ResultVO.success(dQBomService.getPageList(query)); return ResultVO.success(dQBomService.getPageList(query));
} }