You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
498 B

<?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="cc.hiver.mall.dao.mapper.MallMapper">
<select id="findByUserId" resultType="cc.hiver.mall.entity.Mall">
SELECT DISTINCT m.*
FROM t_mall m
LEFT JOIN t_user_mall um ON m.id = um.mall_id
WHERE um.user_id = #{userId} AND m.status = 0
ORDER BY m.sort_order ASC
</select>
</mapper>