代码/restaurants/target/classes/mapper/CollectMapper.xml
(完整代码) 931B<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mall.mapper.CollectMapper">
<select id="selectCollect" resultType="com.mall.vo.CollectVo" parameterType="int">
select
i.*,u.title as title,u.sell_point as sellPoint,u.price as price,u.image as image
from collect i
left join
item u
on i.item_id = u.id
where i.user_id =#{userID}
</select>
<resultMap id="TopType" type="HashMap">
<result column="question_type" property="typeName" />
<result column="type_count" property="typeCount" />
</resultMap>
<select id="countErrorQuestionLevel" resultMap="TopType">
select
count(*) value,
q.title as name
from
collect e
left join
item q
on e.item_id =q.id
GROUP BY
name
</select>
</mapper>
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
