| | |
| | | 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' |
| | | where 1 =1 |
| | | <if test="createUserNameLike !=null and createUserNameLike != ''"> |
| | | and t.create_user_name like concat('%', #{createUserNameLike},'%') |
| | | </if> |
| | | <if test="workNameLike !=null and workNameLike != ''"> |
| | | and t.work_name like concat('%', #{workNameLike},'%') |
| | | </if> |
| | | <if test="workCycle !=null and workCycle != ''"> |
| | | and t.work_cycle= #{workCycle} |
| | | </if> |
| | |
| | | select count(1) count |
| | | from work_pool t |
| | | where 1 =1 |
| | | <if test="createUserNameLike !=null and createUserNameLike != ''"> |
| | | and t.create_user_name like concat('%', #{createUserNameLike},'%') |
| | | </if> |
| | | <if test="workNameLike !=null and workNameLike != ''"> |
| | | and t.work_name like concat('%', #{workNameLike},'%') |
| | | </if> |
| | | <if test="workCycle !=null and workCycle != ''"> |
| | | and t.work_cycle= #{workCycle} |
| | | </if> |
| | |
| | | left join work_task wtk on t.work_id = wtk.work_id and wtk.status_cd = '0' |
| | | left join t_dict td on wtk.state = td.status_cd and td.table_name = 'work_pool' and td.table_columns = 'state' |
| | | where 1 =1 |
| | | <if test="createUserNameLike !=null and createUserNameLike != ''"> |
| | | and t.create_user_name like concat('%', #{createUserNameLike},'%') |
| | | </if> |
| | | <if test="workNameLike !=null and workNameLike != ''"> |
| | | and t.work_name like concat('%', #{workNameLike},'%') |
| | | </if> |
| | | <if test="workCycle !=null and workCycle != ''"> |
| | | and t.work_cycle= #{workCycle} |
| | | </if> |
| | |
| | | left join work_task wtk on t.work_id = wtk.work_id and wtk.status_cd = '0' |
| | | left join t_dict td on wtk.state = td.status_cd and td.table_name = 'work_pool' and td.table_columns = 'state' |
| | | where 1 =1 |
| | | <if test="createUserNameLike !=null and createUserNameLike != ''"> |
| | | and t.create_user_name like concat('%', #{createUserNameLike},'%') |
| | | </if> |
| | | <if test="workNameLike !=null and workNameLike != ''"> |
| | | and t.work_name like concat('%', #{workNameLike},'%') |
| | | </if> |
| | | <if test="workCycle !=null and workCycle != ''"> |
| | | and t.work_cycle= #{workCycle} |
| | | </if> |
| | |
| | | left join work_copy wc on t.work_id = wc.work_id and wc.status_cd = '0' |
| | | left join t_dict td on wc.state = td.status_cd and td.table_name = 'work_pool' and td.table_columns = 'state' |
| | | where 1 =1 |
| | | <if test="createUserNameLike !=null and createUserNameLike != ''"> |
| | | and t.create_user_name like concat('%', #{createUserNameLike},'%') |
| | | </if> |
| | | <if test="workNameLike !=null and workNameLike != ''"> |
| | | and t.work_name like concat('%', #{workNameLike},'%') |
| | | </if> |
| | | <if test="workCycle !=null and workCycle != ''"> |
| | | and t.work_cycle= #{workCycle} |
| | | </if> |
| | |
| | | left join work_copy wc on t.work_id = wc.work_id and wc.status_cd = '0' |
| | | left join t_dict td on wc.state = td.status_cd and td.table_name = 'work_pool' and td.table_columns = 'state' |
| | | where 1 =1 |
| | | <if test="createUserNameLike !=null and createUserNameLike != ''"> |
| | | and t.create_user_name like concat('%', #{createUserNameLike},'%') |
| | | </if> |
| | | <if test="workNameLike !=null and workNameLike != ''"> |
| | | and t.work_name like concat('%', #{workNameLike},'%') |
| | | </if> |
| | | <if test="workCycle !=null and workCycle != ''"> |
| | | and t.work_cycle= #{workCycle} |
| | | </if> |