You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?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.glxp.api.dao.basic.SysWorkplaceDocumentDao">
|
|
|
|
|
|
|
|
<select id="filterList" resultType="com.glxp.api.res.basic.SysWorkplaceDocumentResponse">
|
|
|
|
select sys_workplace_document.*,aw.name invName
|
|
|
|
from sys_workplace_document
|
|
|
|
left join auth_warehouse aw on aw.code = sys_workplace_document.invCode
|
|
|
|
<where>
|
|
|
|
<if test="workplaceCode != '' and workplaceCode != null">
|
|
|
|
AND workplaceCode = #{workplaceCode}
|
|
|
|
</if>
|
|
|
|
<if test="documentTypeCode != '' and documentTypeCode != null">
|
|
|
|
AND documentTypeCode = #{documentTypeCode}
|
|
|
|
</if>
|
|
|
|
<if test="busKey != null and busKey != ''">
|
|
|
|
AND (sys_workplace_document.documentTypeCode like concat('%', #{busKey}, '%')
|
|
|
|
or sys_workplace_document.busName like concat('%', #{busKey}, '%')
|
|
|
|
)
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</mapper>
|