|
|
@@ -9,7 +9,7 @@ import common.data.SQLFactory;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
-public class AutoCreateSurgeryForecast extends ServiceController {
|
|
|
+ public class AutoCreateSurgeryForecast extends ServiceController {
|
|
|
@Override
|
|
|
public void serviceRun() throws Exception {
|
|
|
currentyear();
|
|
|
@@ -22,7 +22,7 @@ public class AutoCreateSurgeryForecast extends ServiceController {
|
|
|
for (Row row : rows) {
|
|
|
String siteid = row.getString("siteid");
|
|
|
Long sa_customersid = row.getLong("sa_customersid");
|
|
|
- int nextyear = row.getInteger("nextyear");
|
|
|
+ String nextyear = row.getString("nextyear");
|
|
|
InsertSQL insertSQL = SQLFactory.createInsertSQL(dbConnect, "sa_surgeryforecast");
|
|
|
insertSQL.setSiteid(siteid);
|
|
|
insertSQL.setValue("sa_customersid", sa_customersid);
|