瀏覽代碼

debug 采购

master
PoffyZhang 1 年之前
父節點
當前提交
4e3ef2fef0
共有 2 個檔案被更改,包括 6 行新增1 行删除
  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 查看文件

@@ -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 查看文件

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

//查询合同备案


Loading…
取消
儲存