Explorar o código

Merge branch 'online1' of http://git.dayaedu.com/yonge/mec

zouxuan %!s(int64=4) %!d(string=hai) anos
pai
achega
326d679d71

+ 3 - 3
mec-biz/src/main/resources/config/mybatis/GoodsMapper.xml

@@ -333,9 +333,9 @@
             </if>
             <if test="musicGroupShow!=null">
                 AND g.music_group_show_=#{musicGroupShow}
-                <if test="courseViewType != null">
-                    AND FIND_IN_SET(#{courseViewType},g.course_view_type_)
-                </if>
+            </if>
+            <if test="courseViewType != null">
+                AND FIND_IN_SET(#{courseViewType},g.course_view_type_)
             </if>
             <if test="replacementShow!=null">
                 AND g.replacement_show_=#{replacementShow}

+ 4 - 2
mec-web/src/main/java/com/ym/mec/web/controller/ExportController.java

@@ -217,11 +217,13 @@ public class ExportController extends BaseController {
         OutputStream outputStream = response.getOutputStream();
         try {
             HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"商品编号", "货号", "品牌", "商品名称",
-                    "是否组合商品", "学员是否展示", "教务端是否展示", "乐团是否展示","是否乐器置换", "是否库存预警",
+                    "是否组合商品", "学员是否展示", "教务端是否展示", "乐团是否展示", "乐团收费模式","是否乐器置换", "是否库存预警",
                     "商品类型", "商品分类", "具体型号", "内部库存", "税务库存", "库存类型", "市场价(元)",
                     "零售价(元)", "商品团购价(元)", "商品描述", "商品详情", "是否上下架"}, new String[]{
                     "id", "sn", "brand", "name",
-                    "complementGoodsIdList == null || complementGoodsIdList == '' ? '否':'是'", "clientShow.msg", "educationalShow.msg", "musicGroupShow.msg","replacementShow.msg", "stockWarning.msg",
+                    "complementGoodsIdList == null || complementGoodsIdList == '' ? '否':'是'", "clientShow.msg", "educationalShow.msg", "musicGroupShow.msg",
+                    "courseViewType == null?'':courseViewType == '0'?'系统收费':courseViewType == '0,1'?'系统收费\\课程收费':courseViewType == '0,2'?'系统收费\\\\云教练收费':courseViewType == '1,2'?'课程收费\\云教练收费':courseViewType == '0,1,2'?'系统收费\\课程收费\\云教练收费':''",
+                    "replacementShow.msg", "stockWarning.msg",
                     "type.desc", "goodsCategoryName", "specification", "stockCount", "taxStockCount", "stockType.msg", "marketPrice",
                     "discountPrice", "groupPurchasePrice", "brief", "desc", "status.msg"}, rows);
             response.setContentType("application/octet-stream");