Parcourir la source

实施查询修改

tags/24080901
WendyYang il y a 9 mois
Parent
révision
fb36c7cbdd
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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 Voir le fichier

@@ -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());


Chargement…
Annuler
Enregistrer