Commit e154941f authored by co_dengxiongwen's avatar co_dengxiongwen

调整

parent 4182793f
......@@ -12,7 +12,7 @@ import java.io.Serializable;
* @author dxw
*/
@Data
@ApiModel(value="机房空调(220V)信息对象",description="机房空调(220V)信息对象")
@ApiModel(value="机房空调信息对象",description="机房空调信息对象")
@TableName("jfktp_info")
public class JfktpInfo implements Serializable {
private static final long serialVersionUID = 1L;
......
package com.devplatform.admin.modules.eq.bean;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@ApiModel(value="机房空调(220V)信息-天对象",description="机房空调(220V)信息-天对象")
@ApiModel(value="机房空调信息-天对象",description="机房空调信息-天对象")
@TableName("jfktp_info_day")
public class JfktpInfoDay implements Serializable {
private static final long serialVersionUID = 1L;
......
package com.devplatform.admin.modules.eq.bean;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@ApiModel(value="机房空调(220V)信息-时对象",description="机房空调(220V)信息-时对象")
@ApiModel(value="机房空调信息-时对象",description="机房空调信息-时对象")
@TableName("jfktp_info_hour")
public class JfktpInfoHour implements Serializable {
private static final long serialVersionUID = 1L;
......
package com.devplatform.admin.modules.eq.bean;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@ApiModel(value="机房空调(220V)信息-月对象",description="机房空调(220V)信息-月对象")
@ApiModel(value="机房空调信息-月对象",description="机房空调信息-月对象")
@TableName("jfktp_info_month")
public class JfktpInfoMonth implements Serializable {
private static final long serialVersionUID = 1L;
......
package com.devplatform.admin.modules.eq.bean;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@ApiModel(value="机房空调(220V)信息-年对象",description="机房空调(220V)信息-年对象")
@ApiModel(value="机房空调信息-年对象",description="机房空调信息-年对象")
@TableName("jfktp_info_year")
public class JfktpInfoYear implements Serializable {
private static final long serialVersionUID = 1L;
......
package com.devplatform.admin.modules.sysparams.bean;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
* @author Administrator
*/
@ApiModel(value = "系统参数配置对象", description = "系统参数配置对象")
@TableName("sys_params")
public class SysParams implements Serializable {
/** */
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "主键ID", name = "id")
@TableId
/** 主键id*/
private java.lang.String id;
@ApiModelProperty(value = "参数名称", name = "name")
/** 参数名称*/
private java.lang.String name;
@ApiModelProperty(value = "参数描述", name = "remark")
/** 参数描述*/
private java.lang.String remark;
@ApiModelProperty(value = "参数值", name = "value")
/** 参数值*/
private java.lang.String value;
@ApiModelProperty(value = "参数说明", name = "introduction")
/** 参数说明*/
private java.lang.String introduction;
@ApiModelProperty(value = "状态(1正常,0不可用)", name = "status")
/** 状态(1正常,0不可用)*/
private Integer status;
@ApiModelProperty(value = "系统标识", name = "sysSign")
/** 系统标识*/
private java.lang.String sysSign;
@ApiModelProperty(value = "是否已删除(0未删除,1已删除)", name = "deleted")
/** 是否已删除(0未删除,1已删除)*/
private Integer deleted;
@ApiModelProperty(value = "创建人", name = "createUserId")
/** 创建人*/
private java.lang.String createUserId;
@ApiModelProperty(value = "创建时间", name = "createTime")
/** 创建时间*/
private java.util.Date createTime;
@ApiModelProperty(value = "修改人", name = "updateUserId")
/** 修改人*/
private java.lang.String updateUserId;
@ApiModelProperty(value = "修改时间", name = "updateTime")
/** 修改时间*/
private java.util.Date updateTime;
@ApiModelProperty(value = "备用项1", name = "byx1")
/** 备用项1*/
private java.lang.String byx1;
@ApiModelProperty(value = "备用项2", name = "byx2")
/** 备用项2*/
private java.lang.String byx2;
@ApiModelProperty(value = "备用项3", name = "byx3")
/** 备用项3*/
private java.lang.String byx3;
@ApiModelProperty(value = "站点id", name = "stationId")
/** 站点id*/
private String stationId;
public String getStationId() {
return stationId;
}
public void setStationId(String stationId) {
this.stationId = stationId;
}
/** 主键id的getter方法 */
public java.lang.String getId() {
return id;
}
/** 主键id的setter方法 */
public void setId(java.lang.String id) {
this.id = id;
}
/** 参数名称的getter方法 */
public java.lang.String getName() {
return name;
}
/** 参数名称的setter方法 */
public void setName(java.lang.String name) {
this.name = name;
}
/** 参数描述的getter方法 */
public java.lang.String getRemark() {
return remark;
}
/** 参数描述的setter方法 */
public void setRemark(java.lang.String remark) {
this.remark = remark;
}
/** 参数值的getter方法 */
public java.lang.String getValue() {
return value;
}
/** 参数值的setter方法 */
public void setValue(java.lang.String value) {
this.value = value;
}
/** 参数说明的getter方法 */
public java.lang.String getIntroduction() {
return introduction;
}
/** 参数说明的setter方法 */
public void setIntroduction(java.lang.String introduction) {
this.introduction = introduction;
}
/** 状态(1正常,0不可用)的getter方法 */
public Integer getStatus() {
return status;
}
/** 状态(1正常,0不可用)的setter方法 */
public void setStatus(Integer status) {
this.status = status;
}
/** 系统标识的getter方法 */
public java.lang.String getSysSign() {
return sysSign;
}
/** 系统标识的setter方法 */
public void setSysSign(java.lang.String sysSign) {
this.sysSign = sysSign;
}
/** 是否已删除(0未删除,1已删除)的getter方法 */
public Integer getDeleted() {
return deleted;
}
/** 是否已删除(0未删除,1已删除)的setter方法 */
public void setDeleted(Integer deleted) {
this.deleted = deleted;
}
/** 创建人的getter方法 */
public java.lang.String getCreateUserId() {
return createUserId;
}
/** 创建人的setter方法 */
public void setCreateUserId(java.lang.String createUserId) {
this.createUserId = createUserId;
}
/** 创建时间的getter方法 */
public java.util.Date getCreateTime() {
return createTime;
}
/** 创建时间的setter方法 */
public void setCreateTime(java.util.Date createTime) {
this.createTime = createTime;
}
/** 修改人的getter方法 */
public java.lang.String getUpdateUserId() {
return updateUserId;
}
/** 修改人的setter方法 */
public void setUpdateUserId(java.lang.String updateUserId) {
this.updateUserId = updateUserId;
}
/** 修改时间的getter方法 */
public java.util.Date getUpdateTime() {
return updateTime;
}
/** 修改时间的setter方法 */
public void setUpdateTime(java.util.Date updateTime) {
this.updateTime = updateTime;
}
/** 备用项1的getter方法 */
public java.lang.String getByx1() {
return byx1;
}
/** 备用项1的setter方法 */
public void setByx1(java.lang.String byx1) {
this.byx1 = byx1;
}
/** 备用项2的getter方法 */
public java.lang.String getByx2() {
return byx2;
}
/** 备用项2的setter方法 */
public void setByx2(java.lang.String byx2) {
this.byx2 = byx2;
}
/** 备用项3的getter方法 */
public java.lang.String getByx3() {
return byx3;
}
/** 备用项3的setter方法 */
public void setByx3(java.lang.String byx3) {
this.byx3 = byx3;
}
}
package com.devplatform.admin.modules.sysparams.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.devplatform.admin.common.annotation.SysLogMethod;
import com.devplatform.admin.common.scheduling.TopologyTasks;
import com.devplatform.admin.common.utils.AbstractController;
import com.devplatform.admin.common.utils.Constants;
import com.devplatform.admin.modules.sysparams.bean.SysParams;
import com.devplatform.admin.modules.sysparams.model.SysParamsModel;
import com.devplatform.admin.modules.sysparams.service.SysParamsService;
import com.devplatform.common.base.validator.ValidatorUtils;
import com.devplatform.common.util.PageUtils;
import com.devplatform.common.util.R;
import com.devplatform.common.util.StringUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
* @author Administrator
*/
@Api(tags = {"系统参数配置接口"})
@RestController
@RequestMapping("/sysParams")
public class SysParamsController extends AbstractController {
@Autowired private SysParamsService sysParamsService;
@Autowired private TopologyTasks topologyTasks;
/**
* 列表页面列表数据获取
*
* @param params 承接对象
* @return
*/
@ApiOperation(value = "根据条件获取系统参数配置分页数据列表", notes = "根据条件获取系统参数配置分页数据列表")
@ApiImplicitParam(
name = "params",
value = "参数",
required = true,
dataType = "Map<String, Object>")
@PostMapping("/list")
public R list(@RequestParam Map<String, Object> params) {
PageUtils page = sysParamsService.queryPage(params, null);
return R.ok().put("page", page);
}
/**
* 列表页面列表数据获取
*
* @param params 承接对象
* @return
*/
@ApiOperation(value = "根据条件获取机构表分页数据列表", notes = "根据条件获取机构表分页数据列表")
@ApiImplicitParam(
name = "params",
value = "参数",
required = true,
dataType = "Map<String, Object>")
@PostMapping("/paramsAllList")
public R paramsAllList(@RequestParam Map<String, Object> params) {
String page = (String) params.get("page");
String limit = (String) params.get("limit");
String stationId = (String) params.get("stationId");
SysParamsModel model = new SysParamsModel();
model.setSort((String) params.get("sort"));
model.setOrder((String) params.get("order"));
model.setStationId(stationId);
// model.setParentId((String)params.get("id"));//参数
Page<SysParams> pageTask = new Page<SysParams>(Integer.parseInt(page), Integer.parseInt(limit));
Page<SysParams> page1 = sysParamsService.queryPageList(pageTask, model);
return R.ok().put("page", page1);
}
/**
* 添加
*
* @param bean 系统参数配置对象
* @return
*/
@SysLogMethod(operation = "新增", blockName = "系统管理", detail = "新增系统参数配置数据")
@ApiOperation(value = "新增系统参数配置数据", notes = "新增系统参数配置数据")
@PostMapping("/save")
public R save(@RequestBody @ApiParam(value = "系统参数配置实体对象", required = true) SysParams bean) {
ValidatorUtils.validateEntity(bean);
bean.setCreateUserId(getUserId());
bean.setCreateTime(new Date());
bean.setSysSign(getUser().getSysSystem().getCode());
sysParamsService.save(bean);
return R.ok();
}
/**
* 修改
*
* @param bean 系统参数配置对象
* @return
*/
@SysLogMethod(operation = "修改", blockName = "系统管理", detail = "修改系统参数配置数据")
@ApiOperation(value = "修改系统参数配置数据", notes = "修改系统参数配置数据")
@PostMapping("/update")
public R update(@RequestBody @ApiParam(value = "系统参数配置实体对象", required = true) SysParams bean) {
ValidatorUtils.validateEntity(bean);
bean.setUpdateUserId(getUserId());
bean.setUpdateTime(new Date());
bean.setSysSign(getUser().getSysSystem().getCode());
sysParamsService.update(
bean,
new QueryWrapper<SysParams>()
.eq(StringUtil.checkNotNull(bean.getId()), "id", bean.getId()));
if (Constants.TOPOLOGY.equals(bean.getName())) {
topologyTasks.setTimer(Long.parseLong(bean.getValue())*1000);
}
return R.ok();
}
/**
* 根据ID获取系统参数配置对象
*
* @param id 对象主键
* @return
*/
@ApiOperation(value = "根据ID获取系统参数配置对象", notes = "根据ID获取系统参数配置对象")
@ApiImplicitParam(name = "id", value = "主键", required = true, dataType = "String")
@GetMapping("/getId/{id}")
public R getId(@PathVariable String id) {
SysParams bean = sysParamsService.getById(id);
return R.ok().put("bean", bean);
}
@ApiImplicitParam(name = "id", value = "主键", required = true, dataType = "String")
@GetMapping("/querySysParams/{stationId}")
public R querySysParams(@PathVariable String stationId) {
SysParams bean =
sysParamsService.getOne(
new QueryWrapper<SysParams>().eq("name", "topology").eq("station_id", stationId));
return R.ok().put("bean", bean);
}
/**
* 根据ID获取系统参数配置对象
*
* @param id[] 系统参数配置对象主键数组
* @return
*/
@SysLogMethod(operation = "删除", blockName = "系统管理", detail = "删除系统参数配置数据")
@ApiOperation(value = "根据ID批量删除系统参数配置数据", notes = "根据ID批量删除系统参数配置数据")
@ApiImplicitParam(name = "ids", value = "主键数组", required = true, dataType = "String")
@PostMapping("/delete")
public R delete(@RequestBody String[] ids) {
sysParamsService.removeByIds(Arrays.asList(ids));
return R.ok();
}
/**
* 获取设备告警预值
*
* @return
*/
@GetMapping("/queryAlarmValue/{stationId}")
public R queryAlarmValue(@PathVariable("stationId") String stationId) {
List<SysParams> list =
sysParamsService.list(
new QueryWrapper<SysParams>()
.eq("deleted", 0)
.eq("station_id", stationId)
.in("name", "cpuUsedPrecent", "memoryUsedPrecent", "diskUsedPrecent"));
return R.ok().put("list", list);
}
}
package com.devplatform.admin.modules.sysparams.dao;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.devplatform.admin.modules.sysparams.bean.SysParams;
import com.devplatform.admin.modules.sysparams.model.SysParamsModel;
import com.devplatform.common.dao.MyBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
/**
* SysParams Mapper 用于系统参数配置的数据库操作
*
* @author Administrator
*/
@Mapper
@Repository
public interface SysParamsDao extends MyBaseMapper<SysParams> {
/**
* 查询系统参数配置分页数据
* @param pageTask
* @param model
* @return
*/
public Page<SysParams> queryPageList(
@Param("pageTask") Page<SysParams> pageTask, @Param("model") SysParamsModel model);
}
package com.devplatform.admin.modules.sysparams.model;
/**
* 系统参数配置的Model <br>
*
* @author 代码生成器产生
*/
public class SysParamsModel {
/** 主键id*/
private java.lang.String id;
/** 参数名称*/
private java.lang.String name;
/** 参数描述*/
private java.lang.String remark;
/** 参数值*/
private java.lang.String value;
/** 参数说明*/
private java.lang.String introduction;
/** 状态(1正常,0不可用)*/
private Integer status;
/** 系统标识*/
private java.lang.String sysSign;
/** 是否已删除(0未删除,1已删除)*/
private Integer deleted;
/** 创建人*/
private java.lang.String createUserId;
/** 创建时间*/
private java.util.Date createTime;
/** 修改人*/
private java.lang.String updateUserId;
/** 修改时间*/
private java.util.Date updateTime;
/** 备用项1*/
private java.lang.String byx1;
/** 备用项2*/
private java.lang.String byx2;
/** 备用项3*/
private java.lang.String byx3;
private java.lang.String stationId;
/** 备用项2*/
private java.lang.String sort;
/** 备用项3*/
private java.lang.String order;
public String getStationId() {
return stationId;
}
public void setStationId(String stationId) {
this.stationId = stationId;
}
public String getSort() {
return sort;
}
public void setSort(String sort) {
this.sort = sort;
}
public String getOrder() {
return order;
}
public void setOrder(String order) {
this.order = order;
}
/** 主键id的getter方法 */
public java.lang.String getId() {
return id;
}
/** 主键id的setter方法 */
public void setId(java.lang.String id) {
this.id = id;
}
/** 参数名称的getter方法 */
public java.lang.String getName() {
return name;
}
/** 参数名称的setter方法 */
public void setName(java.lang.String name) {
this.name = name;
}
/** 参数描述的getter方法 */
public java.lang.String getRemark() {
return remark;
}
/** 参数描述的setter方法 */
public void setRemark(java.lang.String remark) {
this.remark = remark;
}
/** 参数值的getter方法 */
public java.lang.String getValue() {
return value;
}
/** 参数值的setter方法 */
public void setValue(java.lang.String value) {
this.value = value;
}
/** 参数说明的getter方法 */
public java.lang.String getIntroduction() {
return introduction;
}
/** 参数说明的setter方法 */
public void setIntroduction(java.lang.String introduction) {
this.introduction = introduction;
}
/** 状态(1正常,0不可用)的getter方法 */
public Integer getStatus() {
return status;
}
/** 状态(1正常,0不可用)的setter方法 */
public void setStatus(Integer status) {
this.status = status;
}
/** 系统标识的getter方法 */
public java.lang.String getSysSign() {
return sysSign;
}
/** 系统标识的setter方法 */
public void setSysSign(java.lang.String sysSign) {
this.sysSign = sysSign;
}
/** 是否已删除(0未删除,1已删除)的getter方法 */
public Integer getDeleted() {
return deleted;
}
/** 是否已删除(0未删除,1已删除)的setter方法 */
public void setDeleted(Integer deleted) {
this.deleted = deleted;
}
/** 创建人的getter方法 */
public java.lang.String getCreateUserId() {
return createUserId;
}
/** 创建人的setter方法 */
public void setCreateUserId(java.lang.String createUserId) {
this.createUserId = createUserId;
}
/** 创建时间的getter方法 */
public java.util.Date getCreateTime() {
return createTime;
}
/** 创建时间的setter方法 */
public void setCreateTime(java.util.Date createTime) {
this.createTime = createTime;
}
/** 修改人的getter方法 */
public java.lang.String getUpdateUserId() {
return updateUserId;
}
/** 修改人的setter方法 */
public void setUpdateUserId(java.lang.String updateUserId) {
this.updateUserId = updateUserId;
}
/** 修改时间的getter方法 */
public java.util.Date getUpdateTime() {
return updateTime;
}
/** 修改时间的setter方法 */
public void setUpdateTime(java.util.Date updateTime) {
this.updateTime = updateTime;
}
/** 备用项1的getter方法 */
public java.lang.String getByx1() {
return byx1;
}
/** 备用项1的setter方法 */
public void setByx1(java.lang.String byx1) {
this.byx1 = byx1;
}
/** 备用项2的getter方法 */
public java.lang.String getByx2() {
return byx2;
}
/** 备用项2的setter方法 */
public void setByx2(java.lang.String byx2) {
this.byx2 = byx2;
}
/** 备用项3的getter方法 */
public java.lang.String getByx3() {
return byx3;
}
/** 备用项3的setter方法 */
public void setByx3(java.lang.String byx3) {
this.byx3 = byx3;
}
}
package com.devplatform.admin.modules.sysparams.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.devplatform.admin.modules.sysparams.bean.SysParams;
import com.devplatform.admin.modules.sysparams.model.SysParamsModel;
import com.devplatform.common.service.MyBaseService;
/**
* 系统参数配置的service接口 <br>
* <b>功能:</b>SysParamsService<br>
*
* @author 代码生成器产生
*/
public interface SysParamsService extends MyBaseService<SysParams> {
/**
* 查询系统参数配置分页数据
* @param pageTask
* @param model
* @return
*/
public Page<SysParams> queryPageList(Page<SysParams> pageTask, SysParamsModel model);
}
package com.devplatform.admin.modules.sysparams.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.devplatform.admin.modules.sysparams.bean.SysParams;
import com.devplatform.admin.modules.sysparams.dao.SysParamsDao;
import com.devplatform.admin.modules.sysparams.model.SysParamsModel;
import com.devplatform.admin.modules.sysparams.service.SysParamsService;
import com.devplatform.common.service.impl.MyBaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 系统参数配置的service接口实现类 <br>
* <b>功能:</b>SysParamsServiceImpl<br>
*
* @author 代码生成器产生
*/
@Service("sysParamsService")
public class SysParamsServiceImpl extends MyBaseServiceImpl<SysParamsDao, SysParams>
implements SysParamsService {
@Autowired private SysParamsDao mapper;
@Override
public Page<SysParams> queryPageList(Page<SysParams> pageTask, SysParamsModel model) {
return mapper.queryPageList(pageTask, model);
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.devplatform.admin.modules.sysparams.dao.SysParamsDao">
<!-- Result Map -->
<resultMap id="BaseResultMap" type="com.devplatform.admin.modules.sysparams.bean.SysParams">
<result column="id" property="id"/>
<result column="name" property="name"/>
<result column="remark" property="remark"/>
<result column="value" property="value"/>
<result column="introduction" property="introduction"/>
<result column="status" property="status"/>
<result column="sys_sign" property="sysSign"/>
<result column="deleted" property="deleted"/>
<result column="create_user_id" property="createUserId"/>
<result column="create_time" property="createTime"/>
<result column="update_user_id" property="updateUserId"/>
<result column="update_time" property="updateTime"/>
<result column="byx1" property="byx1"/>
<result column="byx2" property="byx2"/>
<result column="byx3" property="byx3"/>
<result column="station_id" property="stationId"/>
</resultMap>
<!-- sys_params table all fields -->
<sql id="Base_Column_List">
id,name,remark,value,introduction,status,sys_sign,deleted,create_user_id,create_time,update_user_id,update_time,byx1,byx2,byx3,station_id
</sql>
<!-- 公共查询条件 -->
<sql id="Example_Where_Clause">
where deleted=0
<if test="id!=null and id!=''">and id = #{id}</if>
<if test="name!=null and name!=''">and name = #{name}</if>
<if test="remark!=null and remark!=''">and remark = #{remark}</if>
<if test="value!=null and value!=''">and value = #{value}</if>
<if test="introduction!=null and introduction!=''">and introduction = #{introduction}</if>
<if test="status!=null ">and status = #{status}</if>
<if test="sysSign!=null and sysSign!=''">and sys_sign = #{sysSign}</if>
<if test="deleted!=null ">and deleted = #{deleted}</if>
<if test="createUserId!=null and createUserId!=''">and create_user_id = #{createUserId}</if>
<if test="createTime!=null ">and create_time = #{createTime}</if>
<if test="updateUserId!=null and updateUserId!=''">and update_user_id = #{updateUserId}</if>
<if test="updateTime!=null ">and update_time = #{updateTime}</if>
<if test="byx1!=null and byx1!=''">and byx1 = #{byx1}</if>
<if test="byx2!=null and byx2!=''">and byx2 = #{byx2}</if>
<if test="byx3!=null and byx3!=''">and byx3 = #{byx3}</if>
</sql>
<select id="queryPageList" resultMap="BaseResultMap">
select * from sys_params where 1 = 1
<if test="model.stationId!=null and model.stationId!=''">
and station_id = #{model.stationId}
</if>
<if test="model.sort != null and model.sort != '' and model.order != null and model.order != ''">
ORDER BY ${model.sort} ${model.order}
</if>
</select>
</mapper>
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