| | |
| | | <if test="query.resultStatus != null"> |
| | | AND aiti.result_status = #{query.reslutStatus} |
| | | </if> |
| | | <if test="query.hasNoPermission or query.deptName == '资产管理部'"> |
| | | AND aiti.user_id = #{query.userId} |
| | | </if> |
| | | </where> |
| | | ORDER BY |
| | | am.asset_code |
| | |
| | | WHERE |
| | | inventory_task_id = #{taskId} |
| | | </select> |
| | | <select id="getPageList" resultType="com.ruoyi.system.vo.asset.AssetInventoryTaskVO"> |
| | | SELECT ait.id, |
| | | ait.user_id, |
| | | ait.dept_id, |
| | | ait.task_name, |
| | | ait.execute_date, |
| | | ait.status, |
| | | ait.remarks, |
| | | ait.create_time, |
| | | ait.create_by, |
| | | ait.update_time, |
| | | ait.update_by, |
| | | ait.disabled, |
| | | td.dept_name |
| | | FROM asset_inventory_task ait LEFT JOIN t_dept td ON ait.dept_id = td.id |
| | | <where> |
| | | ait.disabled = 0 |
| | | <if test="query.taskName != null and query.taskName != ''"> |
| | | AND ait.task_name LIKE CONCAT('%',#{query.taskName},'%') |
| | | </if> |
| | | <if test="query.deptId != null"> |
| | | AND (td.id = #{query.deptId} OR FIND_IN_SET(#{query.deptId}, td.parent_id)) |
| | | </if> |
| | | </where> |
| | | ORDER BY ait.create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |