|
@@ -18,10 +18,7 @@ import com.zhongzheng.modules.goods.service.IGoodsAttachedService;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsAuditionConfigService;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsCourseService;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
|
-import com.zhongzheng.modules.goods.vo.GoodsAuditionConfigVo;
|
|
|
-import com.zhongzheng.modules.goods.vo.GoodsPhotographConfigVo;
|
|
|
-import com.zhongzheng.modules.goods.vo.GoodsPlayConfigVo;
|
|
|
-import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
|
+import com.zhongzheng.modules.goods.vo.*;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -70,6 +67,10 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
if(db.getGoodsPhotographConfig()!=null){
|
|
|
goodsVo.setGoodsPhotographConfigVo(JSON.parseObject(db.getGoodsPhotographConfig(), GoodsPhotographConfigVo.class));
|
|
|
}
|
|
|
+ //试卷试做配置
|
|
|
+ if(db.getGoodsExamConfig()!=null){
|
|
|
+ goodsVo.setExamConfigList(JSON.parseArray(db.getGoodsExamConfig(), GoodsExamConfigVo.class));
|
|
|
+ }
|
|
|
return goodsVo;
|
|
|
}
|
|
|
|
|
@@ -175,6 +176,10 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
validEntityBeforeSave(add);
|
|
|
add.setCreateTime(DateUtils.getNowTime());
|
|
|
add.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ //试卷试做设置列表
|
|
|
+ if(bo.getExamConfigList()!=null){
|
|
|
+ add.setGoodsExamConfig(JSON.toJSONString(bo.getExamConfigList()));
|
|
|
+ }
|
|
|
boolean result = this.save(add);
|
|
|
if(bo.getBankList()!=null){
|
|
|
Collection<GoodsAttached> coll = new HashSet<>();
|
|
@@ -245,6 +250,10 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
}
|
|
|
iGoodsAttachedService.saveBatch(coll);
|
|
|
}
|
|
|
+ //试卷试做设置列表
|
|
|
+ if(bo.getExamConfigList()!=null&&bo.getExamConfigList().size()>0){
|
|
|
+ update.setGoodsExamConfig(JSON.toJSONString(bo.getExamConfigList()));
|
|
|
+ }
|
|
|
return this.updateById(update);
|
|
|
}
|
|
|
|