|
|
@@ -2,6 +2,8 @@ package com.ydtech.modules.fnc.controller;
|
|
|
|
|
|
|
|
|
import com.ydtech.core.page.HttpResult;
|
|
|
+import com.ydtech.exception.SystemException;
|
|
|
+import com.ydtech.modules.esm.model.EsmInsCompany;
|
|
|
import com.ydtech.modules.fnc.entity.ImportResult;
|
|
|
import com.ydtech.modules.fnc.entity.InsPlyIncome;
|
|
|
import com.ydtech.modules.fnc.service.ImportAsyncService;
|
|
|
@@ -10,13 +12,12 @@ import com.ydtech.modules.fnc.vo.InsPlyIncomeVo;
|
|
|
import com.ydtech.modules.order.entity.BasePageResult;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
+import java.util.List;
|
|
|
|
|
|
@Api(tags = "异步导出")
|
|
|
@RequestMapping("/fnc/importAsync")
|
|
|
@@ -33,4 +34,20 @@ public class ImportAsyncController {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @version
|
|
|
+ * @author: hxl
|
|
|
+ * @Date: 2024/9/27 19:01
|
|
|
+ * @Description: 查询任务列表中的公司机构列表
|
|
|
+ */
|
|
|
+ @GetMapping("/queryPartnerCompaniesList")
|
|
|
+ @ApiOperation(value = "查询任务列表中的公司机构列表")
|
|
|
+ public HttpResult<List<EsmInsCompany>> queryPartnerCompaniesList(String status) {
|
|
|
+ if(StringUtils.isBlank(status)){
|
|
|
+ throw new SystemException("类型不能为空!!!");
|
|
|
+ }
|
|
|
+
|
|
|
+ List<EsmInsCompany> result=importAsyncService.queryPartnerCompaniesList(status);
|
|
|
+ return HttpResult.ok(result);
|
|
|
+ }
|
|
|
}
|