|
@@ -67,9 +67,10 @@ public class PushDataToSftp implements IPushInitForecastData {
|
|
public Boolean pushDQData(Station station) {
|
|
public Boolean pushDQData(Station station) {
|
|
Boolean result = false;
|
|
Boolean result = false;
|
|
String stationCode = station.getStationCode();
|
|
String stationCode = station.getStationCode();
|
|
|
|
+ String signCode = station.getSignCode();
|
|
String newFilePath = drFilePath + stationCode + File.separatorChar;
|
|
String newFilePath = drFilePath + stationCode + File.separatorChar;
|
|
String todayStr = DateUtil.format(DateUtil.date(), "yyyyMMdd");
|
|
String todayStr = DateUtil.format(DateUtil.date(), "yyyyMMdd");
|
|
- String newFileName = "modeloutput-" + stationCode + "J001-" + todayStr + "AM.txt";
|
|
|
|
|
|
+ String newFileName = "modeloutput-" + signCode + "J001-" + todayStr + "AM.txt";
|
|
String templateName = File.separatorChar + "vms" + File.separatorChar + "DR_DQ.vm";
|
|
String templateName = File.separatorChar + "vms" + File.separatorChar + "DR_DQ.vm";
|
|
result = pushCommon.pushDQData(station, station.getInCode(), newFilePath, newFileName, templateName);
|
|
result = pushCommon.pushDQData(station, station.getInCode(), newFilePath, newFileName, templateName);
|
|
return result;
|
|
return result;
|
|
@@ -79,9 +80,10 @@ public class PushDataToSftp implements IPushInitForecastData {
|
|
public Boolean pushNWPData(Station station) {
|
|
public Boolean pushNWPData(Station station) {
|
|
Boolean result = false;
|
|
Boolean result = false;
|
|
String stationCode = station.getStationCode();
|
|
String stationCode = station.getStationCode();
|
|
|
|
+ String signCode = station.getSignCode();
|
|
String newFilePath = drFilePath + stationCode + File.separatorChar;
|
|
String newFilePath = drFilePath + stationCode + File.separatorChar;
|
|
String todayStr = DateUtil.format(DateUtil.date(), "yyyyMMdd");
|
|
String todayStr = DateUtil.format(DateUtil.date(), "yyyyMMdd");
|
|
- String newFileName = "modeloutput-" + stationCode + "J001-" + todayStr + "NWP.txt";
|
|
|
|
|
|
+ String newFileName = "modeloutput-" + signCode + "J001-" + todayStr + "NWP.txt";
|
|
String templateName = File.separatorChar + "vms" + File.separatorChar + "DR_NWP.vm";
|
|
String templateName = File.separatorChar + "vms" + File.separatorChar + "DR_NWP.vm";
|
|
result = pushCommon.pushNWPData(station, station.getInCode(), newFilePath, newFileName, templateName);
|
|
result = pushCommon.pushNWPData(station, station.getInCode(), newFilePath, newFileName, templateName);
|
|
return result;
|
|
return result;
|