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.0 KiB
XML
26 lines
1.0 KiB
XML
12 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.auth.SysWorkplaceDao">
|
||
|
|
||
|
<select id="selectMaxWorkplaceId" resultType="java.lang.Long">
|
||
|
SELECT MAX(workplaceId)
|
||
|
FROM sys_workplace
|
||
|
</select>
|
||
|
<select id="filterList" resultType="com.glxp.api.entity.auth.SysWorkplace">
|
||
|
select sw.*, aw.name invName
|
||
|
from sys_workplace sw
|
||
|
left join auth_warehouse aw on sw.invCode = aw.code
|
||
|
<where>
|
||
|
<if test="request.key != null and request.key != ''">
|
||
|
AND (sw.workplaceName like concat('%', #{request.key}, '%')
|
||
|
or sw.workplaceId like concat('%', #{request.key}, '%')
|
||
|
)
|
||
|
</if>
|
||
|
<if test=" request.invCode != null and request.invCode != ''">
|
||
|
AND sw.invCode = #{request.invCode}
|
||
|
</if>
|
||
|
</where>
|
||
|
ORDER BY sw.workplaceId
|
||
|
</select>
|
||
|
</mapper>
|