| | |
| | | <if test="placeExt.confirmFlag != null"> |
| | | and jpe.confirm_flag = #{placeExt.confirmFlag} |
| | | </if> |
| | | <if test="placeExt.roleName!=null and placeExt.roleName!='' and placeExt.createUser!=null"> |
| | | <choose> |
| | | <when test="placeExt.roleName=='网格员'"> |
| | | and |
| | | ( |
| | | jp.create_user = #{placeExt.createUser} |
| | | <if test="houseCodeList != null and houseCodeList.size()>0"> |
| | | or jp.house_code in |
| | | <foreach collection="houseCodeList" item="houseCode" separator ="," open="(" close=")"> |
| | | #{houseCode} |
| | | </foreach> |
| | | </if> |
| | | ) |
| | | </when> |
| | | <otherwise> |
| | | and jp.principal_user_id = #{placeExt.createUser} |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | order by jpe.create_time desc,jpe.id desc |
| | | </select> |
| | | |
| | | <!--自定义详情查询--> |