he2802 2 năm trước cách đây
mục cha
commit
578fd27d60

+ 0 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/order/bo/questionOpenBo.java → zhongzheng-system/src/main/java/com/zhongzheng/modules/order/bo/QuestionOpenBo.java


+ 4 - 3
zhongzheng-system/src/main/resources/mapper/modules/order/OrderBusinessConfigGoodsMapper.xml

@@ -63,9 +63,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
     <select id="selectList" parameterType="com.zhongzheng.modules.order.bo.OrderBusinessConfigGoodsQueryBo" resultMap="OrderBusinessConfigGoodsVoResult">
         SELECT
-            bcg.*,
-            cs.subject_name,
-            obc.config_name
+        bcg.config_id,
+        any_value ( obc.config_name ) config_name,
+        group_concat( bcg.goods_ids ) goods_ids
         FROM
             order_business_config_goods bcg
             LEFT JOIN order_business_config obc ON bcg.config_id = obc.id
@@ -106,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="subjectName != null and subjectName != ''">
             and cs.subject_name = #{subjectName}
         </if>
+        GROUP BY bcg.config_id
     </select>
 
 </mapper>