| | |
| | | authDesc,t.original_plan_user_id,t.original_plan_user_id originalPlanUserId,t.task_type,t.task_type |
| | | taskType,t.plan_id,t.plan_id planId,t.plan_end_time,t.plan_end_time |
| | | planEndTime,t.plan_user_name,t.plan_user_name planUserName,t.community_id,t.community_id |
| | | communityId,t.act_user_id,t.act_user_id actUserId,t.task_id,t.task_id taskId,t.mps_id,t.mps_id mpsId |
| | | communityId,t.act_user_id,t.act_user_id actUserId,t.task_id,t.task_id taskId,t.mps_id,t.mps_id mpsId, |
| | | mp.plan_name planName,td.`name` stateName |
| | | from maintainance_task t |
| | | left join maintainance_plan mp on t.plan_id = mp.plan_id and mp.status_cd = '0' |
| | | left join t_dict td on t.state = td.status_cd and td.table_name = 'maintainance_task' and td.table_columns = 'state' |
| | | where 1 =1 |
| | | <if test="planUserId !=null and planUserId != ''"> |
| | | and t.plan_user_id= #{planUserId} |
| | |
| | | </if> |
| | | <if test="mpsId !=null and mpsId != ''"> |
| | | and t.mps_id= #{mpsId} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="states !=null "> |
| | | and t.state in |
| | | <foreach collection="states" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | |
| | | </if> |
| | | <if test="mpsId !=null and mpsId != ''"> |
| | | , t.mps_id= #{mpsId} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | , t.state= #{state} |
| | | </if> |
| | | where 1=1 |
| | | <if test="taskId !=null and taskId != ''"> |
| | |
| | | <if test="mpsId !=null and mpsId != ''"> |
| | | and t.mps_id= #{mpsId} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="states !=null "> |
| | | and t.state in |
| | | <foreach collection="states" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | |
| | | |
| | | </select> |