|
@@ -203,7 +203,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
validEntityBeforeSave(update);
|
|
|
update.setUpdateTime(DateUtils.getNowTime());
|
|
|
//课程列表
|
|
|
- if(bo.getCourseList()!=null&&bo.getCourseList().size()>0){
|
|
|
+ if(bo.getCourseList()!=null){
|
|
|
iGoodsCourseService.remove(new LambdaQueryWrapper<GoodsCourse>().eq(GoodsCourse::getGoodsId, bo.getGoodsId()));
|
|
|
Collection<GoodsCourse> coll = new HashSet<>();
|
|
|
for(int i=0;i<bo.getCourseList().size();i++){
|
|
@@ -237,7 +237,7 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
Goods update = BeanUtil.toBean(bo, Goods.class);
|
|
|
validEntityBeforeSave(update);
|
|
|
update.setUpdateTime(DateUtils.getNowTime());
|
|
|
- if(bo.getBankList()!=null&&bo.getBankList().size()>0){
|
|
|
+ if(bo.getBankList()!=null){
|
|
|
iGoodsAttachedService.remove(new LambdaQueryWrapper<GoodsAttached>().eq(GoodsAttached::getGoodsId, bo.getGoodsId()));
|
|
|
Collection<GoodsAttached> coll = new HashSet<>();
|
|
|
for(int i=0;i<bo.getBankList().size();i++){
|