|
|
@@ -55,12 +55,12 @@ public class UpdateBasicDataToWms extends ServiceController {
|
|
|
String Standard = model + ";" + spec;
|
|
|
|
|
|
if (tqitems.contains(itemno)) {
|
|
|
- TQSqlist.add("update TMaterialsInt set ModifyDate=getDate(),StoreNo='101',Status=0, MaterialCNName='" + itemname + "',Mode='" + Standard + "',Unit='" + unitname + "',Standard='" + Standard + "' where MaterialCode='" + itemno + "' and (MaterialCNName!='" + itemname + "' or Mode!='" + Standard + "' or Unit!='" + unitname + "' or Standard!='" + Standard + "')");
|
|
|
+ TQSqlist.add("update TMaterialsInt set ModifyDate=getDate(),StoreNo='101',Status=0, MaterialCNName='" + itemname + "',Mode='" + Standard + "',Unit='" + unitname + "',Standard='" + Standard + "' where MaterialCode='" + itemno + "' and (isnull(MaterialCNName,'')!='" + itemname + "' or isnull(Mode,'')!='" + Standard + "' or isnull(Unit,'')!='" + unitname + "' or isnull(Standard,'')!='" + Standard + "')");
|
|
|
} else {
|
|
|
TQSqlist.add("insert into TMaterialsInt(MaterialCode,MaterialCNName,CreateDate,ModifyDate,IsDeleted,Mode,Unit,Standard,StoreNo,Status) values('" + itemno + "','" + itemname + "',getDate(),getDate(),0,'" + Standard + "','" + unitname + "','" + Standard + "','101',0 )");
|
|
|
}
|
|
|
|
|
|
- MQSqlist.add("update inventory set fshapesize='" + shapesize + "' where cinvcode='" + itemno + "' and fshapesize!='" + shapesize + "'");
|
|
|
+ MQSqlist.add("update inventory set fshapesize='" + shapesize + "' where cinvcode='" + itemno + "' and isnull(fshapesize,'')!='" + shapesize + "'");
|
|
|
}
|
|
|
|
|
|
TQWMS.runSqlUpdate(TQSqlist);
|