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