浏览代码

小程序端接口

Althars123 3 年之前
父节点
当前提交
3eda1c8cc6

+ 3 - 3
twzd-admin/src/main/java/com/miaxis/app/controller/h5/QuestionWrongController.java

@@ -105,9 +105,9 @@ public class QuestionWrongController extends BaseController {
             questionWrong.setUserId(SecurityUtils.getLoginUser().getStudent().getId());
             qlist.add(questionWrong);
         }
-        if (qlist.isEmpty()) {
-            throw new CustomException("选中的错题都已收藏!");
-        }
+//        if (qlist.isEmpty()) {
+//            throw new CustomException("选中的错题都已收藏!");
+//        }
         return toResponse(questionWrongService.saveBatch(qlist) ? 1 : 0);
     }
 

+ 1 - 1
twzd-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -92,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
 	<select id="getStudentByOpenId" parameterType="String" resultType="com.miaxis.common.core.domain.entity.UserInfo">
 		select * from user_info
-		where union_id = #{unionId}
+		where open_id = #{openId}
 	</select>
 
 	<select id="getStudentByUnionid" parameterType="String" resultType="com.miaxis.common.core.domain.entity.UserInfo">