Browse Source

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

master
PoffyZhang 1 year ago
parent
commit
7bcde4b567
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/irs/controller/IrsController.java

+ 6
- 1
pmapi/src/main/java/com/ningdatech/pmapi/irs/controller/IrsController.java View File

@@ -10,6 +10,7 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -62,6 +63,10 @@ public class IrsController {
@ApiOperation(value = "强制刷新核心业务", notes = "强制刷新核心业务")
@GetMapping("/refresh-core-biz")
public void refreshCoreBiz(@RequestParam(required = false) String orgCode) throws UnknownHostException {
projectCoreBizTask.doTask(orgCode);
if(StringUtils.isNotBlank(orgCode)){
projectCoreBizTask.doTask(orgCode);
}else{
projectCoreBizTask.doTask();
}
}
}

Loading…
Cancel
Save