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.
24 lines
910 B
XML
24 lines
910 B
XML
8 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.SysWorkplaceFreightMapper">
|
||
|
|
||
|
|
||
|
<select id="filterList" resultType="com.glxp.api.res.basic.SysWorkplaceFreightResponse">
|
||
|
select swf.*,
|
||
|
sw.workplaceName workPlaceName
|
||
|
from sys_workplace_freight swf
|
||
|
left join sys_workplace sw on sw.workplaceId = swf.workPlaceIdFk
|
||
|
<where>
|
||
|
<if test="key != null and key != ''">
|
||
|
AND (
|
||
|
swf.code like concat('%', #{key}, '%')
|
||
|
or swf.name like concat('%', #{key}, '%')
|
||
|
)
|
||
|
</if>
|
||
|
<if test=" workPlaceIdFk != null and workPlaceIdFk != ''">
|
||
|
AND swf.workPlaceIdFk = #{workPlaceIdFk}
|
||
|
</if>
|
||
|
</where>
|
||
|
</select>
|
||
|
</mapper>
|