Merge remote-tracking branch 'origin/master-xiantao5-lhj0905' into test
This commit is contained in:
commit
056419928d
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue