|
|
@@ -29,9 +29,10 @@ public class UpdateBasicDataToWms extends ServiceController {
|
|
|
|
|
|
|
|
|
public void getItem() throws YosException {
|
|
|
- QuerySQL querySQL = SQLFactory.createQuerySQL(dbConnect, "plm_item", "itemno", "itemname", "subString(model,0,50)model", "spec", "stockno", "shapesize").setTableAlias("t1");
|
|
|
+ QuerySQL querySQL = SQLFactory.createQuerySQL(dbConnect, "plm_item", "itemno", "itemname", "spec", "stockno", "shapesize").setTableAlias("t1");
|
|
|
querySQL.addJoinTable(JOINTYPE.left, "plm_unit", "t2", "unitid=:unitid", "unitname");
|
|
|
querySQL.setWhere("siteid", "MD").setWhere("(t1.wmsuploadflag<2) and (t1.stockno='101' or t1.createby!='U8')");
|
|
|
+ querySQL.addQueryFields("model", "subString(t1.model,0,50)");
|
|
|
Rows itemRows = querySQL.query();
|
|
|
|
|
|
if (itemRows.isNotEmpty()) {
|