rename com.imyeyu.server to com.imyeyu.api
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?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.imyeyu.server.modules.common.mapper.AttachmentMapper">
|
||||
<mapper namespace="com.imyeyu.api.modules.common.mapper.AttachmentMapper">
|
||||
<sql id="table">attachment</sql>
|
||||
<select id="listByAttachType" resultType="com.imyeyu.server.modules.common.entity.Attachment">
|
||||
<select id="listByAttachType" resultType="com.imyeyu.api.modules.common.entity.Attachment">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?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.imyeyu.server.modules.common.mapper.CommentMapper">
|
||||
<mapper namespace="com.imyeyu.api.modules.common.mapper.CommentMapper">
|
||||
<sql id="table">comment</sql>
|
||||
<!-- 主评论 -->
|
||||
<select id="list" resultMap="listResult">
|
||||
@@ -77,7 +77,7 @@
|
||||
ON
|
||||
reply_count.id = comment.id
|
||||
</select>
|
||||
<resultMap id="listResult" type="com.imyeyu.server.modules.common.vo.comment.CommentView">
|
||||
<resultMap id="listResult" type="com.imyeyu.api.modules.common.vo.comment.CommentView">
|
||||
<id property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="nick" column="nick" />
|
||||
@@ -85,7 +85,7 @@
|
||||
<result property="repliesLength" column="reply_length" />
|
||||
<result property="createdAt" column="created_at" />
|
||||
<!-- 关联回复 -->
|
||||
<collection property="replies" ofType="com.imyeyu.server.modules.common.vo.comment.CommentReplyView">
|
||||
<collection property="replies" ofType="com.imyeyu.api.modules.common.vo.comment.CommentReplyView">
|
||||
<id property="id" column="reply_id" />
|
||||
<result property="commentId" column="comment_id" />
|
||||
<result property="senderId" column="sender_id" />
|
||||
@@ -127,7 +127,7 @@
|
||||
<select id="countByUserId" resultType="long">
|
||||
SELECT COUNT(1) <include refid="byUserIdCondition" />
|
||||
</select>
|
||||
<select id="listByUserId" resultType="com.imyeyu.server.modules.common.vo.comment.CommentView">
|
||||
<select id="listByUserId" resultType="com.imyeyu.api.modules.common.vo.comment.CommentView">
|
||||
SELECT
|
||||
id,
|
||||
biz_type,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?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.imyeyu.server.modules.common.mapper.IconMapper">
|
||||
<mapper namespace="com.imyeyu.api.modules.common.mapper.IconMapper">
|
||||
<sql id="table">icon</sql>
|
||||
<!-- 根据标签获取部分 -->
|
||||
<sql id="byLabel">
|
||||
@@ -29,7 +29,7 @@
|
||||
<select id="countByLabel" resultType="long">
|
||||
SELECT COUNT(1) <include refid="byLabel" />
|
||||
</select>
|
||||
<select id="listByLabel" resultType="com.imyeyu.server.modules.common.entity.Icon">
|
||||
<select id="listByLabel" resultType="com.imyeyu.api.modules.common.entity.Icon">
|
||||
SELECT icon.* <include refid="byLabel" /> LIMIT #{offset}, #{limit}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?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.imyeyu.server.modules.common.mapper.MultilingualMapper">
|
||||
<select id="selectByKeyList" resultType="com.imyeyu.server.modules.common.entity.Multilingual">
|
||||
<mapper namespace="com.imyeyu.api.modules.common.mapper.MultilingualMapper">
|
||||
<select id="selectByKeyList" resultType="com.imyeyu.api.modules.common.entity.Multilingual">
|
||||
SELECT * FROM multilingual WHERE key IN
|
||||
<foreach collection='keys' item='item' open='(' separator=',' close=')'>
|
||||
#{item}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?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.imyeyu.server.modules.common.mapper.SettingMapper">
|
||||
<mapper namespace="com.imyeyu.api.modules.common.mapper.SettingMapper">
|
||||
<sql id="table">setting</sql>
|
||||
<select id="listByKeys">
|
||||
SELECT
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?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.imyeyu.server.modules.common.mapper.TaskMapper">
|
||||
<mapper namespace="com.imyeyu.api.modules.common.mapper.TaskMapper">
|
||||
<!-- 所有公开任务 -->
|
||||
<select id="listAll4Public" resultMap="findAll4PublicResult">
|
||||
SELECT
|
||||
@@ -38,13 +38,13 @@
|
||||
is_public = 1
|
||||
AND deleted_at IS NULL
|
||||
</select>
|
||||
<resultMap id="findAll4PublicResult" type="com.imyeyu.server.modules.common.entity.Task">
|
||||
<resultMap id="findAll4PublicResult" type="com.imyeyu.api.modules.common.entity.Task">
|
||||
<id property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="digest" column="digest"/>
|
||||
<result property="status" column="status"/>
|
||||
<!-- 关联任务 -->
|
||||
<collection property="details" ofType="com.imyeyu.server.modules.common.entity.TaskDetail">
|
||||
<collection property="details" ofType="com.imyeyu.api.modules.common.entity.TaskDetail">
|
||||
<id property="id" column="detial_id"/>
|
||||
<result property="bizType" column="bizType"/>
|
||||
<result property="status" column="tdStatus"/>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?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.imyeyu.server.modules.common.mapper.UserConfigMapper">
|
||||
<mapper namespace="com.imyeyu.api.modules.common.mapper.UserConfigMapper">
|
||||
<sql id="table">user_config</sql>
|
||||
</mapper>
|
||||
@@ -1,4 +1,4 @@
|
||||
<?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.imyeyu.server.modules.common.mapper.UserPrivacyMapper">
|
||||
<mapper namespace="com.imyeyu.api.modules.common.mapper.UserPrivacyMapper">
|
||||
</mapper>
|
||||
@@ -1,5 +1,5 @@
|
||||
<?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.imyeyu.server.modules.common.mapper.UserProfileMapper">
|
||||
<mapper namespace="com.imyeyu.api.modules.common.mapper.UserProfileMapper">
|
||||
<sql id="table">user_profile</sql>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user