fix: 接口注释修改

docus-active-query-service_1.3
wyb 4 months ago
parent 343ab80b1e
commit 51b8167055

@ -1,14 +1,11 @@
package com.docus.bgts.config; package com.docus.bgts.config;
import com.docus.bgts.enums.Codes;
import com.docus.bgts.facade.IBgtsService; import com.docus.bgts.facade.IBgtsService;
import com.docus.bgts.utils.FileUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy; import javax.annotation.PreDestroy;
@Component @Component
@ -22,16 +19,16 @@ public class MyConstruct {
/** /**
* *
*/ */
@PostConstruct // @PostConstruct
public void startCollectAll(){ // public void startCollectAll(){
logger.info("全量采集开始------"); // logger.info("全量采集开始------");
String collectorid = String.valueOf(FileUtils.getJsonByName("collectorid")); // String collectorid = String.valueOf(FileUtils.getJsonByName("collectorid"));
String startCollectTime = String.valueOf(FileUtils.getJsonByName("startCollectTime")); // String startCollectTime = String.valueOf(FileUtils.getJsonByName("startCollectTime"));
String isStartCollect = String.valueOf(FileUtils.getJsonByName("isStartCollect")); // String isStartCollect = String.valueOf(FileUtils.getJsonByName("isStartCollect"));
if(collectorid.equals(Codes.SMCODE.getCode())&& StringUtils.isNotBlank(startCollectTime)&&isStartCollect!=null&&isStartCollect.equals("1")){ // if(collectorid.equals(Codes.SMCODE.getCode())&& StringUtils.isNotBlank(startCollectTime)&&isStartCollect!=null&&isStartCollect.equals("1")){
bgtsService.collectAll(); // bgtsService.collectAll();
} // }
} // }
/** /**
* *

@ -1,6 +1,5 @@
package com.docus.bgts.config; package com.docus.bgts.config;
import com.docus.bgts.enums.Codes;
import com.docus.bgts.facade.IBgtsService; import com.docus.bgts.facade.IBgtsService;
import com.docus.bgts.service.CheckIntegrityService; import com.docus.bgts.service.CheckIntegrityService;
import com.docus.bgts.utils.FileUtils; import com.docus.bgts.utils.FileUtils;
@ -62,14 +61,15 @@ public class MyScheduling {
* / * /
* 10 * 10
*/ */
@Scheduled(fixedRate = 1000 * 60 * 10) // @Scheduled(fixedRate = 1000 * 60 * 10)
public void collect() { // public void collect() {
String collectorid = String.valueOf(FileUtils.getJsonByName("collectorid")); // String collectorid = String.valueOf(FileUtils.getJsonByName("collectorid"));
if ((!collectorid.equals(Codes.SMCODE.getCode())) && (!collectorid.equals(Codes.ZZCODE.getCode()))) { // if ((!collectorid.equals(Codes.SMCODE.getCode())) && (!collectorid.equals(Codes.ZZCODE.getCode()))) {
return; // return;
} // }
bgtsService.timerCollect(); // bgtsService.timerCollect();
} // }
// //
// // 时间 // // 时间
// private static List<String> date = new ArrayList<>(); // private static List<String> date = new ArrayList<>();
@ -149,23 +149,23 @@ public class MyScheduling {
// //
// } // }
// //
// @Scheduled(cron ="0 0 0 * * ?") @Scheduled(cron ="0 0 0 * * ?")
// public void collect(){ public void collect(){
// String intervalDayOpen = String.valueOf(FileUtils.getJsonByName("intervalDayOpen")); String intervalDayOpen = String.valueOf(FileUtils.getJsonByName("intervalDayOpen"));
// if (intervalDayOpen.equals("1")){ if (intervalDayOpen.equals("1")){
// try{ try{
// String collectorid = String.valueOf(FileUtils.getJsonByName("collectorid")); String collectorid = String.valueOf(FileUtils.getJsonByName("collectorid"));
// int day = Integer.parseInt(String.valueOf(FileUtils.getJsonByName("intervalDay"))); int day = Integer.parseInt(String.valueOf(FileUtils.getJsonByName("intervalDay")));
// logger.info("0点采集前"+day+"天出院数据"); logger.info("0点采集前"+day+"天出院数据");
// Map<String, String> dateCollectionTime = getDateCollectionTime(new Date(), day); Map<String, String> dateCollectionTime = getDateCollectionTime(new Date(), day);
// logger.info("采集"+dateCollectionTime.get("startDate")+"至-------"+dateCollectionTime.get("endDate")+"数据"); logger.info("采集"+dateCollectionTime.get("startDate")+"至-------"+dateCollectionTime.get("endDate")+"数据");
// bgtsService.collectByDate(dateCollectionTime.get("startDate"),dateCollectionTime.get("endDate"),collectorid,String.valueOf(0)); bgtsService.collectByDate(dateCollectionTime.get("startDate"),dateCollectionTime.get("endDate"),collectorid,String.valueOf(0));
// }catch (Exception e) { }catch (Exception e) {
// logger.error("pacs二次采集出错---"+e.getMessage()); logger.error("pacs二次采集出错---"+e.getMessage());
// } }
//
// } }
// } }
/** /**

@ -5,7 +5,6 @@ import com.docus.bgts.config.MyScheduling;
import com.docus.bgts.entity.CommonResult; import com.docus.bgts.entity.CommonResult;
import com.docus.bgts.facade.IAfCollectTaskService; import com.docus.bgts.facade.IAfCollectTaskService;
import com.docus.bgts.facade.IBgtsService; import com.docus.bgts.facade.IBgtsService;
import com.docus.bgts.facade.IMzSyncService;
import com.docus.bgts.service.CheckIntegrityService; import com.docus.bgts.service.CheckIntegrityService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
@ -18,8 +17,6 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.Date;
@Api(value = "采集接口", tags = "采集接口") @Api(value = "采集接口", tags = "采集接口")
@RestController @RestController
@ -36,194 +33,194 @@ public class BgtsController {
@Autowired @Autowired
IAfCollectTaskService afCollectTaskService; IAfCollectTaskService afCollectTaskService;
// @ApiOperation("完整性同步程序开关0关闭 1开启") @ApiOperation("完整性同步程序开关0关闭 1开启")
// @GetMapping("/onOffSync") @GetMapping("/onOffSync")
// public void onOffSync(@RequestParam(value = "flag",defaultValue = "0") String flag){ public void onOffSync(@RequestParam(value = "flag",defaultValue = "0") String flag){
// MyScheduling.syncFlag=flag; MyScheduling.syncFlag=flag;
// } }
//
// @GetMapping("/addSyncIntegrality") @GetMapping("/addSyncIntegrality")
// public void addSyncIntegrality(@RequestParam("startDate")String startDate,String endDate){ public void addSyncIntegrality(@RequestParam("startDate")String startDate,String endDate){
// checkIntegrityService.addSyncIntegrality(startDate,endDate); checkIntegrityService.addSyncIntegrality(startDate,endDate);
// } }
//
// @GetMapping("/addSyncIntegralityByJzhs")
// public CommonResult<String> addSyncIntegrality(@RequestParam("jzhs")String jzhs){
// if(jzhs.split(",").length > 100){
// return CommonResult.failed("jzh个数不能超过100个");
// }
// checkIntegrityService.addSyncIntegralityByJzhs(jzhs);
// return CommonResult.success("完成");
// }
// @ApiOperation("采集接口") @GetMapping("/addSyncIntegralityByJzhs")
// @ApiImplicitParams({ public CommonResult<String> addSyncIntegrality(@RequestParam("jzhs")String jzhs){
// @ApiImplicitParam(name = "empId",value = "患者主索引号",required = true,dataTypeClass = String.class), if(jzhs.split(",").length > 100){
// @ApiImplicitParam(name = "collectSubId",value = "af_interface_collect_sub表id",required = true) return CommonResult.failed("jzh个数不能超过100个");
// }) }
// @GetMapping("/collect") checkIntegrityService.addSyncIntegralityByJzhs(jzhs);
// public CommonResult<String> collect(@RequestParam("collectSubId") String collectSubId, return CommonResult.success("完成");
// @RequestParam("empId") String empId) { }
// try {
// logger.info("采集接口接收到参数:\nempId--"+empId+"\ncollectSubId--"+collectSubId);
// bgtsService.collect(empId);
// logger.info("采集完成");
// afCollectTaskService.updateInterfaceCollect(collectSubId, 1);
// logger.info("------------采集结束-----------");
// } catch (RuntimeException e) {
// e.printStackTrace();
// try {
// afCollectTaskService.updateInterfaceCollect(collectSubId, 0);
// }catch (Exception e1) {
// logger.info(e1.getMessage());
// return CommonResult.failed(e1.getMessage());
// }
// return CommonResult.failed(e.getMessage());
// }
// catch (Exception e) {
// e.printStackTrace();
// }catch (Throwable t){
// t.printStackTrace();
// logger.error("throwable{}", t.getMessage());
// }
// return CommonResult.success("ok");
// }
//
// @ApiOperation("Pacs采集接口")
// @ApiImplicitParams({
// @ApiImplicitParam(name = "empId",value = "患者主索引号",required = true,dataTypeClass = String.class),
// @ApiImplicitParam(name = "collectSubId",value = "af_interface_collect_sub表id",required = true),
// @ApiImplicitParam(name = "admissDate",value = "入院时间",required = true),
// @ApiImplicitParam(name = "disDate",value = "出院时间",required = true),
// @ApiImplicitParam(name = "times",value = "住院次数",required = true)
// })
// @GetMapping("/collectPacs")
// public CommonResult<String> collect(@RequestParam("collectSubId") String collectSubId,
// @RequestParam("empId") String empId,
// @RequestParam("admissDate") String admissDate,
// @RequestParam("disDate") String disDate,
// @RequestParam("times") String times){
// try {
// logger.info("采集接口接收到参数:\nempId--"+empId+"\ncollectSubId--"+collectSubId);
// bgtsService.collectPacs(empId,admissDate,disDate,times);
// logger.info("采集完成");
// afCollectTaskService.updateInterfaceCollect(collectSubId, 1);
// logger.info("------------采集结束-----------");
// } catch (RuntimeException e) {
// e.printStackTrace();
// try {
// afCollectTaskService.updateInterfaceCollect(collectSubId, 0);
// }catch (Exception e1) {
// logger.info(e1.getMessage());
// return CommonResult.failed(e1.getMessage());
// }
// return CommonResult.failed(e.getMessage());
// }
// catch (Exception e) {
// e.printStackTrace();
// }
// return CommonResult.success("ok");
// }
//
// @ApiOperation("动态心电采集接口") @ApiOperation("采集接口")
// @ApiImplicitParams({ @ApiImplicitParams({
// @ApiImplicitParam(name = "empId",value = "患者主索引号",required = true,dataTypeClass = String.class), @ApiImplicitParam(name = "empId",value = "患者主索引号",required = true,dataTypeClass = String.class),
// @ApiImplicitParam(name = "collectSubId",value = "af_interface_collect_sub表id",required = true), @ApiImplicitParam(name = "collectSubId",value = "af_interface_collect_sub表id",required = true)
// @ApiImplicitParam(name = "admissDate",value = "入院时间",required = true), })
// @ApiImplicitParam(name = "disDate",value = "出院时间",required = true), @GetMapping("/collect")
// @ApiImplicitParam(name = "times",value = "住院次数",required = true) public CommonResult<String> collect(@RequestParam("collectSubId") String collectSubId,
// }) @RequestParam("empId") String empId) {
// @GetMapping("/collectEcg") try {
// public CommonResult<String> collectEcg(@RequestParam("collectSubId") String collectSubId, logger.info("采集接口接收到参数:\nempId--"+empId+"\ncollectSubId--"+collectSubId);
// @RequestParam("empId") String empId, bgtsService.collect(empId);
// @RequestParam("admissDate") String admissDate, logger.info("采集完成");
// @RequestParam("disDate") String disDate, afCollectTaskService.updateInterfaceCollect(collectSubId, 1);
// @RequestParam("times") String times){ logger.info("------------采集结束-----------");
// try { } catch (RuntimeException e) {
// logger.info("采集接口接收到参数:\nempId--"+empId+"\ncollectSubId--"+collectSubId); e.printStackTrace();
// bgtsService.collectEcg(empId,admissDate,disDate,times); try {
// logger.info("采集完成"); afCollectTaskService.updateInterfaceCollect(collectSubId, 0);
// afCollectTaskService.updateInterfaceCollect(collectSubId, 1); }catch (Exception e1) {
// logger.info("------------采集结束-----------"); logger.info(e1.getMessage());
// } catch (RuntimeException e) { return CommonResult.failed(e1.getMessage());
// e.printStackTrace(); }
// try { return CommonResult.failed(e.getMessage());
// afCollectTaskService.updateInterfaceCollect(collectSubId, 0); }
// }catch (Exception e1) { catch (Exception e) {
// logger.info(e1.getMessage()); e.printStackTrace();
// return CommonResult.failed(e1.getMessage()); }catch (Throwable t){
// } t.printStackTrace();
// return CommonResult.failed(e.getMessage()); logger.error("throwable{}", t.getMessage());
// } }
// catch (Exception e) { return CommonResult.success("ok");
// e.printStackTrace(); }
// }
// return CommonResult.success("ok");
// }
// /** @ApiOperation("Pacs采集接口")
// * 按需采集 @ApiImplicitParams({
// * @param emamNo @ApiImplicitParam(name = "empId",value = "患者主索引号",required = true,dataTypeClass = String.class),
// * @return @ApiImplicitParam(name = "collectSubId",value = "af_interface_collect_sub表id",required = true),
// */ @ApiImplicitParam(name = "admissDate",value = "入院时间",required = true),
// @ApiOperation("按需采集接口") @ApiImplicitParam(name = "disDate",value = "出院时间",required = true),
// @ApiImplicitParams({ @ApiImplicitParam(name = "times",value = "住院次数",required = true)
// @ApiImplicitParam(name = "emamNo",value = "报告单号",required = true,dataTypeClass = String.class), })
// @ApiImplicitParam(name = "empId",value = "患者主索引号",required = true,dataTypeClass = String.class) @GetMapping("/collectPacs")
// }) public CommonResult<String> collect(@RequestParam("collectSubId") String collectSubId,
// @GetMapping("/collectByExamNo") @RequestParam("empId") String empId,
// public CommonResult<String> collectByExamNo(@RequestParam("emamNo") String emamNo, @RequestParam("admissDate") String admissDate,
// @RequestParam("empId") String empId){ @RequestParam("disDate") String disDate,
// try { @RequestParam("times") String times){
// logger.info("按需采集接口接受参数:\nempId--"+empId+"\nemamNo--"+emamNo); try {
// bgtsService.collectByExamNo(emamNo,empId); logger.info("采集接口接收到参数:\nempId--"+empId+"\ncollectSubId--"+collectSubId);
//// afCollectTaskService.updateInterfaceCollect(collectSubId, 1); bgtsService.collectPacs(empId,admissDate,disDate,times);
// }catch (RuntimeException e) { logger.info("采集完成");
// e.printStackTrace(); afCollectTaskService.updateInterfaceCollect(collectSubId, 1);
// return CommonResult.failed(e.getMessage()); logger.info("------------采集结束-----------");
// } } catch (RuntimeException e) {
// catch (Exception e) { e.printStackTrace();
// e.printStackTrace(); try {
// } afCollectTaskService.updateInterfaceCollect(collectSubId, 0);
// return CommonResult.success("ok"); }catch (Exception e1) {
// } logger.info(e1.getMessage());
return CommonResult.failed(e1.getMessage());
}
return CommonResult.failed(e.getMessage());
}
catch (Exception e) {
e.printStackTrace();
}
return CommonResult.success("ok");
}
// /**
// * 按需采集
// */
// @GetMapping("/collectByEx")
// public CommonResult<String> collectByEx(@RequestParam("empId") String empId){
// try{
// bgtsService.collect(empId);
// }catch (Exception e){
// e.printStackTrace();
// return CommonResult.failed(e.getMessage());
// }
// return CommonResult.success("ok");
// }
// /** @ApiOperation("动态心电采集接口")
// * pacs按需采集 @ApiImplicitParams({
// */ @ApiImplicitParam(name = "empId",value = "患者主索引号",required = true,dataTypeClass = String.class),
// @ApiOperation("pacs按需采集接口") @ApiImplicitParam(name = "collectSubId",value = "af_interface_collect_sub表id",required = true),
// @GetMapping("/collectByPacs") @ApiImplicitParam(name = "admissDate",value = "入院时间",required = true),
// public CommonResult<String> collectByPacs(){ @ApiImplicitParam(name = "disDate",value = "出院时间",required = true),
// try{ @ApiImplicitParam(name = "times",value = "住院次数",required = true)
// bgtsService.collectPacss(); })
// }catch (Exception e){ @GetMapping("/collectEcg")
// e.printStackTrace(); public CommonResult<String> collectEcg(@RequestParam("collectSubId") String collectSubId,
// return CommonResult.failed(e.getMessage()); @RequestParam("empId") String empId,
// } @RequestParam("admissDate") String admissDate,
// return CommonResult.success("ok"); @RequestParam("disDate") String disDate,
// } @RequestParam("times") String times){
try {
logger.info("采集接口接收到参数:\nempId--"+empId+"\ncollectSubId--"+collectSubId);
bgtsService.collectEcg(empId,admissDate,disDate,times);
logger.info("采集完成");
afCollectTaskService.updateInterfaceCollect(collectSubId, 1);
logger.info("------------采集结束-----------");
} catch (RuntimeException e) {
e.printStackTrace();
try {
afCollectTaskService.updateInterfaceCollect(collectSubId, 0);
}catch (Exception e1) {
logger.info(e1.getMessage());
return CommonResult.failed(e1.getMessage());
}
return CommonResult.failed(e.getMessage());
}
catch (Exception e) {
e.printStackTrace();
}
return CommonResult.success("ok");
}
/**
*
* @param emamNo
* @return
*/
@ApiOperation("按需采集接口")
@ApiImplicitParams({
@ApiImplicitParam(name = "emamNo",value = "报告单号",required = true,dataTypeClass = String.class),
@ApiImplicitParam(name = "empId",value = "患者主索引号",required = true,dataTypeClass = String.class)
})
@GetMapping("/collectByExamNo")
public CommonResult<String> collectByExamNo(@RequestParam("emamNo") String emamNo,
@RequestParam("empId") String empId){
try {
logger.info("按需采集接口接受参数:\nempId--"+empId+"\nemamNo--"+emamNo);
bgtsService.collectByExamNo(emamNo,empId);
// afCollectTaskService.updateInterfaceCollect(collectSubId, 1);
}catch (RuntimeException e) {
e.printStackTrace();
return CommonResult.failed(e.getMessage());
}
catch (Exception e) {
e.printStackTrace();
}
return CommonResult.success("ok");
}
/**
*
*/
@GetMapping("/collectByEx")
public CommonResult<String> collectByEx(@RequestParam("empId") String empId){
try{
bgtsService.collect(empId);
}catch (Exception e){
e.printStackTrace();
return CommonResult.failed(e.getMessage());
}
return CommonResult.success("ok");
}
/**
* pacs
*/
@ApiOperation("pacs按需采集接口")
@GetMapping("/collectByPacs")
public CommonResult<String> collectByPacs(){
try{
bgtsService.collectPacss();
}catch (Exception e){
e.printStackTrace();
return CommonResult.failed(e.getMessage());
}
return CommonResult.success("ok");
}
@ApiOperation("手麻根据出院时间区间补偿采集接口") @ApiOperation("手麻根据出院时间区间补偿采集接口")
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "startDate",value = "开始时间",required = true), @ApiImplicitParam(name = "startDate",value = "开始时间",required = true),
@ApiImplicitParam(name = "endDate",value = "结束时间",required = true) @ApiImplicitParam(name = "endDate",value = "结束时间",required = true)
}) })
@GetMapping("/collectPacsCompensate") @GetMapping("/collectSmCompensate")
public CommonResult<String> collectSm( public CommonResult<String> collectSm(
@RequestParam("startDate") String startDate, @RequestParam("startDate") String startDate,
@RequestParam("endDate") String endDate){ @RequestParam("endDate") String endDate){
@ -243,68 +240,68 @@ public class BgtsController {
} }
return CommonResult.success("ok"); return CommonResult.success("ok");
} }
//
// @ApiOperation("Pacs补偿采集接口") @ApiOperation("Pacs补偿采集接口")
// @ApiImplicitParams({ @ApiImplicitParams({
// @ApiImplicitParam(name = "empId",value = "住院号",required = true,dataTypeClass = String.class), @ApiImplicitParam(name = "empId",value = "住院号",required = true,dataTypeClass = String.class),
// @ApiImplicitParam(name = "admissDate",value = "入院时间",required = true), @ApiImplicitParam(name = "admissDate",value = "入院时间",required = true),
// @ApiImplicitParam(name = "disDate",value = "出院时间",required = true), @ApiImplicitParam(name = "disDate",value = "出院时间",required = true),
// @ApiImplicitParam(name = "times",value = "住院次数",required = true) @ApiImplicitParam(name = "times",value = "住院次数",required = true)
// }) })
// @GetMapping("/collectPacsCompensate") @GetMapping("/collectPacsCompensate")
// public CommonResult<String> collectPacs( public CommonResult<String> collectPacs(
// @RequestParam("empId") String empId, @RequestParam("empId") String empId,
// @RequestParam("admissDate") String admissDate, @RequestParam("admissDate") String admissDate,
// @RequestParam("disDate") String disDate, @RequestParam("disDate") String disDate,
// @RequestParam("times") String times){ @RequestParam("times") String times){
// try { try {
// logger.info("采集接口接收到参数:\nempId--"+empId); logger.info("采集接口接收到参数:\nempId--"+empId);
// bgtsService.collectPacs(empId,admissDate,disDate,times); bgtsService.collectPacs(empId,admissDate,disDate,times);
// logger.info("采集完成"); logger.info("采集完成");
// logger.info("------------采集结束-----------"); logger.info("------------采集结束-----------");
// } catch (RuntimeException e) { } catch (RuntimeException e) {
// e.printStackTrace(); e.printStackTrace();
// try { try {
// }catch (Exception e1) { }catch (Exception e1) {
// logger.info(e1.getMessage()); logger.info(e1.getMessage());
// return CommonResult.failed(e1.getMessage()); return CommonResult.failed(e1.getMessage());
// } }
// return CommonResult.failed(e.getMessage()); return CommonResult.failed(e.getMessage());
// } }
// catch (Exception e) { catch (Exception e) {
// e.printStackTrace(); e.printStackTrace();
// } }
// return CommonResult.success("ok"); return CommonResult.success("ok");
// } }
//
// @ApiOperation("Pacs根据出院时间区间补偿采集接口") @ApiOperation("Pacs根据出院时间区间补偿采集接口")
// @ApiImplicitParams({ @ApiImplicitParams({
// @ApiImplicitParam(name = "startDate",value = "开始时间",required = true), @ApiImplicitParam(name = "startDate",value = "开始时间",required = true),
// @ApiImplicitParam(name = "endDate",value = "结束时间",required = true) @ApiImplicitParam(name = "endDate",value = "结束时间",required = true)
// }) })
// @GetMapping("/collectPacsByDate") @GetMapping("/collectPacsByDate")
// public CommonResult<String> collectPacsByDate( public CommonResult<String> collectPacsByDate(
// @RequestParam("startDate") String startDate, @RequestParam("startDate") String startDate,
// @RequestParam("endDate") String endDate){ @RequestParam("endDate") String endDate){
// try { try {
// logger.info("根据出院时间区间补偿采集接口收到参数:\n"+startDate+"\t"+endDate); logger.info("根据出院时间区间补偿采集接口收到参数:\n"+startDate+"\t"+endDate);
// bgtsService.collectPacsByDate(startDate,endDate); bgtsService.collectPacsByDate(startDate,endDate);
// logger.info("采集完成"); logger.info("采集完成");
// logger.info("------------采集结束-----------"); logger.info("------------采集结束-----------");
// } catch (RuntimeException e) { } catch (RuntimeException e) {
// e.printStackTrace(); e.printStackTrace();
// try { try {
// }catch (Exception e1) { }catch (Exception e1) {
// logger.info(e1.getMessage()); logger.info(e1.getMessage());
// return CommonResult.failed(e1.getMessage()); return CommonResult.failed(e1.getMessage());
// } }
// return CommonResult.failed(e.getMessage()); return CommonResult.failed(e.getMessage());
// } }
// catch (Exception e) { catch (Exception e) {
// e.printStackTrace(); e.printStackTrace();
// } }
// return CommonResult.success("ok"); return CommonResult.success("ok");
// } }

Loading…
Cancel
Save