| | |
| | | <mapper namespace="org.springblade.modules.taskinfo.mapper.TaskplanUserMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="taskplanUserResultMap" type="org.springblade.modules.taskinfo.entity.TaskplanUserEntity"> |
| | | <resultMap id="taskplanUserResultMap" type="org.springblade.modules.taskinfo.vo.TaskplanUserVO"> |
| | | <result column="id" property="id"/> |
| | | <result column="plan_id" property="planId"/> |
| | | <result column="user_id" property="userId"/> |
| | |
| | | |
| | | |
| | | <select id="selectTaskplanUserPage" resultMap="taskplanUserResultMap"> |
| | | select * from ins_taskplan_user where is_deleted = 0 |
| | | select itu.*,bu.name |
| | | from ins_taskplan_user itu |
| | | LEFT JOIN blade_user bu ON itu.user_id = bu.id |
| | | where itu.is_deleted = 0 |
| | | <if test="taskplanUser.planId != null and taskplanUser.planId !=''"> |
| | | AND itu.plan_id = #{taskplanUser.planId} |
| | | </if> |
| | | </select> |
| | | |
| | | |