修改查询报错的bug
This commit is contained in:
parent
7c30dc99d6
commit
15d33e6519
|
|
@ -8,6 +8,7 @@ import com.nu.modules.nubaseinfo.service.INuBaseInfoService;
|
|||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
|
|
@ -72,6 +73,7 @@ public class NuBaseInfoController extends JeecgController<NuBaseInfo, INuBaseInf
|
|||
HttpServletRequest req) {
|
||||
Map<String, QueryRuleEnum> customeRuleMap = new HashMap<>();
|
||||
QueryWrapper<NuBaseInfo> queryWrapper = QueryGenerator.initQueryWrapper(nuBaseInfo, req.getParameterMap(), customeRuleMap);
|
||||
queryWrapper.like(StringUtils.isNotBlank(nuBaseInfo.getNuNameParams()),"a.nu_name",nuBaseInfo.getNuNameParams());
|
||||
queryWrapper.isNotNull("b.id");
|
||||
Page<NuBaseInfo> page = new Page<NuBaseInfo>(pageNo, pageSize);
|
||||
IPage<NuBaseInfo> pageList = nuBaseInfoService.qyList(page, queryWrapper);
|
||||
|
|
|
|||
|
|
@ -138,6 +138,8 @@ public class NuBaseInfo implements Serializable {
|
|||
private String orgCode;
|
||||
@TableField(exist = false)
|
||||
private String asyncId;
|
||||
@TableField(exist = false)
|
||||
private String nuNameParams;
|
||||
//摄像头信息
|
||||
@TableField(exist = false)
|
||||
private List<CameraInfoEntity> cameraInfo;
|
||||
|
|
|
|||
Loading…
Reference in New Issue