46 lines
2.2 KiB
XML
46 lines
2.2 KiB
XML
|
|
<?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.rzyc.mapper.EntPostTaskMapper">
|
||
|
|
|
||
|
|
<!-- 通用查询映射结果 -->
|
||
|
|
<resultMap id="BaseResultMap" type="com.rzyc.model.EntPostTask">
|
||
|
|
<id column="task_id" property="taskId" />
|
||
|
|
<result column="post_id" property="postId" />
|
||
|
|
<result column="ent_user_id" property="entUserId" />
|
||
|
|
<result column="enterprise_id" property="enterpriseId" />
|
||
|
|
<result column="ent_list_id" property="entListId" />
|
||
|
|
<result column="list_id" property="listId" />
|
||
|
|
<result column="post_list_id" property="postListId" />
|
||
|
|
<result column="item_title" property="itemTitle" />
|
||
|
|
<result column="item_content" property="itemContent" />
|
||
|
|
<result column="start_time" property="startTime" />
|
||
|
|
<result column="ent_time" property="entTime" />
|
||
|
|
<result column="task_state" property="taskState" />
|
||
|
|
<result column="frequency" property="frequency" />
|
||
|
|
<result column="del_state" property="delState" />
|
||
|
|
<result column="create_time" property="createTime" />
|
||
|
|
<result column="create_by" property="createBy" />
|
||
|
|
<result column="modify_time" property="modifyTime" />
|
||
|
|
<result column="modify_by" property="modifyBy" />
|
||
|
|
</resultMap>
|
||
|
|
|
||
|
|
<!-- 通用查询结果列 -->
|
||
|
|
<sql id="Base_Column_List">
|
||
|
|
task_id, post_id, ent_user_id, enterprise_id, ent_list_id, list_id, post_list_id, item_title, item_content, start_time, ent_time, task_state, frequency, del_state, create_time, create_by, modify_time, modify_by
|
||
|
|
</sql>
|
||
|
|
|
||
|
|
<select id="selectEntUserPostTask" resultMap="BaseResultMap">
|
||
|
|
select * from ent_post_task where ent_user_id = #{entUserId} and enterprise_id = #{enterpriseId} and list_id = #{listId}
|
||
|
|
<if test="null != postId and '' != postId">
|
||
|
|
and post_id = #{postId}
|
||
|
|
</if>
|
||
|
|
<if test="null != content and '' != content">
|
||
|
|
and item_content like concat('%',#{content},'%')
|
||
|
|
</if>
|
||
|
|
<if test="null != taskState and '' != taskState">
|
||
|
|
and task_state = #{taskState}
|
||
|
|
</if>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
</mapper>
|