|
@@ -4,6 +4,8 @@ import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
|
|
|
|
|
|
+import cn.hutool.core.bean.BeanUtil;
|
|
|
|
+import cn.hutool.core.lang.Validator;
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
import com.zhongzheng.modules.bank.bo.ExamQuestionQueryBo;
|
|
import com.zhongzheng.modules.bank.bo.ExamQuestionQueryBo;
|
|
import com.zhongzheng.modules.bank.service.IQuestionService;
|
|
import com.zhongzheng.modules.bank.service.IQuestionService;
|
|
@@ -15,10 +17,9 @@ import com.zhongzheng.modules.goods.domain.Goods;
|
|
import com.zhongzheng.modules.goods.service.IGoodsAttachedService;
|
|
import com.zhongzheng.modules.goods.service.IGoodsAttachedService;
|
|
import com.zhongzheng.modules.goods.service.IGoodsAuditionConfigService;
|
|
import com.zhongzheng.modules.goods.service.IGoodsAuditionConfigService;
|
|
import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
-import com.zhongzheng.modules.goods.vo.GoodsAttachedVo;
|
|
|
|
-import com.zhongzheng.modules.goods.vo.GoodsAuditionConfigVo;
|
|
|
|
-import com.zhongzheng.modules.goods.vo.GoodsUserQuestionVo;
|
|
|
|
-import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
|
|
|
|
+import com.zhongzheng.modules.goods.vo.*;
|
|
|
|
+import com.zhongzheng.modules.grade.vo.StudyAccountStatusExportVo;
|
|
|
|
+import com.zhongzheng.modules.order.vo.OrderVo;
|
|
import com.zhongzheng.modules.user.bo.UserExamRecordQueryBo;
|
|
import com.zhongzheng.modules.user.bo.UserExamRecordQueryBo;
|
|
import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
@@ -74,6 +75,24 @@ public class GoodsController extends BaseController {
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("导出直播商品列表")
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:goods:list')")
|
|
|
|
+ @GetMapping("/export_list")
|
|
|
|
+ public AjaxResult<ExportLiveGoodsVo> export_list(GoodsQueryBo bo) {
|
|
|
|
+ List<GoodsVo> list = iGoodsService.selectList(bo);
|
|
|
|
+ List<ExportLiveGoodsVo> list1 = new ArrayList<>();
|
|
|
|
+ for(GoodsVo vo : list){
|
|
|
|
+ ExportLiveGoodsVo goodsVo = BeanUtil.toBean(vo, ExportLiveGoodsVo.class);
|
|
|
|
+ goodsVo.setBusinessName(vo.getEducationName()+"-"+vo.getProjectName()+"-"+vo.getBusinessName());
|
|
|
|
+ if(Validator.isEmpty(vo.getPeriod())){
|
|
|
|
+ goodsVo.setPeriod(0L);
|
|
|
|
+ }
|
|
|
|
+ list1.add(goodsVo);
|
|
|
|
+ }
|
|
|
|
+ ExcelUtil<ExportLiveGoodsVo> util = new ExcelUtil<>(ExportLiveGoodsVo.class);
|
|
|
|
+ return util.exportExcel(list1,"直播学习记录");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
@ApiOperation("查询商品列表To录单")
|
|
@ApiOperation("查询商品列表To录单")
|
|
@PreAuthorize("@ss.hasPermi('system:goods:list')")
|
|
@PreAuthorize("@ss.hasPermi('system:goods:list')")
|