|
|
@@ -5,6 +5,7 @@ import cn.com.yusys.yusp.commons.module.adapter.web.rest.ResultDto;
|
|
|
import cn.com.yusys.yusp.domain.entity.AitagTagLogEntity;
|
|
|
import cn.com.yusys.yusp.domain.vo.*;
|
|
|
import cn.com.yusys.yusp.service.AitagTagLogService;
|
|
|
+import cn.com.yusys.yusp.service.DistributedScheduledTask;
|
|
|
import com.alibaba.excel.EasyExcel;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
@@ -110,39 +111,6 @@ public class AitagTagLogController {
|
|
|
return ResultDto.success(taggingDetailsResDTO);
|
|
|
}
|
|
|
|
|
|
-// /**
|
|
|
-// * 导出数据
|
|
|
-// *
|
|
|
-// * @param transactionReqVo
|
|
|
-// * @return ResultDto
|
|
|
-// */
|
|
|
-// @ApiOperation("导出数据")
|
|
|
-// @PostMapping("/exportData")
|
|
|
-// public void exportData(@RequestBody TaggingTransactionReqVo transactionReqVo,HttpServletResponse response) throws IOException {
|
|
|
-// List<AitagTagLogEntity> aitagTagLogEntities = aitagTagLogService.queryList(transactionReqVo);
|
|
|
-// List<ExportDataVo> exportDataVos = new ArrayList<>();
|
|
|
-// for (AitagTagLogEntity aitagTagLog:aitagTagLogEntities) {
|
|
|
-// ExportDataVo exportDataVo = JSONObject.parseObject(JSONObject.toJSONString(aitagTagLog), ExportDataVo.class);
|
|
|
-// if(FEEDBACK_RESULT_REJECT.equals(aitagTagLog.getFeedback())){
|
|
|
-// String feedbackResult = aitagTagLog.getFeedbackResult();
|
|
|
-// exportDataVo.setResult(getTags(feedbackResult));
|
|
|
-// }else{
|
|
|
-// String result = aitagTagLog.getResult();
|
|
|
-// exportDataVo.setResult(getTags(result));
|
|
|
-// }
|
|
|
-// exportDataVos.add(exportDataVo);
|
|
|
-// }
|
|
|
-// // 2. 设置响应头(防止中文乱码)
|
|
|
-// response.reset();
|
|
|
-// response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
|
|
-// response.setCharacterEncoding("utf-8");
|
|
|
-// String fileName = URLEncoder.encode("导出标签", "UTF-8").replaceAll("\\+", "%20");
|
|
|
-// response.setHeader("Content-Disposition", "attachment; filename*=utf-8''" + fileName + ".xlsx");
|
|
|
-// EasyExcel.write(response.getOutputStream(), ExportDataVo.class)
|
|
|
-// .sheet("标签数据")
|
|
|
-// .doWrite(exportDataVos);
|
|
|
-// }
|
|
|
-
|
|
|
|
|
|
/**
|
|
|
* 导出数据
|
|
|
@@ -195,5 +163,4 @@ public class AitagTagLogController {
|
|
|
return stringBuilder.toString();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
}
|