Compare commits
2 Commits
7b4f714af1
...
53a27fae8a
Author | SHA1 | Date | |
---|---|---|---|
![]() |
53a27fae8a | ||
![]() |
7039bebd43 |
|
@ -24,12 +24,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
bf.store_id,
|
bf.store_id,
|
||||||
ba.name as area_name,
|
ba.name as area_name,
|
||||||
su.agent_id
|
su.agent_id
|
||||||
from bst_fault bf
|
from <include refid="searchTables"/>
|
||||||
left join bst_area ba on bf.area_id = ba.id
|
|
||||||
left join sys_user su on bf.store_id = su.user_id
|
|
||||||
</sql>
|
</sql>
|
||||||
<sql id="searchTables">
|
<sql id="searchTables">
|
||||||
from bst_fault bf
|
bst_fault bf
|
||||||
|
left join bst_area ba on bf.area_id = ba.id
|
||||||
left join sys_user su on bf.store_id = su.user_id
|
left join sys_user su on bf.store_id = su.user_id
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
@ -271,8 +270,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<!-- selectCount -->
|
<!-- selectCount -->
|
||||||
|
|
||||||
<select id="selectCount" parameterType="FaultQuery" resultType="Integer">
|
<select id="selectCount" parameterType="FaultQuery" resultType="Integer">
|
||||||
select count(bf.id)
|
select count(bf.id)
|
||||||
from <include refid="searchTables"/>
|
from <include refid="searchTables"/>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user