Bläddra i källkod

debug 采购

master
PoffyZhang 1 år sedan
förälder
incheckning
4e3ef2fef0
2 ändrade filer med 6 tillägg och 1 borttagningar
  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 Visa fil

@@ -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 Visa fil

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

//查询合同备案


Laddar…
Avbryt
Spara