|
@@ -58,9 +58,13 @@
|
|
|
|
|
|
<!-- 查询物业用户列表查询条件 -->
|
|
<!-- 查询物业用户列表查询条件 -->
|
|
<sql id="projectUserQueryCondition">
|
|
<sql id="projectUserQueryCondition">
|
|
- from project_user
|
|
|
|
|
|
+ from
|
|
|
|
+ project_user
|
|
where
|
|
where
|
|
- mt_company_id = #{companyId}
|
|
|
|
|
|
+ mt_company_id = #{companyId}
|
|
|
|
+ <if test = "projectId != null">
|
|
|
|
+ and project_id = #{projectId}
|
|
|
|
+ </if>
|
|
<if test="userIdList != null">
|
|
<if test="userIdList != null">
|
|
and user_id in
|
|
and user_id in
|
|
<foreach item="item" index="index" collection="userIdList" open="(" separator="," close=")">
|
|
<foreach item="item" index="index" collection="userIdList" open="(" separator="," close=")">
|
|
@@ -76,9 +80,9 @@
|
|
<select id="getProjectUserList" parameterType="cn.com.ty.lift.system.user.dao.entity.model.PropertyUserRequest"
|
|
<select id="getProjectUserList" parameterType="cn.com.ty.lift.system.user.dao.entity.model.PropertyUserRequest"
|
|
resultType="cn.com.ty.lift.system.user.dao.entity.model.ProjectUser">
|
|
resultType="cn.com.ty.lift.system.user.dao.entity.model.ProjectUser">
|
|
select
|
|
select
|
|
- project_id as projectId,
|
|
|
|
- user_id as userId,
|
|
|
|
- user_role as userRole
|
|
|
|
|
|
+ project_id as projectId,
|
|
|
|
+ user_id as userId,
|
|
|
|
+ user_role as userRole
|
|
<include refid="projectUserQueryCondition"/>
|
|
<include refid="projectUserQueryCondition"/>
|
|
limit #{pageNum}, #{pageSize}
|
|
limit #{pageNum}, #{pageSize}
|
|
</select>
|
|
</select>
|