|
@@ -24,7 +24,9 @@ import com.hz.pm.api.irs.sign.IRSAPIRequest; |
|
|
import com.hz.pm.api.projectdeclared.manage.DeclaredProjectHelper; |
|
|
import com.hz.pm.api.projectdeclared.manage.DeclaredProjectHelper; |
|
|
import com.hz.pm.api.projectdeclared.model.entity.PurchaseInst; |
|
|
import com.hz.pm.api.projectdeclared.model.entity.PurchaseInst; |
|
|
import com.hz.pm.api.projectdeclared.model.entity.Xinchuang; |
|
|
import com.hz.pm.api.projectdeclared.model.entity.Xinchuang; |
|
|
|
|
|
import com.hz.pm.api.projectdeclared.model.entity.XinchuangInst; |
|
|
import com.hz.pm.api.projectdeclared.service.IPurchaseInstService; |
|
|
import com.hz.pm.api.projectdeclared.service.IPurchaseInstService; |
|
|
|
|
|
import com.hz.pm.api.projectdeclared.service.IXinchuangInstService; |
|
|
import com.hz.pm.api.projectdeclared.service.IXinchuangService; |
|
|
import com.hz.pm.api.projectdeclared.service.IXinchuangService; |
|
|
import com.hz.pm.api.projectlib.manage.ProjectLibManage; |
|
|
import com.hz.pm.api.projectlib.manage.ProjectLibManage; |
|
|
import com.hz.pm.api.projectlib.model.dto.ProjectApplicationDTO; |
|
|
import com.hz.pm.api.projectlib.model.dto.ProjectApplicationDTO; |
|
@@ -148,6 +150,8 @@ public class TodoCenterManage { |
|
|
|
|
|
|
|
|
private final IXinchuangService xinchuangService; |
|
|
private final IXinchuangService xinchuangService; |
|
|
|
|
|
|
|
|
|
|
|
private final IXinchuangInstService xinchuangInstService; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 待办中心待我处理项目列表查询 |
|
|
* 待办中心待我处理项目列表查询 |
|
|
* |
|
|
* |
|
@@ -248,9 +252,15 @@ public class TodoCenterManage { |
|
|
if (CollUtil.isEmpty(xinchuangs)) { |
|
|
if (CollUtil.isEmpty(xinchuangs)) { |
|
|
return PageVo.empty(); |
|
|
return PageVo.empty(); |
|
|
} |
|
|
} |
|
|
Map<String, Xinchuang> xinchuangMap = CollUtils.listToMap(xinchuangs, Xinchuang::getInstCode); |
|
|
|
|
|
List<String> instCodes = CollUtils.fieldList(xinchuangs, Xinchuang::getInstCode); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<Long> xinchuangIds = CollUtils.fieldList(xinchuangs, Xinchuang::getId); |
|
|
|
|
|
List<XinchuangInst> xinchuangInsts = xinchuangInstService.listByXinchuangIds(xinchuangIds); |
|
|
|
|
|
|
|
|
|
|
|
Map<String, Xinchuang> xinchuangMap = CollUtils.listToMap(xinchuangs, Xinchuang::getInstCode); |
|
|
|
|
|
List<String> instCodes = CollUtils.fieldList(xinchuangInsts, XinchuangInst::getInstCode); |
|
|
|
|
|
if (CollUtil.isEmpty(instCodes)) { |
|
|
|
|
|
return PageVo.empty(); |
|
|
|
|
|
} |
|
|
// 查出用户工作流 |
|
|
// 查出用户工作流 |
|
|
TodoCenterListReqDTO req = new TodoCenterListReqDTO(); |
|
|
TodoCenterListReqDTO req = new TodoCenterListReqDTO(); |
|
|
req.setInstCodes(instCodes); |
|
|
req.setInstCodes(instCodes); |
|
@@ -929,9 +939,14 @@ public class TodoCenterManage { |
|
|
if (xinchuangs.isEmpty()) { |
|
|
if (xinchuangs.isEmpty()) { |
|
|
return PageVo.empty(); |
|
|
return PageVo.empty(); |
|
|
} |
|
|
} |
|
|
|
|
|
List<Long> xinchuangIds = CollUtils.fieldList(xinchuangs, Xinchuang::getId); |
|
|
|
|
|
List<XinchuangInst> xinchuangInsts = xinchuangInstService.listByXinchuangIds(xinchuangIds); |
|
|
|
|
|
|
|
|
Map<String, Xinchuang> xinchuangMap = CollUtils.listToMap(xinchuangs, Xinchuang::getInstCode, v -> v); |
|
|
|
|
|
List<String> instCodes = CollUtils.fieldList(xinchuangs, Xinchuang::getInstCode); |
|
|
|
|
|
|
|
|
Map<String, Xinchuang> xinchuangMap = CollUtils.listToMap(xinchuangs, Xinchuang::getInstCode); |
|
|
|
|
|
List<String> instCodes = CollUtils.fieldList(xinchuangInsts, XinchuangInst::getInstCode); |
|
|
|
|
|
if (CollUtil.isEmpty(instCodes)) { |
|
|
|
|
|
return PageVo.empty(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 查出用户工作流 |
|
|
// 查出用户工作流 |
|
|
TodoCenterListReqDTO req = new TodoCenterListReqDTO(); |
|
|
TodoCenterListReqDTO req = new TodoCenterListReqDTO(); |
|
@@ -1124,8 +1139,14 @@ public class TodoCenterManage { |
|
|
if (CollUtil.isEmpty(xinchuangs)) { |
|
|
if (CollUtil.isEmpty(xinchuangs)) { |
|
|
return PageVo.empty(); |
|
|
return PageVo.empty(); |
|
|
} |
|
|
} |
|
|
Map<String, Xinchuang> xinchuangMap = CollUtils.listToMap(xinchuangs, Xinchuang::getInstCode, v -> v); |
|
|
|
|
|
List<String> instCodes = CollUtils.fieldList(xinchuangs,Xinchuang::getInstCode); |
|
|
|
|
|
|
|
|
List<Long> xinchuangIds = CollUtils.fieldList(xinchuangs, Xinchuang::getId); |
|
|
|
|
|
List<XinchuangInst> xinchuangInsts = xinchuangInstService.listByXinchuangIds(xinchuangIds); |
|
|
|
|
|
|
|
|
|
|
|
Map<String, Xinchuang> xinchuangMap = CollUtils.listToMap(xinchuangs, Xinchuang::getInstCode); |
|
|
|
|
|
List<String> instCodes = CollUtils.fieldList(xinchuangInsts, XinchuangInst::getInstCode); |
|
|
|
|
|
if (CollUtil.isEmpty(instCodes)) { |
|
|
|
|
|
return PageVo.empty(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 查出用户工作流 |
|
|
// 查出用户工作流 |
|
|
TodoCenterListReqDTO req = new TodoCenterListReqDTO(); |
|
|
TodoCenterListReqDTO req = new TodoCenterListReqDTO(); |
|
|