丽知:1、sku主档同步优化单引号造成的sql截断
This commit is contained in:
parent
509599aa1c
commit
71c45900f2
|
@ -303,9 +303,9 @@ public class SKUPluginInitializer extends PluginBaseEntity {
|
|||
//invmnecode 助记码
|
||||
parentvo.setInvmnecode(sku.getCode().trim());
|
||||
//invname 存货名称
|
||||
parentvo.setInvname(sku.getName().replace("'", "\\'"));
|
||||
parentvo.setInvname(sku.getName().replace("'", "\'"));
|
||||
//invshortname 存货简称
|
||||
parentvo.setInvshortname(sku.getName().replace("'", "\\'"));
|
||||
parentvo.setInvshortname(sku.getName().replace("'", "\'"));
|
||||
//pk_invcl 分类,没有存货分类的时候,默认“YD001”,可能是虚拟组套
|
||||
if(null==sku.getCInvCCode()||"".equals(sku.getCInvCCode())){
|
||||
parentvo.setPk_invcl("YD001");
|
||||
|
@ -314,7 +314,7 @@ public class SKUPluginInitializer extends PluginBaseEntity {
|
|||
}
|
||||
|
||||
//def1 ofs品牌
|
||||
String brandCode = sku.getBrandCode().replace("'", "\\'");//会有 I'M MEME
|
||||
String brandCode = sku.getBrandCode().replace("'", "\'");//会有 I'M MEME
|
||||
parentvo.setDef1(brandCode);
|
||||
|
||||
//pk_measdoc 主计量单位,ofs没有单位,默认个,20240830万万同意
|
||||
|
|
Loading…
Reference in New Issue