|
@@ -25,7 +25,7 @@ public class AutoDockItemService extends ServiceController {
|
|
|
@Override
|
|
|
public void serviceRun() throws YosException {
|
|
|
ArrayList<String> sqlList = new ArrayList<>();
|
|
|
- String siteid ="dlb";
|
|
|
+ String siteid ="DLB";
|
|
|
Rows rows = new DBConnect().runSqlQuery("select * from sys_parameter where paramname='AutoDockItemServiceTime'");
|
|
|
Date date =new Date();
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
@@ -55,7 +55,7 @@ public class AutoDockItemService extends ServiceController {
|
|
|
SQLFactory sqlFactory = new SQLFactory(new Item(jsonObject), "货品档案新增");
|
|
|
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
- sqlFactory.addParameter("itemid", createTableID("plm_item"));
|
|
|
+ sqlFactory.addParameter("itemid", itemid);
|
|
|
sqlFactory.addParameter("username", "admin");
|
|
|
sqlFactory.addParameter("userid", 1);
|
|
|
sqlFactory.addParameter("itemno", jsonObject.getString("fitemno"));
|
|
@@ -162,6 +162,7 @@ public class AutoDockItemService extends ServiceController {
|
|
|
sqlFactory.addParameter("prodline", "");
|
|
|
sqlFactory.addParameter("device", "");
|
|
|
|
|
|
+
|
|
|
sqlList.add(sqlFactory.getSQL());
|
|
|
|
|
|
}else{
|
|
@@ -171,6 +172,7 @@ public class AutoDockItemService extends ServiceController {
|
|
|
|
|
|
}
|
|
|
}
|
|
|
+ System.err.println(sqlList);
|
|
|
dbConnect.runSqlUpdate(sqlList);
|
|
|
Parameter.create(new BaseClass(),"AutoDockItemServiceTime",simpleDateFormat.format(new Date()),"");
|
|
|
}
|