tanzh 3 жил өмнө
parent
commit
ed85d8b6eb

+ 2 - 2
zhongzheng-system/src/main/resources/mapper/modules/user/UserCourseAnswerMapper.xml

@@ -96,7 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             AND ISNULL(uca.assign_user_id )
         </if>
         <if test="msgType != null and msgType == 2">
-            AND uca.assign_user_id>0
+            AND uca.assign_user_id>0 AND uca.assign_answer_id is not null
         </if>
         <if test="searchKey != null and searchKey != '' ">
             and (g.goods_name like concat('%', #{searchKey}, '%') or uca.answer_text like concat('%', #{searchKey}, '%'))
@@ -115,7 +115,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 AND g.business_id = #{businessId}
             </if>
         </if>
-        order by uca.answer_id
+        order by uca.create_time desc
     </select>
 
     <update id="delChildAnswer" parameterType="com.zhongzheng.modules.user.bo.UserCourseAnswerQueryBo" >