教室管理增加具备多媒体、投影属性(添加+修改+查询条件+列表)
This commit is contained in:
1 parent
9c720a2535
commit
0bf7d961ab
3 files changed
+95
-7
No files matched your search
+3
@@ -57,6 +57,9 @@ public class TrainClassroomInfoServiceImpl implements ITrainClassroomInfoService
|
||||
vo.setRoomStatus(classroom.getRoomStatus());
|
||||
vo.setRemark(classroom.getRemark());
|
||||
vo.setCreateTime(classroom.getCreateTime());
|
||||
vo.setSeatArrange(classroom.getSeatArrange());
|
||||
vo.setMultimedia(classroom.getMultimedia());
|
||||
vo.setProjector(classroom.getProjector());
|
||||
|
||||
// 按 bind_classroom_id 查询绑定的电子班牌(0..N),映射为轻量摘要 VO,无绑定时返回空列表 []
|
||||
TrainElectronicBoard boardQuery = new TrainElectronicBoard();
|
||||
|
||||
@@ -29,9 +29,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<include refid="selectTrainClassroomInfoVo"/>
|
||||
where del_flag = '0'
|
||||
<if test="roomName != null and roomName != ''"> and room_name like concat('%', #{roomName}, '%')</if>
|
||||
<if test="roomLocation != null and roomLocation != ''"> and room_location = #{roomLocation}</if>
|
||||
<if test="roomLocation != null and roomLocation != ''"> and room_location like concat('%', #{roomLocation}, '%')</if>
|
||||
<if test="capacity != null "> and capacity = #{capacity}</if>
|
||||
<if test="roomStatus != null "> and room_status = #{roomStatus}</if>
|
||||
<if test="multimedia != null "> and multimedia = #{multimedia}</if>
|
||||
<if test="projector != null "> and projector = #{projector}</if>
|
||||
<if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if>
|
||||
order by create_time desc
|
||||
</select>
|
||||
@@ -80,9 +82,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="seatArrange != null">#{seatArrange}</if>
|
||||
<if test="multimedia != null">#{multimedia}</if>
|
||||
<if test="projector != null">#{projector}</if>
|
||||
<if test="seatArrange != null">#{seatArrange},</if>
|
||||
<if test="multimedia != null">#{multimedia},</if>
|
||||
<if test="projector != null">#{projector},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
Reference in new issue
Block a user