分区卡座合并
This commit is contained in:
parent
af992b181b
commit
bd64b0f69d
|
@ -91,7 +91,7 @@ public class DataScopeUtil {
|
||||||
}
|
}
|
||||||
// 全部数据范围
|
// 全部数据范围
|
||||||
if (DataScopeConstants.DATA_SCOPE_ALL.equals(dataScope)) {
|
if (DataScopeConstants.DATA_SCOPE_ALL.equals(dataScope)) {
|
||||||
sqlString = new StringBuilder();
|
sqlString = new StringBuilder(" OR 1=1 ");
|
||||||
conditions.add(dataScope);
|
conditions.add(dataScope);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,4 +15,7 @@ public class BoothQuery extends BoothVO {
|
||||||
@ApiModelProperty("当前时间")
|
@ApiModelProperty("当前时间")
|
||||||
private LocalDateTime time;
|
private LocalDateTime time;
|
||||||
|
|
||||||
|
@ApiModelProperty("父分区ID")
|
||||||
|
private Long partParentId;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="query.picture != null and query.picture != ''"> and bb.picture = #{query.picture}</if>
|
<if test="query.picture != null and query.picture != ''"> and bb.picture = #{query.picture}</if>
|
||||||
<if test="query.partName != null and query.partName != ''"> and bp.part_name like concat('%', #{query.partName}, '%') </if>
|
<if test="query.partName != null and query.partName != ''"> and bp.part_name like concat('%', #{query.partName}, '%') </if>
|
||||||
<if test="query.time != null"> and bb.expired_time >= #{query.time} </if>
|
<if test="query.time != null"> and bb.expired_time >= #{query.time} </if>
|
||||||
|
<if test="query.partParentId != null"> and bp_parent.part_id = #{query.partParentId} OR bp.part_id = #{query.partParentId} </if>
|
||||||
<if test="query.storeName != null and query.storeName != ''"> and bs.store_name like concat('%', #{query.storeName}, '%') </if>
|
<if test="query.storeName != null and query.storeName != ''"> and bs.store_name like concat('%', #{query.storeName}, '%') </if>
|
||||||
${@com.ruoyi.framework.util.DataScopeUtil@create(query.scope)
|
${@com.ruoyi.framework.util.DataScopeUtil@create(query.scope)
|
||||||
.userSetAlias("bs.user_id")
|
.userSetAlias("bs.user_id")
|
||||||
|
|
|
@ -97,4 +97,6 @@ public interface BoothService
|
||||||
int unbindUser(BoothVO booth);
|
int unbindUser(BoothVO booth);
|
||||||
|
|
||||||
int userChangeBind(Long usingBoothId ,Long changeBoothId,Long userId);
|
int userChangeBind(Long usingBoothId ,Long changeBoothId,Long userId);
|
||||||
|
|
||||||
|
List<Long> selectChildrenIds(BoothQuery query);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.ruoyi.bst.booth.service.impl;
|
package com.ruoyi.bst.booth.service.impl;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
@ -261,6 +262,11 @@ public class BoothServiceImpl implements BoothService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Long> selectChildrenIds(BoothQuery query) {
|
||||||
|
return Collections.emptyList();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public DeviceIotVO lighting(BoothVO booth, Long userId, boolean requiredIot) {
|
public DeviceIotVO lighting(BoothVO booth, Long userId, boolean requiredIot) {
|
||||||
|
|
|
@ -61,7 +61,7 @@ public class BoothController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('bst:booth:list')")
|
@PreAuthorize("@ss.hasPermi('bst:booth:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(BoothQuery query) {
|
public TableDataInfo list(BoothQuery query,boolean needChildren) {
|
||||||
startPage();
|
startPage();
|
||||||
startOrderBy();
|
startOrderBy();
|
||||||
query.setScope(true);
|
query.setScope(true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user