<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.ruoyi.require.mapper.InternalWastesMapper">
|
|
<!-- 安全内务三废登记列表 -->
|
<select id="pageInternalWastes" resultType="com.ruoyi.require.dto.InternalWastesDto">
|
select *
|
from (select ciw.*,
|
u1.name create_user_name,
|
u2.name update_user_name
|
from cnas_internal_wastes ciw
|
left join user u1 on u1.id = ciw.create_user
|
left join user u2 on u2.id = ciw.update_user
|
order by ciw.create_time desc) a
|
<if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
|
${ew.customSqlSegment}
|
</if>
|
</select>
|
|
</mapper>
|