| | |
| | | statusCd,t.store_id,t.store_id storeId,t.work_name,t.work_name workName,t.work_id,t.work_id |
| | | workId,t.wt_id,t.wt_id wtId,t.create_user_tel,t.create_user_tel createUserTel,t.start_time,t.start_time |
| | | startTime,t.end_time,t.end_time endTime,t.state,t.community_id,t.community_id communityId,t.create_time createTime, |
| | | td.`name` stateName,wt.type_name typeName |
| | | td.`name` stateName,wt.type_name typeName,wt.deduction |
| | | from work_pool t |
| | | left join work_type wt on t.wt_id = wt.wt_id |
| | | left join t_dict td on t.state = td.status_cd and td.table_name = 'work_pool' and td.table_columns = 'state' |
| | |
| | | <if test="wtId !=null and wtId != ''"> |
| | | and t.wt_id= #{wtId} |
| | | </if> |
| | | <if test="states != null"> |
| | | and wtk.state in |
| | | <foreach collection="states" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | |
| | | <if test="queryStartTime !=null and queryStartTime !=''"> |
| | | and wtk.create_time >= #{queryStartTime} |
| | |
| | | createUserId,t.create_user_name,t.create_user_name createUserName,t.status_cd,t.status_cd |
| | | statusCd,t.store_id storeId,t.work_name workName,t.work_id |
| | | workId,t.wt_id wtId,t.create_user_tel createUserTel,wtk.start_time |
| | | startTime,wtk.end_time endTime,wtk.state,t.community_id communityId,t.create_time createTime, |
| | | startTime,wtk.end_time endTime,wtk.state,t.community_id communityId,wtk.create_time createTime, |
| | | td.`name` stateName,wt.type_name typeName,wtk.staff_name curStaffName,wtk.task_id taskId |
| | | from work_pool t |
| | | left join work_type wt on t.wt_id = wt.wt_id |
| | |
| | | <if test="wtId !=null and wtId != ''"> |
| | | and t.wt_id= #{wtId} |
| | | </if> |
| | | |
| | | <if test="states != null"> |
| | | and wtk.state in |
| | | <foreach collection="states" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="queryStartTime !=null and queryStartTime !=''"> |
| | | and wtk.create_time >= #{queryStartTime} |
| | | </if> |