丽知:成套件同步、存货档案同步优化空格问题
This commit is contained in:
parent
bc883f613a
commit
9c518ac914
|
@ -164,7 +164,7 @@ public class KitPluginInitializer extends PluginBaseEntity {
|
|||
public void start(String SkuCode) {
|
||||
try {
|
||||
QueryOfsKitRequestVO queryOfsKitRequestVO = new QueryOfsKitRequestVO();
|
||||
queryOfsKitRequestVO.setSkuCode(SkuCode);
|
||||
queryOfsKitRequestVO.setSkuCode(SkuCode.trim());
|
||||
List<OfsKitOrderSearchResponse.OfsKit> ofsKits = queryOfsKits(queryOfsKitRequestVO);
|
||||
if(ofsKits.size()==0){
|
||||
Assert.state(false,"根据OFS实物组套sku编码:{},未查询到OFS实物组套,请检查。",SkuCode);
|
||||
|
@ -216,7 +216,7 @@ public class KitPluginInitializer extends PluginBaseEntity {
|
|||
public List<OfsKitOrderSearchResponse.OfsKit> filterData(List<OfsKitOrderSearchResponse.OfsKit> ofsKits) {
|
||||
List<OfsKitOrderSearchResponse.OfsKit> filterKits = new ArrayList<>();
|
||||
for (OfsKitOrderSearchResponse.OfsKit ofsKit : ofsKits) {
|
||||
String rootAppPk = ofsKit.getHeader().getSkuCode();
|
||||
String rootAppPk = ofsKit.getHeader().getSkuCode().trim();
|
||||
boolean isExis = true;
|
||||
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity();
|
||||
integrationTaskLivingDetailsEntity.setRootAppPk(rootAppPk);
|
||||
|
@ -251,6 +251,9 @@ public class KitPluginInitializer extends PluginBaseEntity {
|
|||
//ofsKit列表
|
||||
for (OfsKitOrderSearchResponse.OfsKit ofsKit : filterKits) {
|
||||
|
||||
//处理空格
|
||||
ofsKit.getHeader().setSkuCode(ofsKit.getHeader().getSkuCode().trim());
|
||||
|
||||
String mapStr="";
|
||||
String response="";
|
||||
String format=ofsKit.getHeader().getLastUpdated();
|
||||
|
|
|
@ -247,7 +247,7 @@ public class SKUPluginInitializer extends PluginBaseEntity {
|
|||
public List<OFSSKUSearchResponse.OFSSKU> filterData(List<OFSSKUSearchResponse.OFSSKU> ofsskuList) {
|
||||
List<OFSSKUSearchResponse.OFSSKU> filterSkus = new ArrayList<>();
|
||||
for (OFSSKUSearchResponse.OFSSKU ofssku : ofsskuList) {
|
||||
String rootAppPk = ofssku.getCode() + "_" + ofssku.getLastUpdated();
|
||||
String rootAppPk = ofssku.getCode().trim() + "_" + ofssku.getLastUpdated();
|
||||
boolean isExis = true;
|
||||
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity();
|
||||
integrationTaskLivingDetailsEntity.setRootAppPk(rootAppPk);
|
||||
|
|
Loading…
Reference in New Issue