Przeglądaj źródła

debug 采购

master
PoffyZhang 1 rok temu
rodzic
commit
4e3ef2fef0
2 zmienionych plików z 6 dodań i 1 usunięć
  1. +4
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/service/IPurchaseService.java
  2. +2
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java

+ 4
- 0
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/service/IPurchaseService.java Wyświetl plik

@@ -22,4 +22,8 @@ public interface IPurchaseService extends IService<Purchase> {
.eq(Purchase::getProjectId, projectId));
}

default List<Purchase> listByProjectIds(List<Long> projectIds) {
return list(Wrappers.lambdaQuery(Purchase.class)
.in(Purchase::getProjectId, projectIds));
}
}

+ 2
- 1
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java Wyświetl plik

@@ -577,8 +577,9 @@ public class ProjectLibManage {
vo.setProcess(todoService.getProcessDetail(req));

List<Long> allVersionProjectId = projectService.getAllVersionProjectId(projectInfo);

//查询采购备案
List<Purchase> purchases = purchaseService.listByProjectId(projectInfo.getId());
List<Purchase> purchases = purchaseService.listByProjectIds(allVersionProjectId);
vo.setPurchases(BeanUtil.copyToList(purchases, PurchaseVO.class));

//查询合同备案


Ładowanie…
Anuluj
Zapisz