Commit 5d5e9342 by 吕明尚

更改门店查询为空的问题

parent 2a09370b
......@@ -73,6 +73,9 @@ public class SRoomServiceImpl extends ServiceImpl<SRoomMapper, SRoom> implements
@Override
public List<SRoom> selectSRoomList(SRoom sRoom) {
List<SRoom> roomList = sRoomMapper.selectSRoomList(sRoom);
if (CollectionUtils.isEmpty(roomList)) {
return new ArrayList<>();
}
List<Long> storeIds = roomList.stream().map(SRoom::getStoreId).collect(Collectors.toList());
List<Map> storeList = sStoreService.optionList(storeIds);
roomList.forEach(o -> {
......
......@@ -39,7 +39,7 @@
<if test="images != null and images != ''"> and images = #{images}</if>
<if test="facilities != null and facilities != ''"> and facilities = #{facilities}</if>
<if test="info != null and info != ''"> and info = #{info}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="status != null and status != '' or status ==0">and status = #{status}</if>
<if test="price != null "> and price = #{price}</if>
<if test="doorLockCode != null and doorLockCode != ''"> and door_lock_code = #{doorLockCode}</if>
<if test="electricControlCode != null and electricControlCode != ''"> and electric_control_code = #{electricControlCode}</if>
......
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