|
|
|
@ -39,7 +39,7 @@ import java.util.Locale;
|
|
|
|
|
*/
|
|
|
|
|
@Component
|
|
|
|
|
@Slf4j
|
|
|
|
|
public class MzZyyLisCollectJob {
|
|
|
|
|
public class MzZyyReportCollectJob {
|
|
|
|
|
@Autowired
|
|
|
|
|
private DownPlatformService downPlatformService;
|
|
|
|
|
@Autowired
|
|
|
|
@ -63,7 +63,7 @@ public class MzZyyLisCollectJob {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
final String fileTitle = "Lis检查报告单";
|
|
|
|
|
final String fileTitle = "LIS检查报告单";
|
|
|
|
|
|
|
|
|
|
ReportDownTwoDto downTwoDto = commonResult.getData();
|
|
|
|
|
ReportTaskTwoDto task = downTwoDto.getTasks().get(0);
|
|
|
|
@ -126,5 +126,21 @@ public class MzZyyLisCollectJob {
|
|
|
|
|
downPlatformService.report(reportDownDto);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@XxlJob("MzZyyShouMaCollectJob")
|
|
|
|
|
public void shouMaCollectJob() {
|
|
|
|
|
String configPath = "data-config";
|
|
|
|
|
String configName = "mzzyy-ws-config";
|
|
|
|
|
TableJsonRead jsonReader = new TableJsonRead();
|
|
|
|
|
JSONObject configOjb = jsonReader.Read(configPath, configName, JSONObject.class);
|
|
|
|
|
JSONObject lisWsConfig = configOjb.getJSONObject("shouMa");
|
|
|
|
|
String collectorId = lisWsConfig.getString("collectorId");
|
|
|
|
|
String assortId = lisWsConfig.getString("assortId");
|
|
|
|
|
|
|
|
|
|
CommonResult<ReportDownTwoDto> commonResult = taskDistributeService.getNoViewTaskByCollectorId(collectorId);
|
|
|
|
|
if (!ResultCode.SUCCESS.getCode().equals(commonResult.getCode())
|
|
|
|
|
|| commonResult.getData() == null) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|