|
@@ -611,12 +611,12 @@ public class ReportExportController {
|
|
/**
|
|
/**
|
|
* 新版企业承接任务的导出、任务中心单的导出
|
|
* 新版企业承接任务的导出、任务中心单的导出
|
|
*
|
|
*
|
|
- * @param wmScorePackage 积分包
|
|
|
|
|
|
+ * @param newReportExportDTO 参数
|
|
* @return 结果
|
|
* @return 结果
|
|
*/
|
|
*/
|
|
@SysLog("新版企业的报告导出")
|
|
@SysLog("新版企业的报告导出")
|
|
@GetMapping("/new-nba-export")
|
|
@GetMapping("/new-nba-export")
|
|
- public R<?> newDrugEntExport(WmScorePackage wmScorePackage) {
|
|
|
|
|
|
+ public R<?> newDrugEntExport(NewReportExportDTO newReportExportDTO) {
|
|
// 查询是否配置了模板
|
|
// 查询是否配置了模板
|
|
Integer deptId = SecurityUtils.getUser().getDeptId();
|
|
Integer deptId = SecurityUtils.getUser().getDeptId();
|
|
int count = reportHandlerDeptRelationMapper.selectCount(Wrappers.<ReportHandlerDeptRelation>lambdaQuery()
|
|
int count = reportHandlerDeptRelationMapper.selectCount(Wrappers.<ReportHandlerDeptRelation>lambdaQuery()
|
|
@@ -626,7 +626,7 @@ public class ReportExportController {
|
|
return R.failed("该企业尚未配置新模版,请联系客服人员进行模版配置");
|
|
return R.failed("该企业尚未配置新模版,请联系客服人员进行模版配置");
|
|
}
|
|
}
|
|
|
|
|
|
- String key = String.format(CacheConstants.NEW_DRUG_ENT_REPORT_CACHE, wmScorePackage.getId());
|
|
|
|
|
|
+ String key = String.format(CacheConstants.NEW_DRUG_ENT_REPORT_CACHE, newReportExportDTO.getId());
|
|
|
|
|
|
String o = redisTemplate.opsForValue().get(key);
|
|
String o = redisTemplate.opsForValue().get(key);
|
|
|
|
|
|
@@ -637,9 +637,9 @@ public class ReportExportController {
|
|
}
|
|
}
|
|
|
|
|
|
BaseMap map = new BaseMap();
|
|
BaseMap map = new BaseMap();
|
|
- map.put("requestBody", JSONUtil.toJsonStr(wmScorePackage));
|
|
|
|
|
|
+ map.put("requestBody", JSONUtil.toJsonStr(newReportExportDTO));
|
|
|
|
|
|
- rabbitMqClient.sendMessage(MqConstants.DIRECT_MODE_NEW_NBA_REPORT_EXPORT_QUEUE, map);
|
|
|
|
|
|
+ rabbitMqClient.sendMessage(MqConstants.DIRECT_MODE_NEW_DRUG_ENT_REPORT_EXPORT_QUEUE, map);
|
|
|
|
|
|
redisTemplate.opsForValue().set(key, WmReportOpt.WmReportOptStatus.GENERATING.name(),
|
|
redisTemplate.opsForValue().set(key, WmReportOpt.WmReportOptStatus.GENERATING.name(),
|
|
CacheConstants.DEF_REPORT_CREATING_TTL , TimeUnit.MILLISECONDS);
|
|
CacheConstants.DEF_REPORT_CREATING_TTL , TimeUnit.MILLISECONDS);
|