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.
26 lines
1.2 KiB
XML
26 lines
1.2 KiB
XML
11 months ago
|
<?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.WorkBindWorkResponse">
|
||
|
select
|
||
|
swd.id,sw.workplaceName,sw.invCode,sw.workplaceId,sw.constituencies,sw.operationType,sw.checkInsert,sw.warnType,sw.unitTittle,sw.corpType,
|
||
|
bcb.code,bcb.name,bcb.remark as remark,sw.createTime as createTime
|
||
|
from sys_workplace_document swd
|
||
|
left join basic_collect_bustype bcb on swd.documentTypeCode = bcb.code
|
||
|
left join sys_workplace sw on swd.workplaceCode = sw.workplaceId
|
||
|
<where>
|
||
|
<if test=" workplaceCode != null and workplaceCode != ''">
|
||
|
AND swd.workplaceCode = #{workplaceCode}
|
||
|
</if>
|
||
|
<if test=" code != null and code != ''">
|
||
|
AND swd.documentTypeCode = #{code}
|
||
|
</if>
|
||
|
<if test="busKey != null and busKey != ''">
|
||
|
AND (bcb.code like concat('%', #{busKey}, '%')
|
||
|
or bcb.name like concat('%', #{busKey}, '%')
|
||
|
)
|
||
|
</if>
|
||
|
</where>
|
||
|
</select>
|
||
|
</mapper>
|