故障申報bug修改
This commit is contained in:
parent
fe71a0d180
commit
60b9c7806c
|
@ -22,12 +22,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
bf.vehicle_num,
|
bf.vehicle_num,
|
||||||
bf.store_id,
|
bf.store_id,
|
||||||
su.agent_id
|
su.agent_id
|
||||||
from <include refid="searchTables"/>
|
<include refid="searchTables"></include>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<sql id="searchTables">
|
<sql id="searchTables">
|
||||||
bst_fault bf
|
from bst_fault bf
|
||||||
left join sys_user su on bf.store_id = su.user_id
|
left join sys_user su on bf.store_id = su.user_id
|
||||||
|
left join sys_user syu on bf.user_id = syu.user_id
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<sql id="searchCondition">
|
<sql id="searchCondition">
|
||||||
|
@ -48,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="query.appealStatus != null and query.appealStatus != ''"> and bf.appeal_status = #{query.appealStatus}</if>
|
<if test="query.appealStatus != null and query.appealStatus != ''"> and bf.appeal_status = #{query.appealStatus}</if>
|
||||||
${@com.ruoyi.framework.util.DataScopeUtil@dataScope(
|
${@com.ruoyi.framework.util.DataScopeUtil@dataScope(
|
||||||
null,
|
null,
|
||||||
"bf.store_id,su.agent_id",
|
"bf.store_id,su.agent_id,bf.user_id",
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
query.scope
|
query.scope
|
||||||
|
|
|
@ -49,6 +49,7 @@ public class FaultController extends BaseController
|
||||||
startPage();
|
startPage();
|
||||||
startOrderBy();
|
startOrderBy();
|
||||||
query.setScope(true);
|
query.setScope(true);
|
||||||
|
query.setStoreId(getUserId());
|
||||||
List<FaultVO> list = faultService.selectFaultList(query);
|
List<FaultVO> list = faultService.selectFaultList(query);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user