|
@@ -369,9 +369,8 @@ public class SpuApplyServiceImpl implements SpuApplyService {
|
|
|
if (diyPage.getProperty().contains(spu.getId().toString() + ",")) {
|
|
|
diyPage.setProperty(diyPage.getProperty().replace(spu.getId() + ",", ""));
|
|
|
diyPageService.updateDiyPage(BeanUtils.toBean(diyPage, DiyPageUpdateReqVO.class));
|
|
|
- }
|
|
|
- if(diyPage.getProperty().contains(spu.getId() + "]")){
|
|
|
- diyPage.setProperty(diyPage.getProperty().replace(spu.getId() + "]", "]"));
|
|
|
+ }else if(diyPage.getProperty().contains(spu.getId() + "]")){
|
|
|
+ diyPage.setProperty(diyPage.getProperty().replace("," +spu.getId() + "]", "]"));
|
|
|
diyPageService.updateDiyPage(BeanUtils.toBean(diyPage, DiyPageUpdateReqVO.class));
|
|
|
}
|
|
|
}
|