Browse Source

核心业务 可以按单位更新数据

tags/24080901
PoffyZhang 1 year ago
parent
commit
81535ce154
2 changed files with 8 additions and 5 deletions
  1. +5
    -5
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java
  2. +3
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/SynProjectCoreBizTask.java

+ 5
- 5
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DeclaredProjectManage.java View File

@@ -463,11 +463,11 @@ public class DeclaredProjectManage {
}
}else if(BizConst.PRE.equals(active) ||
BizConst.PROD.equals(active)){
// jsonObject = projectIrsManage.searchCoreBiz(businessName,user.getEmpPosUnitCode(),limit,page);
List<ProjectCoreBiz> list = coreBizService.list(Wrappers.lambdaQuery(ProjectCoreBiz.class)
.eq(ProjectCoreBiz::getOrgCode, user.getEmpPosUnitCode())
.like(StringUtils.isNotBlank(businessName), ProjectCoreBiz::getMatterName, businessName));
jsonObject.put("data",list);
jsonObject = projectIrsManage.searchCoreBiz(businessName,user.getEmpPosUnitCode(),limit,page);
// List<ProjectCoreBiz> list = coreBizService.list(Wrappers.lambdaQuery(ProjectCoreBiz.class)
// .eq(ProjectCoreBiz::getOrgCode, user.getEmpPosUnitCode())
// .like(StringUtils.isNotBlank(businessName), ProjectCoreBiz::getMatterName, businessName));
// jsonObject.put("data",list);
}
return jsonObject;
}


+ 3
- 0
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/SynProjectCoreBizTask.java View File

@@ -106,6 +106,9 @@ public class SynProjectCoreBizTask {
private void syncCoreBiz(List<DingOrganization> orgs) {
for(DingOrganization organization : orgs){
GenericResult<DingOrgInfoDTO> dingResult = zwddClient.getOrganizationByCode(organization.getOrganizationCode());

log.info("core biz result : {}",JSON.toJSONString(dingResult));

if(dingResult.isSuccess()){
DingOrgInfoDTO data = dingResult.getData();
String unifiedSocialCreditCode = data.getUnifiedSocialCreditCode();


Loading…
Cancel
Save