添加pms/pq系统标识

This commit is contained in:
2023-08-03 14:36:11 +08:00
parent 87df2c68d8
commit d11003f530
2 changed files with 15 additions and 0 deletions

View File

@@ -12,9 +12,11 @@ import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import springfox.documentation.annotations.ApiIgnore;
import java.util.List;
@@ -104,5 +106,12 @@ public interface CommTerminalGeneralClient {
@PostMapping("/deptGetLineIds")
HttpResult<List<DeptGetChildrenDTO>> deptGetLineList(@RequestBody DeptGetLineParam deptGetLineParam);
/**
* 用于返回pq 还是pms系统
* @author cdf
* @date 2023/8/3
*/
@GetMapping("isPqOrPms")
HttpResult<String> isPqOrPms();
}

View File

@@ -79,6 +79,12 @@ public class CommTerminalGeneralClientFallbackFactory implements FallbackFactory
throw new BusinessException(finalExceptionEnum);
}
@Override
public HttpResult<String> isPqOrPms() {
log.error("{}异常,降级处理,异常为:{}", "返回pq还是pms系统", throwable.toString());
throw new BusinessException(finalExceptionEnum);
}
};
}
}