Commit 512d36ae authored by 赵啸非's avatar 赵啸非

添加根据部门id 查询所属大厅

parent 55bcc857
...@@ -42,8 +42,6 @@ public class WindowController extends BaseCRUDJsonBodyMappingController<WindowSe ...@@ -42,8 +42,6 @@ public class WindowController extends BaseCRUDJsonBodyMappingController<WindowSe
@Autowired @Autowired
private ParamService paramService; private ParamService paramService;
@Autowired
private WindowBusinessService windowBusinessService;
public WindowController() { public WindowController() {
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
mortals_sys_window w, mortals_sys_window w,
mortals_sys_window_hall wh mortals_sys_window_hall wh
<trim suffixOverrides="where" suffix=""> <trim suffixOverrides="where" suffix="">
where w.id = wh.windowId where w.id = wh.windowId and
<trim prefixOverrides="and" prefix=""> <trim prefixOverrides="and" prefix="">
<if test="condition.siteId!=null and condition.siteId!=''"> <if test="condition.siteId!=null and condition.siteId!=''">
and w.siteId = #{condition.siteId} and w.siteId = #{condition.siteId}
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
and w.deptId = #{condition.deptId} and w.deptId = #{condition.deptId}
</if> </if>
<if test="condition.containsKey('deptIdList')"> <if test="condition.containsKey('deptIdList')">
w.deptId in and w.deptId in
<foreach collection="condition.deptIdList" open="(" close=")" index="index" <foreach collection="condition.deptIdList" open="(" close=")" index="index"
item="item" separator=","> item="item" separator=",">
#{item} #{item}
......
...@@ -27,7 +27,7 @@ POST {{baseUrl}}/window/getHallByDept ...@@ -27,7 +27,7 @@ POST {{baseUrl}}/window/getHallByDept
Content-Type: application/json Content-Type: application/json
{ {
"deptId":1 "deptId":426
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment