ソースを参照

实施查询修改

tags/24080901
WendyYang 9ヶ月前
コミット
fb36c7cbdd
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/PurchaseManage.java

+ 2
- 2
hz-pm-api/src/main/java/com/hz/pm/api/projectdeclared/manage/PurchaseManage.java ファイルの表示

@@ -440,11 +440,11 @@ public class PurchaseManage {
.orderByDesc(Purchase::getCreateOn);
if (!Boolean.FALSE.equals(req.getDisplay())) {
query.and(q1 -> q1.eq(Purchase::getBidType, BidTypeEnum.BUILD_APP.getCode())
.or(q2 -> q2.exists(String.format("select 1 from nd_operation no" +
.or(q2 -> q2.exists(String.format("select 1 from nd_project_operation no" +
" where no.bid_id = nd_purchase.id and no.%s is not null", actualTimeColumn))));
} else {
query.and(q1 -> q1.ne(Purchase::getBidType, BidTypeEnum.BUILD_APP.getCode())
.or(q2 -> q2.exists(String.format("select 1 from nd_operation no" +
.or(q2 -> q2.exists(String.format("select 1 from nd_project_operation no" +
" where no.bid_id = nd_purchase.id and no.%s is null", actualTimeColumn))));
}
UserFullInfoDTO user = userInfoHelper.getUserFullInfo(LoginUserUtil.getUserId());


読み込み中…
キャンセル
保存