| | |
| | | from ja_gd_work_order wo |
| | | left join blade_user bu on wo.create_user = bu.id |
| | | <where> |
| | | and wo.is_deleted = 0 |
| | | <if test="param2.workOrderStatus != null and param2.workOrderStatus != ''"> |
| | | and wo.work_order_status like concat(#{param2.workOrderStatus},'%') |
| | | </if> |
| | |
| | | <if test="param2.startTime != null and param2.startTime != '' and param2.endTime != null and param2.endTime != ''"> |
| | | and wo.create_time BETWEEN #{param2.startTime} AND #{param2.endTime} |
| | | </if> |
| | | and wo.is_deleted = 0 |
| | | <if test="param2.deptList != null and param2.deptList.size > 0"> |
| | | and wo.create_dept in |
| | | <foreach collection="param2.deptList" item="deptId" open="(" separator="," close=")"> |
| | | #{deptId} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |