丽知:SKU主档同步:分类,没有存货分类的时候,默认“YD001”,可能是虚拟组套

This commit is contained in:
zhengyf 2024-10-22 17:03:51 +08:00
parent 4b0a11ae18
commit 6bd57fb3fc
1 changed files with 6 additions and 2 deletions

View File

@ -306,8 +306,12 @@ public class SKUPluginInitializer extends PluginBaseEntity {
parentvo.setInvname(sku.getName()); parentvo.setInvname(sku.getName());
//invshortname 存货简称 //invshortname 存货简称
parentvo.setInvshortname(sku.getName()); parentvo.setInvshortname(sku.getName());
//pk_invcl 分类 //pk_invcl 分类,没有存货分类的时候默认YD001,可能是虚拟组套
parentvo.setPk_invcl(sku.getCInvCCode()); if(null==sku.getCInvCCode()||"".equals(sku.getCInvCCode())){
parentvo.setPk_invcl("YD001");
}else {
parentvo.setPk_invcl(sku.getCInvCCode());
}
//def1 ofs品牌 //def1 ofs品牌
parentvo.setDef1(sku.getBrandCode()); parentvo.setDef1(sku.getBrandCode());