|
|
|
@ -2,10 +2,13 @@
|
|
|
|
|
<!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.BasicBusTypeChangeDao">
|
|
|
|
|
<select id="filterList" resultType="com.glxp.api.res.basic.BasicBusTypeChangeResponse">
|
|
|
|
|
select bc.*, bu.name targetName, bbc.originName targetBusName
|
|
|
|
|
from basic_bustype_change bc
|
|
|
|
|
left join basic_bussiness_type bu on bc.targetAction = bu.action
|
|
|
|
|
left join basic_bustype_change bbc on bc.originAction = bbc.targetAction
|
|
|
|
|
SELECT
|
|
|
|
|
bc.*,
|
|
|
|
|
bu.NAME targetName,
|
|
|
|
|
(select originName from basic_bustype_change where originAction = bc.targetBusAction) as targetBusName
|
|
|
|
|
FROM
|
|
|
|
|
basic_bustype_change bc
|
|
|
|
|
LEFT JOIN basic_bussiness_type bu ON bc.targetAction = bu.action
|
|
|
|
|
<where>
|
|
|
|
|
<if test="originAction != null and originAction != ''">
|
|
|
|
|
AND bc.originAction = #{originAction}
|
|
|
|
|