Commit f1969325 authored by co_dengxiongwen's avatar co_dengxiongwen

代码生成

parent c3e57208
......@@ -2,12 +2,10 @@ package com.devplatform.admin.common.utils;
import com.devplatform.admin.common.model.BaseModel;
import com.devplatform.admin.modules.sys.bean.SysUserEntity;
import com.devplatform.admin.modules.sys.service.SysLogService;
import com.devplatform.common.controller.BaseController;
import org.apache.shiro.SecurityUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
......@@ -21,9 +19,6 @@ import java.util.List;
public abstract class AbstractController extends BaseController {
protected Logger logger = LoggerFactory.getLogger(getClass());
@Autowired(required = false)
private SysLogService sysLogService;
/**
* 用户信息
*
......
package com.devplatform.admin.modules.eq.bean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@ApiModel(value="室内气象站信息-天对象",description="室内气象站信息-天对象")
@TableName("snqxz_info_day")
public class SnqxzInfoDay implements Serializable {
private static final long serialVersionUID = 1L;
/** 主键id */
@ApiModelProperty(value="主键ID",name="id")
@TableId
private java.lang.String id;
/** 资源点id */
@ApiModelProperty(value="资源点id",name="resourceId")
private java.lang.String resourceId;
/** 温度 */
@ApiModelProperty(value="温度",name="temperature")
private java.lang.String temperature;
/** 湿度 */
@ApiModelProperty(value="湿度",name="humidity")
private java.lang.String humidity;
/** CO2 */
@ApiModelProperty(value="CO2",name="carbonDioxide")
private java.lang.String carbonDioxide;
/** 类型(1手动,2节能) */
@ApiModelProperty(value="类型(1手动,2节能)",name="type")
private Integer type;
/** 站点表id */
@ApiModelProperty(value="站点表id",name="stationId")
private java.lang.String stationId;
/** 创建人 */
@ApiModelProperty(value="创建人",name="createUserId")
private java.lang.String createUserId;
/** 创建时间 */
@ApiModelProperty(value="创建时间",name="createTime")
private java.util.Date createTime;
}
package com.devplatform.admin.modules.eq.bean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@ApiModel(value="室内气象站信息-时对象",description="室内气象站信息-时对象")
@TableName("snqxz_info_hour")
public class SnqxzInfoHour implements Serializable {
private static final long serialVersionUID = 1L;
/** 主键id */
@ApiModelProperty(value="主键ID",name="id")
@TableId
private java.lang.String id;
/** 资源点id */
@ApiModelProperty(value="资源点id",name="resourceId")
private java.lang.String resourceId;
/** 温度 */
@ApiModelProperty(value="温度",name="temperature")
private java.lang.String temperature;
/** 湿度 */
@ApiModelProperty(value="湿度",name="humidity")
private java.lang.String humidity;
/** CO2 */
@ApiModelProperty(value="CO2",name="carbonDioxide")
private java.lang.String carbonDioxide;
/** 类型(1手动,2节能) */
@ApiModelProperty(value="类型(1手动,2节能)",name="type")
private Integer type;
/** 站点表id */
@ApiModelProperty(value="站点表id",name="stationId")
private java.lang.String stationId;
/** 创建人 */
@ApiModelProperty(value="创建人",name="createUserId")
private java.lang.String createUserId;
/** 创建时间 */
@ApiModelProperty(value="创建时间",name="createTime")
private java.util.Date createTime;
}
package com.devplatform.admin.modules.eq.bean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@ApiModel(value="室内气象站信息-月对象",description="室内气象站信息-月对象")
@TableName("snqxz_info_month")
public class SnqxzInfoMonth implements Serializable {
private static final long serialVersionUID = 1L;
/** 主键id */
@ApiModelProperty(value="主键ID",name="id")
@TableId
private java.lang.String id;
/** 资源点id */
@ApiModelProperty(value="资源点id",name="resourceId")
private java.lang.String resourceId;
/** 温度 */
@ApiModelProperty(value="温度",name="temperature")
private java.lang.String temperature;
/** 湿度 */
@ApiModelProperty(value="湿度",name="humidity")
private java.lang.String humidity;
/** CO2 */
@ApiModelProperty(value="CO2",name="carbonDioxide")
private java.lang.String carbonDioxide;
/** 类型(1手动,2节能) */
@ApiModelProperty(value="类型(1手动,2节能)",name="type")
private Integer type;
/** 站点表id */
@ApiModelProperty(value="站点表id",name="stationId")
private java.lang.String stationId;
/** 创建人 */
@ApiModelProperty(value="创建人",name="createUserId")
private java.lang.String createUserId;
/** 创建时间 */
@ApiModelProperty(value="创建时间",name="createTime")
private java.util.Date createTime;
}
package com.devplatform.admin.modules.eq.bean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@ApiModel(value="室内气象站信息-年对象",description="室内气象站信息-年对象")
@TableName("snqxz_info_year")
public class SnqxzInfoYear implements Serializable {
private static final long serialVersionUID = 1L;
/** 主键id */
@ApiModelProperty(value="主键ID",name="id")
@TableId
private java.lang.String id;
/** 资源点id */
@ApiModelProperty(value="资源点id",name="resourceId")
private java.lang.String resourceId;
/** 温度 */
@ApiModelProperty(value="温度",name="temperature")
private java.lang.String temperature;
/** 湿度 */
@ApiModelProperty(value="湿度",name="humidity")
private java.lang.String humidity;
/** CO2 */
@ApiModelProperty(value="CO2",name="carbonDioxide")
private java.lang.String carbonDioxide;
/** 类型(1手动,2节能) */
@ApiModelProperty(value="类型(1手动,2节能)",name="type")
private Integer type;
/** 站点表id */
@ApiModelProperty(value="站点表id",name="stationId")
private java.lang.String stationId;
/** 创建人 */
@ApiModelProperty(value="创建人",name="createUserId")
private java.lang.String createUserId;
/** 创建时间 */
@ApiModelProperty(value="创建时间",name="createTime")
private java.util.Date createTime;
}
package com.devplatform.admin.modules.eq.controller;
import com.devplatform.admin.common.utils.AbstractController;
import com.devplatform.common.util.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 分析
* @author dxw
*/
@Api(tags={"分析接口"})
@RestController
@RequestMapping("/analysis")
public class AnalysisController extends AbstractController {
/**
* 首页
* @return
*/
@ApiOperation(value="获取首页展示数据", notes="获取首页展示数据")
@GetMapping("/getSyParam")
public R getSyParam() {
Map<String,Object> map = new HashMap<>();
//系统运行时间
map.put("systemRunningTime",10);
//报警总数
map.put("faultAlarm",2);
//能耗
Map<String,Object> energy = new HashMap<>();
//当天
energy.put("sdSystemRunningTimeDay",10);
energy.put("jnSystemRunningTimeDay",11);
energy.put("sdEnergyDay",100);
energy.put("jnEnergyDay",100);
energy.put("totalEnergyDay",200);
//当月
energy.put("sdSystemRunningTimeMonth",10);
energy.put("jnSystemRunningTimeMonth",10);
energy.put("sdEnergyMonth",100);
energy.put("jnEnergyMonth",100);
energy.put("totalEnergyMonth",200);
map.put("energy",energy);
//能耗统计
List<String> list = new ArrayList<String>();
list.add("111");
list.add("222");
list.add("333");
list.add("444");
map.put("energyList",list);
return R.ok().put("bean", map);
}
}
package com.devplatform.admin.modules.eq.controller;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.devplatform.admin.common.utils.AbstractController;
import com.devplatform.admin.modules.eq.service.EquipmentService;
import com.devplatform.admin.modules.liresource.bean.LiResource;
import com.devplatform.admin.modules.liresource.model.LiResourceModel;
import com.devplatform.admin.modules.liresource.service.LiResourceService;
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 org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Map;
......@@ -25,47 +21,9 @@ import java.util.Map;
@RestController
@RequestMapping("/equipment")
public class EquipmentController extends AbstractController {
@Autowired
private LiResourceService liResourceService;
@Autowired
private EquipmentService equipmentService;
/**
* 列表页面列表数据获取
* @param model 承接对象
* @return
*/
@ApiOperation(value="根据条件获取资源点表数据列表", notes="根据条件获取资源点表数据列表")
@ApiImplicitParam(name = "model", value = "参数", required = true, dataType = "LiRoomModel")
@PostMapping("/list")
public R list(@RequestBody LiResourceModel model) {
List<LiResource> list = liResourceService.list(new LambdaQueryWrapper<LiResource>());
return R.ok().put("list", list);
}
/**
* 列表页面列表数据获取
* @param model 承接对象
* @return
*/
@ApiOperation(value="根据条件获取资源点表分页数据列表", notes="根据条件获取资源点表分页数据列表")
@ApiImplicitParam(name = "model", value = "参数", required = true, dataType = "LiRoomModel")
@PostMapping("/pageList")
public R pageList(@RequestBody LiResourceModel model) {
//如果model参数中没有设置排序方式,则默认以创建时间倒序排列
if(StringUtil.isEmpty(model.getSort())){
model.setSort("create_time desc");
}
//按条件查询分页数据
// List<LiResource> list = liResourceService.queryPageList(model);
//将查询结果中数据和数量封装起来做为接口返回值
// return R.ok().put("page", getMyPage(list,model));
return R.ok().put("page", null);
}
/**
* 获取每个设备最新的参数值
* @return
......@@ -76,5 +34,4 @@ public class EquipmentController extends AbstractController {
List<Map<String,Object>> list = equipmentService.getList();
return R.ok().put("list", list);
}
}
package com.devplatform.admin.modules.eq.controller;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.devplatform.admin.common.utils.AbstractController;
import com.devplatform.admin.modules.liresource.bean.LiResource;
import com.devplatform.admin.modules.liresource.model.LiResourceModel;
import com.devplatform.admin.modules.liresource.service.LiResourceService;
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 org.springframework.beans.factory.annotation.Autowired;
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.RestController;
import java.util.List;
/**
* 看板
* @author dxw
......@@ -26,53 +13,5 @@ import java.util.List;
@RestController
@RequestMapping("/kanban")
public class KanBanController extends AbstractController {
@Autowired
private LiResourceService liResourceService;
/**
* 列表页面列表数据获取
* @param model 承接对象
* @return
*/
@ApiOperation(value="根据条件获取资源点表数据列表", notes="根据条件获取资源点表数据列表")
@ApiImplicitParam(name = "model", value = "参数", required = true, dataType = "LiRoomModel")
@PostMapping("/list")
public R list(@RequestBody LiResourceModel model) {
List<LiResource> list = liResourceService.list(new LambdaQueryWrapper<LiResource>());
return R.ok().put("list", list);
}
/**
* 列表页面列表数据获取
* @param model 承接对象
* @return
*/
@ApiOperation(value="根据条件获取资源点表分页数据列表", notes="根据条件获取资源点表分页数据列表")
@ApiImplicitParam(name = "model", value = "参数", required = true, dataType = "LiRoomModel")
@PostMapping("/pageList")
public R pageList(@RequestBody LiResourceModel model) {
//如果model参数中没有设置排序方式,则默认以创建时间倒序排列
if(StringUtil.isEmpty(model.getSort())){
model.setSort("create_time desc");
}
//按条件查询分页数据
// List<LiResource> list = liResourceService.queryPageList(model);
//将查询结果中数据和数量封装起来做为接口返回值
// return R.ok().put("page", getMyPage(list,model));
return R.ok().put("page", null);
}
//
// /**
// * 获取每个设备最新的参数值
// * @return
// */
// @ApiOperation(value="获取每个设备最新的参数值", notes="获取每个设备最新的参数值")
// @GetMapping("/getListParam")
// public R getListParam() {
// List<Map<String,Object>> list = equipmentService.getList();
// return R.ok().put("list", list);
// }
}
package com.devplatform.admin.modules.eq.dao;
import org.apache.ibatis.annotations.Mapper;
import com.devplatform.admin.modules.eq.model.SnqxzInfoDayModel;
import com.devplatform.admin.modules.eq.bean.SnqxzInfoDay;
import com.devplatform.common.dao.MyBaseMapper;
import java.util.List;
/**
* SnqxzInfoDay Mapper
* 用于室内气象站信息-天的数据库操作
* @author Administrator
*
*/
@Mapper
public interface SnqxzInfoDayDao extends MyBaseMapper<SnqxzInfoDay> {
/**
* 查询分页数量
* @param model
* @return
*/
Integer queryPageByCount(SnqxzInfoDayModel model);
/**
* 查询室内气象站信息-天分页数据
* @param model
* @return
*/
List<SnqxzInfoDay> queryPageList(SnqxzInfoDayModel model);
}
package com.devplatform.admin.modules.eq.dao;
import org.apache.ibatis.annotations.Mapper;
import com.devplatform.admin.modules.eq.model.SnqxzInfoHourModel;
import com.devplatform.admin.modules.eq.bean.SnqxzInfoHour;
import com.devplatform.common.dao.MyBaseMapper;
import java.util.List;
/**
* SnqxzInfoHour Mapper
* 用于室内气象站信息-时的数据库操作
* @author Administrator
*
*/
@Mapper
public interface SnqxzInfoHourDao extends MyBaseMapper<SnqxzInfoHour> {
/**
* 查询分页数量
* @param model
* @return
*/
Integer queryPageByCount(SnqxzInfoHourModel model);
/**
* 查询室内气象站信息-时分页数据
* @param model
* @return
*/
List<SnqxzInfoHour> queryPageList(SnqxzInfoHourModel model);
}
package com.devplatform.admin.modules.eq.dao;
import org.apache.ibatis.annotations.Mapper;
import com.devplatform.admin.modules.eq.model.SnqxzInfoMonthModel;
import com.devplatform.admin.modules.eq.bean.SnqxzInfoMonth;
import com.devplatform.common.dao.MyBaseMapper;
import java.util.List;
/**
* SnqxzInfoMonth Mapper
* 用于室内气象站信息-月的数据库操作
* @author Administrator
*
*/
@Mapper
public interface SnqxzInfoMonthDao extends MyBaseMapper<SnqxzInfoMonth> {
/**
* 查询分页数量
* @param model
* @return
*/
Integer queryPageByCount(SnqxzInfoMonthModel model);
/**
* 查询室内气象站信息-月分页数据
* @param model
* @return
*/
List<SnqxzInfoMonth> queryPageList(SnqxzInfoMonthModel model);
}
package com.devplatform.admin.modules.eq.dao;
import org.apache.ibatis.annotations.Mapper;
import com.devplatform.admin.modules.eq.model.SnqxzInfoYearModel;
import com.devplatform.admin.modules.eq.bean.SnqxzInfoYear;
import com.devplatform.common.dao.MyBaseMapper;
import java.util.List;
/**
* SnqxzInfoYear Mapper
* 用于室内气象站信息-年的数据库操作
* @author Administrator
*
*/
@Mapper
public interface SnqxzInfoYearDao extends MyBaseMapper<SnqxzInfoYear> {
/**
* 查询分页数量
* @param model
* @return
*/
Integer queryPageByCount(SnqxzInfoYearModel model);
/**
* 查询室内气象站信息-年分页数据
* @param model
* @return
*/
List<SnqxzInfoYear> queryPageList(SnqxzInfoYearModel model);
}
package com.devplatform.admin.modules.eq.model;
import com.devplatform.admin.common.model.BaseModel;
import lombok.Data;
/**
* 室内气象站信息-天的Model
* <br>
* @author 代码生成器产生
*/
@Data
public class SnqxzInfoDayModel extends BaseModel {
/** 主键id */
private java.lang.String id;
/** 资源点id */
private java.lang.String resourceId;
/** 温度 */
private java.lang.String temperature;
/** 湿度 */
private java.lang.String humidity;
/** CO2 */
private java.lang.String carbonDioxide;
/** 类型(1手动,2节能) */
private Integer type;
/** 站点表id */
private java.lang.String stationId;
/** 创建人 */
private java.lang.String createUserId;
/** 创建时间 */
private java.util.Date createTime;
}
package com.devplatform.admin.modules.eq.model;
import com.devplatform.admin.common.model.BaseModel;
import lombok.Data;
/**
* 室内气象站信息-时的Model
* <br>
* @author 代码生成器产生
*/
@Data
public class SnqxzInfoHourModel extends BaseModel {
/** 主键id */
private java.lang.String id;
/** 资源点id */
private java.lang.String resourceId;
/** 温度 */
private java.lang.String temperature;
/** 湿度 */
private java.lang.String humidity;
/** CO2 */
private java.lang.String carbonDioxide;
/** 类型(1手动,2节能) */
private Integer type;
/** 站点表id */
private java.lang.String stationId;
/** 创建人 */
private java.lang.String createUserId;
/** 创建时间 */
private java.util.Date createTime;
}
package com.devplatform.admin.modules.eq.model;
import com.devplatform.admin.common.model.BaseModel;
import lombok.Data;
/**
* 室内气象站信息-月的Model
* <br>
* @author 代码生成器产生
*/
@Data
public class SnqxzInfoMonthModel extends BaseModel {
/** 主键id */
private java.lang.String id;
/** 资源点id */
private java.lang.String resourceId;
/** 温度 */
private java.lang.String temperature;
/** 湿度 */
private java.lang.String humidity;
/** CO2 */
private java.lang.String carbonDioxide;
/** 类型(1手动,2节能) */
private Integer type;
/** 站点表id */
private java.lang.String stationId;
/** 创建人 */
private java.lang.String createUserId;
/** 创建时间 */
private java.util.Date createTime;
}
package com.devplatform.admin.modules.eq.model;
import com.devplatform.admin.common.model.BaseModel;
import lombok.Data;
/**
* 室内气象站信息-年的Model
* <br>
* @author 代码生成器产生
*/
@Data
public class SnqxzInfoYearModel extends BaseModel {
/** 主键id */
private java.lang.String id;
/** 资源点id */
private java.lang.String resourceId;
/** 温度 */
private java.lang.String temperature;
/** 湿度 */
private java.lang.String humidity;
/** CO2 */
private java.lang.String carbonDioxide;
/** 类型(1手动,2节能) */
private Integer type;
/** 站点表id */
private java.lang.String stationId;
/** 创建人 */
private java.lang.String createUserId;
/** 创建时间 */
private java.util.Date createTime;
}
......@@ -21,13 +21,4 @@ public interface FlrbInfoDayService extends MyBaseService<FlrbInfoDay> {
* @return
*/
List<FlrbInfoDay> queryPageList(FlrbInfoDayModel model);
/**
* 根据ID删除风冷热泵机组信息-天对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,4 @@ public interface FlrbInfoHourService extends MyBaseService<FlrbInfoHour> {
*/
List<FlrbInfoHour> queryPageList(FlrbInfoHourModel model);
/**
* 根据ID删除风冷热泵机组信息-时对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,4 @@ public interface FlrbInfoMonthService extends MyBaseService<FlrbInfoMonth> {
*/
List<FlrbInfoMonth> queryPageList(FlrbInfoMonthModel model);
/**
* 根据ID删除风冷热泵机组信息-月对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,4 @@ public interface FlrbInfoYearService extends MyBaseService<FlrbInfoYear> {
*/
List<FlrbInfoYear> queryPageList(FlrbInfoYearModel model);
/**
* 根据ID删除风冷热泵机组信息-年对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,5 @@ public interface JfktgInfoDayService extends MyBaseService<JfktgInfoDay> {
*/
List<JfktgInfoDay> queryPageList(JfktgInfoDayModel model);
/**
* 根据ID删除机房空调(380V)信息-天对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,4 @@ public interface JfktgInfoHourService extends MyBaseService<JfktgInfoHour> {
*/
List<JfktgInfoHour> queryPageList(JfktgInfoHourModel model);
/**
* 根据ID删除机房空调(380V)信息-时对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,4 @@ public interface JfktgInfoMonthService extends MyBaseService<JfktgInfoMonth> {
*/
List<JfktgInfoMonth> queryPageList(JfktgInfoMonthModel model);
/**
* 根据ID删除机房空调(380V)信息-月对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,5 @@ public interface JfktgInfoYearService extends MyBaseService<JfktgInfoYear> {
*/
List<JfktgInfoYear> queryPageList(JfktgInfoYearModel model);
/**
* 根据ID删除机房空调(380V)信息-年对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,4 @@ public interface JfktpInfoDayService extends MyBaseService<JfktpInfoDay> {
*/
List<JfktpInfoDay> queryPageList(JfktpInfoDayModel model);
/**
* 根据ID删除机房空调(220V)信息-天对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,5 @@ public interface JfktpInfoHourService extends MyBaseService<JfktpInfoHour> {
*/
List<JfktpInfoHour> queryPageList(JfktpInfoHourModel model);
/**
* 根据ID删除机房空调(220V)信息-时对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,5 @@ public interface JfktpInfoMonthService extends MyBaseService<JfktpInfoMonth> {
*/
List<JfktpInfoMonth> queryPageList(JfktpInfoMonthModel model);
/**
* 根据ID删除机房空调(220V)信息-月对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,4 @@ public interface JfktpInfoYearService extends MyBaseService<JfktpInfoYear> {
*/
List<JfktpInfoYear> queryPageList(JfktpInfoYearModel model);
/**
* 根据ID删除机房空调(220V)信息-年对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,4 @@ public interface PfjInfoDayService extends MyBaseService<PfjInfoDay> {
*/
List<PfjInfoDay> queryPageList(PfjInfoDayModel model);
/**
* 根据ID删除排风机信息-天对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,5 @@ public interface PfjInfoHourService extends MyBaseService<PfjInfoHour> {
*/
List<PfjInfoHour> queryPageList(PfjInfoHourModel model);
/**
* 根据ID删除排风机信息-时对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,4 @@ public interface PfjInfoMonthService extends MyBaseService<PfjInfoMonth> {
*/
List<PfjInfoMonth> queryPageList(PfjInfoMonthModel model);
/**
* 根据ID删除排风机信息-月对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,5 @@ public interface PfjInfoYearService extends MyBaseService<PfjInfoYear> {
*/
List<PfjInfoYear> queryPageList(PfjInfoYearModel model);
/**
* 根据ID删除排风机信息-年对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
package com.devplatform.admin.modules.eq.service;
import com.devplatform.common.service.MyBaseService;
import com.devplatform.admin.modules.eq.bean.SnqxzInfoDay;
import com.devplatform.admin.modules.eq.model.SnqxzInfoDayModel;
import java.util.List;
/**
* 室内气象站信息-天的service接口
* <br>
* <b>功能:</b>SnqxzInfoDayService<br>
* @author 代码生成器产生
*/
public interface SnqxzInfoDayService extends MyBaseService<SnqxzInfoDay> {
/**
* 查询室内气象站信息-天分页数据
* @param model
* @return
*/
List<SnqxzInfoDay> queryPageList(SnqxzInfoDayModel model);
}
package com.devplatform.admin.modules.eq.service;
import com.devplatform.common.service.MyBaseService;
import com.devplatform.admin.modules.eq.bean.SnqxzInfoHour;
import com.devplatform.admin.modules.eq.model.SnqxzInfoHourModel;
import java.util.List;
/**
* 室内气象站信息-时的service接口
* <br>
* <b>功能:</b>SnqxzInfoHourService<br>
* @author 代码生成器产生
*/
public interface SnqxzInfoHourService extends MyBaseService<SnqxzInfoHour> {
/**
* 查询室内气象站信息-时分页数据
* @param model
* @return
*/
List<SnqxzInfoHour> queryPageList(SnqxzInfoHourModel model);
}
package com.devplatform.admin.modules.eq.service;
import com.devplatform.common.service.MyBaseService;
import com.devplatform.admin.modules.eq.bean.SnqxzInfoMonth;
import com.devplatform.admin.modules.eq.model.SnqxzInfoMonthModel;
import java.util.List;
/**
* 室内气象站信息-月的service接口
* <br>
* <b>功能:</b>SnqxzInfoMonthService<br>
* @author 代码生成器产生
*/
public interface SnqxzInfoMonthService extends MyBaseService<SnqxzInfoMonth> {
/**
* 查询室内气象站信息-月分页数据
* @param model
* @return
*/
List<SnqxzInfoMonth> queryPageList(SnqxzInfoMonthModel model);
}
package com.devplatform.admin.modules.eq.service;
import com.devplatform.common.service.MyBaseService;
import com.devplatform.admin.modules.eq.bean.SnqxzInfoYear;
import com.devplatform.admin.modules.eq.model.SnqxzInfoYearModel;
import java.util.List;
/**
* 室内气象站信息-年的service接口
* <br>
* <b>功能:</b>SnqxzInfoYearService<br>
* @author 代码生成器产生
*/
public interface SnqxzInfoYearService extends MyBaseService<SnqxzInfoYear> {
/**
* 查询室内气象站信息-年分页数据
* @param model
* @return
*/
List<SnqxzInfoYear> queryPageList(SnqxzInfoYearModel model);
}
......@@ -22,12 +22,4 @@ public interface SwqxzInfoDayService extends MyBaseService<SwqxzInfoDay> {
*/
List<SwqxzInfoDay> queryPageList(SwqxzInfoDayModel model);
/**
* 根据ID删除室外气象站信息-天对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,5 @@ public interface SwqxzInfoHourService extends MyBaseService<SwqxzInfoHour> {
*/
List<SwqxzInfoHour> queryPageList(SwqxzInfoHourModel model);
/**
* 根据ID删除室外气象站信息-时对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,5 @@ public interface SwqxzInfoMonthService extends MyBaseService<SwqxzInfoMonth> {
*/
List<SwqxzInfoMonth> queryPageList(SwqxzInfoMonthModel model);
/**
* 根据ID删除室外气象站信息-月对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
......@@ -22,12 +22,5 @@ public interface SwqxzInfoYearService extends MyBaseService<SwqxzInfoYear> {
*/
List<SwqxzInfoYear> queryPageList(SwqxzInfoYearModel model);
/**
* 根据ID删除室外气象站信息-年对象
* @param ids
* @param userId
* @return void
*/
void deleteByFlagByIds(String[] ids, String userId);
}
package com.devplatform.admin.modules.eq.service.impl;
import org.springframework.stereotype.Service;
import com.devplatform.admin.modules.eq.model.FlrbInfoDayModel;
import com.devplatform.admin.modules.eq.bean.FlrbInfoDay;
import com.devplatform.admin.modules.eq.dao.FlrbInfoDayDao;
import com.devplatform.admin.modules.eq.model.FlrbInfoDayModel;
import com.devplatform.admin.modules.eq.service.FlrbInfoDayService;
import com.devplatform.common.service.impl.MyBaseServiceImpl;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
......@@ -27,23 +24,4 @@ public class FlrbInfoDayServiceImpl extends MyBaseServiceImpl<FlrbInfoDayDao, Fl
model.getPager().setRowCount(rowCount);
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<FlrbInfoDay> beans = new ArrayList<FlrbInfoDay>();
//遍历ids数组
for(String id: ids){
FlrbInfoDay temp = new FlrbInfoDay();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class FlrbInfoHourServiceImpl extends MyBaseServiceImpl<FlrbInfoHourDao,
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<FlrbInfoHour> beans = new ArrayList<FlrbInfoHour>();
//遍历ids数组
for(String id: ids){
FlrbInfoHour temp = new FlrbInfoHour();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -27,23 +27,4 @@ public class FlrbInfoMonthServiceImpl extends MyBaseServiceImpl<FlrbInfoMonthDao
model.getPager().setRowCount(rowCount);
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<FlrbInfoMonth> beans = new ArrayList<FlrbInfoMonth>();
//遍历ids数组
for(String id: ids){
FlrbInfoMonth temp = new FlrbInfoMonth();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class FlrbInfoYearServiceImpl extends MyBaseServiceImpl<FlrbInfoYearDao,
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<FlrbInfoYear> beans = new ArrayList<FlrbInfoYear>();
//遍历ids数组
for(String id: ids){
FlrbInfoYear temp = new FlrbInfoYear();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class JfktgInfoDayServiceImpl extends MyBaseServiceImpl<JfktgInfoDayDao,
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<JfktgInfoDay> beans = new ArrayList<JfktgInfoDay>();
//遍历ids数组
for(String id: ids){
JfktgInfoDay temp = new JfktgInfoDay();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class JfktgInfoHourServiceImpl extends MyBaseServiceImpl<JfktgInfoHourDao
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<JfktgInfoHour> beans = new ArrayList<JfktgInfoHour>();
//遍历ids数组
for(String id: ids){
JfktgInfoHour temp = new JfktgInfoHour();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class JfktgInfoMonthServiceImpl extends MyBaseServiceImpl<JfktgInfoMonthD
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<JfktgInfoMonth> beans = new ArrayList<JfktgInfoMonth>();
//遍历ids数组
for(String id: ids){
JfktgInfoMonth temp = new JfktgInfoMonth();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class JfktgInfoYearServiceImpl extends MyBaseServiceImpl<JfktgInfoYearDao
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<JfktgInfoYear> beans = new ArrayList<JfktgInfoYear>();
//遍历ids数组
for(String id: ids){
JfktgInfoYear temp = new JfktgInfoYear();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class JfktpInfoDayServiceImpl extends MyBaseServiceImpl<JfktpInfoDayDao,
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<JfktpInfoDay> beans = new ArrayList<JfktpInfoDay>();
//遍历ids数组
for(String id: ids){
JfktpInfoDay temp = new JfktpInfoDay();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class JfktpInfoHourServiceImpl extends MyBaseServiceImpl<JfktpInfoHourDao
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<JfktpInfoHour> beans = new ArrayList<JfktpInfoHour>();
//遍历ids数组
for(String id: ids){
JfktpInfoHour temp = new JfktpInfoHour();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class JfktpInfoMonthServiceImpl extends MyBaseServiceImpl<JfktpInfoMonthD
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<JfktpInfoMonth> beans = new ArrayList<JfktpInfoMonth>();
//遍历ids数组
for(String id: ids){
JfktpInfoMonth temp = new JfktpInfoMonth();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class JfktpInfoYearServiceImpl extends MyBaseServiceImpl<JfktpInfoYearDao
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<JfktpInfoYear> beans = new ArrayList<JfktpInfoYear>();
//遍历ids数组
for(String id: ids){
JfktpInfoYear temp = new JfktpInfoYear();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class PfjInfoDayServiceImpl extends MyBaseServiceImpl<PfjInfoDayDao, PfjI
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<PfjInfoDay> beans = new ArrayList<PfjInfoDay>();
//遍历ids数组
for(String id: ids){
PfjInfoDay temp = new PfjInfoDay();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class PfjInfoHourServiceImpl extends MyBaseServiceImpl<PfjInfoHourDao, Pf
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<PfjInfoHour> beans = new ArrayList<PfjInfoHour>();
//遍历ids数组
for(String id: ids){
PfjInfoHour temp = new PfjInfoHour();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class PfjInfoMonthServiceImpl extends MyBaseServiceImpl<PfjInfoMonthDao,
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<PfjInfoMonth> beans = new ArrayList<PfjInfoMonth>();
//遍历ids数组
for(String id: ids){
PfjInfoMonth temp = new PfjInfoMonth();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class PfjInfoYearServiceImpl extends MyBaseServiceImpl<PfjInfoYearDao, Pf
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<PfjInfoYear> beans = new ArrayList<PfjInfoYear>();
//遍历ids数组
for(String id: ids){
PfjInfoYear temp = new PfjInfoYear();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
package com.devplatform.admin.modules.eq.service.impl;
import com.devplatform.admin.modules.eq.bean.SnqxzInfoDay;
import com.devplatform.admin.modules.eq.dao.SnqxzInfoDayDao;
import com.devplatform.admin.modules.eq.model.SnqxzInfoDayModel;
import com.devplatform.admin.modules.eq.service.SnqxzInfoDayService;
import com.devplatform.common.service.impl.MyBaseServiceImpl;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 室内气象站信息-天的service接口实现类
* <br>
* <b>功能:</b>SnqxzInfoDayServiceImpl<br>
* @author 代码生成器产生
*/
@Service("snqxzInfoDayService")
public class SnqxzInfoDayServiceImpl extends MyBaseServiceImpl<SnqxzInfoDayDao, SnqxzInfoDay> implements SnqxzInfoDayService {
@Override
public List<SnqxzInfoDay> queryPageList(SnqxzInfoDayModel model) {
Integer rowCount = baseMapper.queryPageByCount(model);
model.getPager().setRowCount(rowCount);
return baseMapper.queryPageList(model);
}
}
package com.devplatform.admin.modules.eq.service.impl;
import com.devplatform.admin.modules.eq.bean.SnqxzInfoHour;
import com.devplatform.admin.modules.eq.dao.SnqxzInfoHourDao;
import com.devplatform.admin.modules.eq.model.SnqxzInfoHourModel;
import com.devplatform.admin.modules.eq.service.SnqxzInfoHourService;
import com.devplatform.common.service.impl.MyBaseServiceImpl;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 室内气象站信息-时的service接口实现类
* <br>
* <b>功能:</b>SnqxzInfoHourServiceImpl<br>
* @author 代码生成器产生
*/
@Service("snqxzInfoHourService")
public class SnqxzInfoHourServiceImpl extends MyBaseServiceImpl<SnqxzInfoHourDao, SnqxzInfoHour> implements SnqxzInfoHourService {
@Override
public List<SnqxzInfoHour> queryPageList(SnqxzInfoHourModel model) {
Integer rowCount = baseMapper.queryPageByCount(model);
model.getPager().setRowCount(rowCount);
return baseMapper.queryPageList(model);
}
}
package com.devplatform.admin.modules.eq.service.impl;
import com.devplatform.admin.modules.eq.bean.SnqxzInfoMonth;
import com.devplatform.admin.modules.eq.dao.SnqxzInfoMonthDao;
import com.devplatform.admin.modules.eq.model.SnqxzInfoMonthModel;
import com.devplatform.admin.modules.eq.service.SnqxzInfoMonthService;
import com.devplatform.common.service.impl.MyBaseServiceImpl;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 室内气象站信息-月的service接口实现类
* <br>
* <b>功能:</b>SnqxzInfoMonthServiceImpl<br>
* @author 代码生成器产生
*/
@Service("snqxzInfoMonthService")
public class SnqxzInfoMonthServiceImpl extends MyBaseServiceImpl<SnqxzInfoMonthDao, SnqxzInfoMonth> implements SnqxzInfoMonthService {
@Override
public List<SnqxzInfoMonth> queryPageList(SnqxzInfoMonthModel model) {
Integer rowCount = baseMapper.queryPageByCount(model);
model.getPager().setRowCount(rowCount);
return baseMapper.queryPageList(model);
}
}
package com.devplatform.admin.modules.eq.service.impl;
import com.devplatform.admin.modules.eq.bean.SnqxzInfoYear;
import com.devplatform.admin.modules.eq.dao.SnqxzInfoYearDao;
import com.devplatform.admin.modules.eq.model.SnqxzInfoYearModel;
import com.devplatform.admin.modules.eq.service.SnqxzInfoYearService;
import com.devplatform.common.service.impl.MyBaseServiceImpl;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 室内气象站信息-年的service接口实现类
* <br>
* <b>功能:</b>SnqxzInfoYearServiceImpl<br>
* @author 代码生成器产生
*/
@Service("snqxzInfoYearService")
public class SnqxzInfoYearServiceImpl extends MyBaseServiceImpl<SnqxzInfoYearDao, SnqxzInfoYear> implements SnqxzInfoYearService {
@Override
public List<SnqxzInfoYear> queryPageList(SnqxzInfoYearModel model) {
Integer rowCount = baseMapper.queryPageByCount(model);
model.getPager().setRowCount(rowCount);
return baseMapper.queryPageList(model);
}
}
......@@ -28,22 +28,4 @@ public class SwqxzInfoDayServiceImpl extends MyBaseServiceImpl<SwqxzInfoDayDao,
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<SwqxzInfoDay> beans = new ArrayList<SwqxzInfoDay>();
//遍历ids数组
for(String id: ids){
SwqxzInfoDay temp = new SwqxzInfoDay();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class SwqxzInfoHourServiceImpl extends MyBaseServiceImpl<SwqxzInfoHourDao
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<SwqxzInfoHour> beans = new ArrayList<SwqxzInfoHour>();
//遍历ids数组
for(String id: ids){
SwqxzInfoHour temp = new SwqxzInfoHour();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class SwqxzInfoMonthServiceImpl extends MyBaseServiceImpl<SwqxzInfoMonthD
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<SwqxzInfoMonth> beans = new ArrayList<SwqxzInfoMonth>();
//遍历ids数组
for(String id: ids){
SwqxzInfoMonth temp = new SwqxzInfoMonth();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
......@@ -28,22 +28,4 @@ public class SwqxzInfoYearServiceImpl extends MyBaseServiceImpl<SwqxzInfoYearDao
return baseMapper.queryPageList(model);
}
@Override
public void deleteByFlagByIds(String[] ids, String userId){
//用来暂存所有要删除的对象
List<SwqxzInfoYear> beans = new ArrayList<SwqxzInfoYear>();
//遍历ids数组
for(String id: ids){
SwqxzInfoYear temp = new SwqxzInfoYear();
temp.setId(id);
//将数据标记为删除
temp.setDeleted(1);
temp.setUpdateUserId(userId);
temp.setUpdateTime(new Date());
//将要删除的对象存放在list中
beans.add(temp);
}
//调用批量更新操作
updateBatchById(beans);
}
}
package com.devplatform.admin.modules.sys.bean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@ApiModel(value="设备运行时间表对象",description="设备运行时间表对象")
@TableName("sys_resource_running_time")
public class SysResourceRunningTime implements Serializable {
private static final long serialVersionUID = 1L;
/** 主键id */
@ApiModelProperty(value="主键ID",name="id")
@TableId
private java.lang.String id;
/** 资源点id */
@ApiModelProperty(value="资源点id",name="resourceId")
private java.lang.String resourceId;
/** 类型(1手动,2节能) */
@ApiModelProperty(value="类型(1手动,2节能)",name="type")
private Integer type;
/** 开始时间 */
@ApiModelProperty(value="开始时间",name="startTime")
private java.util.Date startTime;
/** 结束时间 */
@ApiModelProperty(value="结束时间",name="endTime")
private java.util.Date endTime;
/** 修改人 */
@ApiModelProperty(value="修改人",name="updateUserId")
private java.lang.String updateUserId;
/** 修改时间 */
@ApiModelProperty(value="修改时间",name="updateTime")
private java.util.Date updateTime;
/** 站点ID */
@ApiModelProperty(value="站点ID",name="stationId")
private java.lang.String stationId;
}
package com.devplatform.admin.modules.sys.bean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@ApiModel(value="设备运行时间统计表对象",description="设备运行时间统计表对象")
@TableName("sys_resource_running_time_tj")
public class SysResourceRunningTimeTj implements Serializable {
private static final long serialVersionUID = 1L;
/** 主键id */
@ApiModelProperty(value="主键ID",name="id")
@TableId
private java.lang.String id;
/** 资源点id */
@ApiModelProperty(value="资源点id",name="resourceId")
private java.lang.String resourceId;
/** 设备运行时间 */
@ApiModelProperty(value="设备运行时间",name="runningTimeTotal")
private java.lang.String runningTimeTotal;
/** 设备手动运行时间 */
@ApiModelProperty(value="设备手动运行时间",name="runningTimeSd")
private java.lang.String runningTimeSd;
/** 设备节能运行时间 */
@ApiModelProperty(value="设备节能运行时间",name="runningTimeJn")
private java.lang.String runningTimeJn;
/** 修改人 */
@ApiModelProperty(value="修改人",name="updateUserId")
private java.lang.String updateUserId;
/** 修改时间 */
@ApiModelProperty(value="修改时间",name="updateTime")
private java.util.Date updateTime;
/** 站点ID */
@ApiModelProperty(value="站点ID",name="stationId")
private java.lang.String stationId;
}
package com.devplatform.admin.modules.sys.bean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@ApiModel(value="系统全局参数表对象",description="系统全局参数表对象")
@TableName("sys_system_params")
public class SysSystemParams implements Serializable {
private static final long serialVersionUID = 1L;
/** 主键id */
@ApiModelProperty(value="主键ID",name="id")
@TableId
private java.lang.String id;
/** 类型(1手动,2节能) */
@ApiModelProperty(value="类型(1手动,2节能)",name="type")
private Integer type;
/** 系统运行时间 */
@ApiModelProperty(value="系统运行时间",name="systemRunningTime")
private java.lang.String systemRunningTime;
/** 手动运行时间 */
@ApiModelProperty(value="手动运行时间",name="sdSystemRunningTime")
private java.lang.String sdSystemRunningTime;
/** 节能运行时间 */
@ApiModelProperty(value="节能运行时间",name="jnSystemRunningTime")
private java.lang.String jnSystemRunningTime;
/** 手动运行时间-天 */
@ApiModelProperty(value="手动运行时间-天",name="sdSystemRunningTimeDay")
private java.lang.String sdSystemRunningTimeDay;
/** 节能运行时间-天 */
@ApiModelProperty(value="节能运行时间-天",name="jnSystemRunningTimeDay")
private java.lang.String jnSystemRunningTimeDay;
/** 手动运行时间-月 */
@ApiModelProperty(value="手动运行时间-月",name="sdSystemRunningTimeMonth")
private java.lang.String sdSystemRunningTimeMonth;
/** 节能运行时间-月 */
@ApiModelProperty(value="节能运行时间-月",name="jnSystemRunningTimeMonth")
private java.lang.String jnSystemRunningTimeMonth;
/** 修改人 */
@ApiModelProperty(value="修改人",name="updateUserId")
private java.lang.String updateUserId;
/** 修改时间 */
@ApiModelProperty(value="修改时间",name="updateTime")
private java.util.Date updateTime;
/** 站点ID */
@ApiModelProperty(value="站点ID",name="stationId")
private java.lang.String stationId;
}
package com.devplatform.admin.modules.sys.bean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@ApiModel(value="系统全局参数表对象",description="系统全局参数表对象")
@TableName("sys_system_running_time")
public class SysSystemRunningTime implements Serializable {
private static final long serialVersionUID = 1L;
/** 主键id */
@ApiModelProperty(value="主键ID",name="id")
@TableId
private java.lang.String id;
/** 类型(1手动,2节能) */
@ApiModelProperty(value="类型(1手动,2节能)",name="type")
private Integer type;
/** 运行开始时间 */
@ApiModelProperty(value="运行开始时间",name="startTime")
private java.util.Date startTime;
/** 运行结束时间 */
@ApiModelProperty(value="运行结束时间",name="endTime")
private java.util.Date endTime;
/** 修改人 */
@ApiModelProperty(value="修改人",name="updateUserId")
private java.lang.String updateUserId;
/** 修改时间 */
@ApiModelProperty(value="修改时间",name="updateTime")
private java.util.Date updateTime;
/** 站点ID */
@ApiModelProperty(value="站点ID",name="stationId")
private java.lang.String stationId;
}
package com.devplatform.admin.modules.sys.dao;
import org.apache.ibatis.annotations.Mapper;
import com.devplatform.admin.modules.sys.model.SysResourceRunningTimeModel;
import com.devplatform.admin.modules.sys.bean.SysResourceRunningTime;
import com.devplatform.common.dao.MyBaseMapper;
import java.util.List;
/**
* SysResourceRunningTime Mapper
* 用于设备运行时间表的数据库操作
* @author Administrator
*
*/
@Mapper
public interface SysResourceRunningTimeDao extends MyBaseMapper<SysResourceRunningTime> {
/**
* 查询分页数量
* @param model
* @return
*/
Integer queryPageByCount(SysResourceRunningTimeModel model);
/**
* 查询设备运行时间表分页数据
* @param model
* @return
*/
List<SysResourceRunningTime> queryPageList(SysResourceRunningTimeModel model);
}
package com.devplatform.admin.modules.sys.dao;
import org.apache.ibatis.annotations.Mapper;
import com.devplatform.admin.modules.sys.model.SysResourceRunningTimeTjModel;
import com.devplatform.admin.modules.sys.bean.SysResourceRunningTimeTj;
import com.devplatform.common.dao.MyBaseMapper;
import java.util.List;
/**
* SysResourceRunningTimeTj Mapper
* 用于设备运行时间统计表的数据库操作
* @author Administrator
*
*/
@Mapper
public interface SysResourceRunningTimeTjDao extends MyBaseMapper<SysResourceRunningTimeTj> {
/**
* 查询分页数量
* @param model
* @return
*/
Integer queryPageByCount(SysResourceRunningTimeTjModel model);
/**
* 查询设备运行时间统计表分页数据
* @param model
* @return
*/
List<SysResourceRunningTimeTj> queryPageList(SysResourceRunningTimeTjModel model);
}
package com.devplatform.admin.modules.sys.dao;
import org.apache.ibatis.annotations.Mapper;
import com.devplatform.admin.modules.sys.model.SysSystemParamsModel;
import com.devplatform.admin.modules.sys.bean.SysSystemParams;
import com.devplatform.common.dao.MyBaseMapper;
import java.util.List;
/**
* SysSystemParams Mapper
* 用于系统全局参数表的数据库操作
* @author Administrator
*
*/
@Mapper
public interface SysSystemParamsDao extends MyBaseMapper<SysSystemParams> {
/**
* 查询分页数量
* @param model
* @return
*/
Integer queryPageByCount(SysSystemParamsModel model);
/**
* 查询系统全局参数表分页数据
* @param model
* @return
*/
List<SysSystemParams> queryPageList(SysSystemParamsModel model);
}
package com.devplatform.admin.modules.sys.dao;
import org.apache.ibatis.annotations.Mapper;
import com.devplatform.admin.modules.sys.model.SysSystemRunningTimeModel;
import com.devplatform.admin.modules.sys.bean.SysSystemRunningTime;
import com.devplatform.common.dao.MyBaseMapper;
import java.util.List;
/**
* SysSystemRunningTime Mapper
* 用于系统全局参数表的数据库操作
* @author Administrator
*
*/
@Mapper
public interface SysSystemRunningTimeDao extends MyBaseMapper<SysSystemRunningTime> {
/**
* 查询分页数量
* @param model
* @return
*/
Integer queryPageByCount(SysSystemRunningTimeModel model);
/**
* 查询系统全局参数表分页数据
* @param model
* @return
*/
List<SysSystemRunningTime> queryPageList(SysSystemRunningTimeModel model);
}
package com.devplatform.admin.modules.sys.model;
import com.devplatform.admin.common.model.BaseModel;
import lombok.Data;
/**
* 设备运行时间表的Model
* <br>
* @author 代码生成器产生
*/
@Data
public class SysResourceRunningTimeModel extends BaseModel {
/** 主键id */
private java.lang.String id;
/** 资源点id */
private java.lang.String resourceId;
/** 类型(1手动,2节能) */
private Integer type;
/** 开始时间 */
private java.util.Date startTime;
/** 结束时间 */
private java.util.Date endTime;
/** 修改人 */
private java.lang.String updateUserId;
/** 修改时间 */
private java.util.Date updateTime;
/** 站点ID */
private java.lang.String stationId;
}
package com.devplatform.admin.modules.sys.model;
import com.devplatform.admin.common.model.BaseModel;
import lombok.Data;
/**
* 设备运行时间统计表的Model
* <br>
* @author 代码生成器产生
*/
@Data
public class SysResourceRunningTimeTjModel extends BaseModel {
/** 主键id */
private java.lang.String id;
/** 资源点id */
private java.lang.String resourceId;
/** 设备运行时间 */
private java.lang.String runningTimeTotal;
/** 设备手动运行时间 */
private java.lang.String runningTimeSd;
/** 设备节能运行时间 */
private java.lang.String runningTimeJn;
/** 修改人 */
private java.lang.String updateUserId;
/** 修改时间 */
private java.util.Date updateTime;
/** 站点ID */
private java.lang.String stationId;
}
package com.devplatform.admin.modules.sys.model;
import com.devplatform.admin.common.model.BaseModel;
import lombok.Data;
/**
* 系统全局参数表的Model
* <br>
* @author 代码生成器产生
*/
@Data
public class SysSystemParamsModel extends BaseModel {
/** 主键id */
private java.lang.String id;
/** 类型(1手动,2节能) */
private Integer type;
/** 系统运行时间 */
private java.lang.String systemRunningTime;
/** 手动运行时间 */
private java.lang.String sdSystemRunningTime;
/** 节能运行时间 */
private java.lang.String jnSystemRunningTime;
/** 手动运行时间-天 */
private java.lang.String sdSystemRunningTimeDay;
/** 节能运行时间-天 */
private java.lang.String jnSystemRunningTimeDay;
/** 手动运行时间-月 */
private java.lang.String sdSystemRunningTimeMonth;
/** 节能运行时间-月 */
private java.lang.String jnSystemRunningTimeMonth;
/** 修改人 */
private java.lang.String updateUserId;
/** 修改时间 */
private java.util.Date updateTime;
/** 站点ID */
private java.lang.String stationId;
}
package com.devplatform.admin.modules.sys.model;
import com.devplatform.admin.common.model.BaseModel;
import lombok.Data;
/**
* 系统全局参数表的Model
* <br>
* @author 代码生成器产生
*/
@Data
public class SysSystemRunningTimeModel extends BaseModel {
/** 主键id */
private java.lang.String id;
/** 类型(1手动,2节能) */
private Integer type;
/** 运行开始时间 */
private java.util.Date startTime;
/** 运行结束时间 */
private java.util.Date endTime;
/** 修改人 */
private java.lang.String updateUserId;
/** 修改时间 */
private java.util.Date updateTime;
/** 站点ID */
private java.lang.String stationId;
}
package com.devplatform.admin.modules.sys.service;
import com.devplatform.common.service.MyBaseService;
import com.devplatform.admin.modules.sys.bean.SysResourceRunningTime;
import com.devplatform.admin.modules.sys.model.SysResourceRunningTimeModel;
import java.util.List;
/**
* 设备运行时间表的service接口
* <br>
* <b>功能:</b>SysResourceRunningTimeService<br>
* @author 代码生成器产生
*/
public interface SysResourceRunningTimeService extends MyBaseService<SysResourceRunningTime> {
/**
* 查询设备运行时间表分页数据
* @param model
* @return
*/
List<SysResourceRunningTime> queryPageList(SysResourceRunningTimeModel model);
}
package com.devplatform.admin.modules.sys.service;
import com.devplatform.common.service.MyBaseService;
import com.devplatform.admin.modules.sys.bean.SysResourceRunningTimeTj;
import com.devplatform.admin.modules.sys.model.SysResourceRunningTimeTjModel;
import java.util.List;
/**
* 设备运行时间统计表的service接口
* <br>
* <b>功能:</b>SysResourceRunningTimeTjService<br>
* @author 代码生成器产生
*/
public interface SysResourceRunningTimeTjService extends MyBaseService<SysResourceRunningTimeTj> {
/**
* 查询设备运行时间统计表分页数据
* @param model
* @return
*/
List<SysResourceRunningTimeTj> queryPageList(SysResourceRunningTimeTjModel model);
}
package com.devplatform.admin.modules.sys.service;
import com.devplatform.common.service.MyBaseService;
import com.devplatform.admin.modules.sys.bean.SysSystemParams;
import com.devplatform.admin.modules.sys.model.SysSystemParamsModel;
import java.util.List;
/**
* 系统全局参数表的service接口
* <br>
* <b>功能:</b>SysSystemParamsService<br>
* @author 代码生成器产生
*/
public interface SysSystemParamsService extends MyBaseService<SysSystemParams> {
/**
* 查询系统全局参数表分页数据
* @param model
* @return
*/
List<SysSystemParams> queryPageList(SysSystemParamsModel model);
}
package com.devplatform.admin.modules.sys.service;
import com.devplatform.common.service.MyBaseService;
import com.devplatform.admin.modules.sys.bean.SysSystemRunningTime;
import com.devplatform.admin.modules.sys.model.SysSystemRunningTimeModel;
import java.util.List;
/**
* 系统全局参数表的service接口
* <br>
* <b>功能:</b>SysSystemRunningTimeService<br>
* @author 代码生成器产生
*/
public interface SysSystemRunningTimeService extends MyBaseService<SysSystemRunningTime> {
/**
* 查询系统全局参数表分页数据
* @param model
* @return
*/
List<SysSystemRunningTime> queryPageList(SysSystemRunningTimeModel model);
}
package com.devplatform.admin.modules.sys.service.impl;
import com.devplatform.admin.modules.sys.bean.SysResourceRunningTime;
import com.devplatform.admin.modules.sys.dao.SysResourceRunningTimeDao;
import com.devplatform.admin.modules.sys.model.SysResourceRunningTimeModel;
import com.devplatform.admin.modules.sys.service.SysResourceRunningTimeService;
import com.devplatform.common.service.impl.MyBaseServiceImpl;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 设备运行时间表的service接口实现类
* <br>
* <b>功能:</b>SysResourceRunningTimeServiceImpl<br>
* @author 代码生成器产生
*/
@Service("sysResourceRunningTimeService")
public class SysResourceRunningTimeServiceImpl extends MyBaseServiceImpl<SysResourceRunningTimeDao, SysResourceRunningTime> implements SysResourceRunningTimeService {
@Override
public List<SysResourceRunningTime> queryPageList(SysResourceRunningTimeModel model) {
Integer rowCount = baseMapper.queryPageByCount(model);
model.getPager().setRowCount(rowCount);
return baseMapper.queryPageList(model);
}
}
package com.devplatform.admin.modules.sys.service.impl;
import com.devplatform.admin.modules.sys.bean.SysResourceRunningTimeTj;
import com.devplatform.admin.modules.sys.dao.SysResourceRunningTimeTjDao;
import com.devplatform.admin.modules.sys.model.SysResourceRunningTimeTjModel;
import com.devplatform.admin.modules.sys.service.SysResourceRunningTimeTjService;
import com.devplatform.common.service.impl.MyBaseServiceImpl;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 设备运行时间统计表的service接口实现类
* <br>
* <b>功能:</b>SysResourceRunningTimeTjServiceImpl<br>
* @author 代码生成器产生
*/
@Service("sysResourceRunningTimeTjService")
public class SysResourceRunningTimeTjServiceImpl extends MyBaseServiceImpl<SysResourceRunningTimeTjDao, SysResourceRunningTimeTj> implements SysResourceRunningTimeTjService {
@Override
public List<SysResourceRunningTimeTj> queryPageList(SysResourceRunningTimeTjModel model) {
Integer rowCount = baseMapper.queryPageByCount(model);
model.getPager().setRowCount(rowCount);
return baseMapper.queryPageList(model);
}
}
package com.devplatform.admin.modules.sys.service.impl;
import com.devplatform.admin.modules.sys.bean.SysSystemParams;
import com.devplatform.admin.modules.sys.dao.SysSystemParamsDao;
import com.devplatform.admin.modules.sys.model.SysSystemParamsModel;
import com.devplatform.admin.modules.sys.service.SysSystemParamsService;
import com.devplatform.common.service.impl.MyBaseServiceImpl;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 系统全局参数表的service接口实现类
* <br>
* <b>功能:</b>SysSystemParamsServiceImpl<br>
* @author 代码生成器产生
*/
@Service("sysSystemParamsService")
public class SysSystemParamsServiceImpl extends MyBaseServiceImpl<SysSystemParamsDao, SysSystemParams> implements SysSystemParamsService {
@Override
public List<SysSystemParams> queryPageList(SysSystemParamsModel model) {
Integer rowCount = baseMapper.queryPageByCount(model);
model.getPager().setRowCount(rowCount);
return baseMapper.queryPageList(model);
}
}
package com.devplatform.admin.modules.sys.service.impl;
import com.devplatform.admin.modules.sys.bean.SysSystemRunningTime;
import com.devplatform.admin.modules.sys.dao.SysSystemRunningTimeDao;
import com.devplatform.admin.modules.sys.model.SysSystemRunningTimeModel;
import com.devplatform.admin.modules.sys.service.SysSystemRunningTimeService;
import com.devplatform.common.service.impl.MyBaseServiceImpl;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 系统全局参数表的service接口实现类
* <br>
* <b>功能:</b>SysSystemRunningTimeServiceImpl<br>
* @author 代码生成器产生
*/
@Service("sysSystemRunningTimeService")
public class SysSystemRunningTimeServiceImpl extends MyBaseServiceImpl<SysSystemRunningTimeDao, SysSystemRunningTime> implements SysSystemRunningTimeService {
@Override
public List<SysSystemRunningTime> queryPageList(SysSystemRunningTimeModel model) {
Integer rowCount = baseMapper.queryPageByCount(model);
model.getPager().setRowCount(rowCount);
return baseMapper.queryPageList(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.eq.dao.SnqxzInfoDayDao">
<!-- Result Map -->
<resultMap id="BaseResultMap" type="com.devplatform.admin.modules.eq.bean.SnqxzInfoDay">
<result column="id" property="id"/>
<result column="resource_id" property="resourceId"/>
<result column="temperature" property="temperature"/>
<result column="humidity" property="humidity"/>
<result column="carbon_dioxide" property="carbonDioxide"/>
<result column="type" property="type"/>
<result column="station_id" property="stationId"/>
<result column="create_user_id" property="createUserId"/>
<result column="create_time" property="createTime"/>
</resultMap>
<!-- snqxz_info_day table all fields -->
<sql id="Base_Column_List">
id,resource_id,temperature,humidity,carbon_dioxide,type,station_id,create_user_id,create_time
</sql>
<!-- 公共查询条件 -->
<sql id="Example_Where_Clause">
where t.deleted=0
<if test="id!=null and id!=''">and t.id = #{id}</if>
<if test="resourceId!=null and resourceId!=''">and t.resource_id = #{resourceId}</if>
<if test="temperature!=null and temperature!=''">and t.temperature = #{temperature}</if>
<if test="humidity!=null and humidity!=''">and t.humidity = #{humidity}</if>
<if test="carbonDioxide!=null and carbonDioxide!=''">and t.carbon_dioxide = #{carbonDioxide}</if>
<if test="type!=null ">and t.type = #{type}</if>
<if test="stationId!=null and stationId!=''">and t.station_id = #{stationId}</if>
<if test="createUserId!=null and createUserId!=''">and t.create_user_id = #{createUserId}</if>
<if test="createTime!=null ">and t.create_time = #{createTime}</if>
</sql>
<select id="queryPageByCount" parameterType="Object" resultType="java.lang.Integer">
select count(1) from snqxz_info_day t
<include refid="Example_Where_Clause"/>
</select>
<select id="queryPageList" parameterType="Object" resultMap="BaseResultMap">
select t.* from snqxz_info_day t
<include refid="Example_Where_Clause"/>
<if test="pager.orderCondition != null and pager.orderCondition != ''">
${pager.orderCondition}
</if>
<if test="pager.mysqlQueryCondition != null and pager.mysqlQueryCondition != ''">
${pager.mysqlQueryCondition}
</if>
</select>
</mapper>
<?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.eq.dao.SnqxzInfoHourDao">
<!-- Result Map -->
<resultMap id="BaseResultMap" type="com.devplatform.admin.modules.eq.bean.SnqxzInfoHour">
<result column="id" property="id"/>
<result column="resource_id" property="resourceId"/>
<result column="temperature" property="temperature"/>
<result column="humidity" property="humidity"/>
<result column="carbon_dioxide" property="carbonDioxide"/>
<result column="type" property="type"/>
<result column="station_id" property="stationId"/>
<result column="create_user_id" property="createUserId"/>
<result column="create_time" property="createTime"/>
</resultMap>
<!-- snqxz_info_hour table all fields -->
<sql id="Base_Column_List">
id,resource_id,temperature,humidity,carbon_dioxide,type,station_id,create_user_id,create_time
</sql>
<!-- 公共查询条件 -->
<sql id="Example_Where_Clause">
where t.deleted=0
<if test="id!=null and id!=''">and t.id = #{id}</if>
<if test="resourceId!=null and resourceId!=''">and t.resource_id = #{resourceId}</if>
<if test="temperature!=null and temperature!=''">and t.temperature = #{temperature}</if>
<if test="humidity!=null and humidity!=''">and t.humidity = #{humidity}</if>
<if test="carbonDioxide!=null and carbonDioxide!=''">and t.carbon_dioxide = #{carbonDioxide}</if>
<if test="type!=null ">and t.type = #{type}</if>
<if test="stationId!=null and stationId!=''">and t.station_id = #{stationId}</if>
<if test="createUserId!=null and createUserId!=''">and t.create_user_id = #{createUserId}</if>
<if test="createTime!=null ">and t.create_time = #{createTime}</if>
</sql>
<select id="queryPageByCount" parameterType="Object" resultType="java.lang.Integer">
select count(1) from snqxz_info_hour t
<include refid="Example_Where_Clause"/>
</select>
<select id="queryPageList" parameterType="Object" resultMap="BaseResultMap">
select t.* from snqxz_info_hour t
<include refid="Example_Where_Clause"/>
<if test="pager.orderCondition != null and pager.orderCondition != ''">
${pager.orderCondition}
</if>
<if test="pager.mysqlQueryCondition != null and pager.mysqlQueryCondition != ''">
${pager.mysqlQueryCondition}
</if>
</select>
</mapper>
<?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.eq.dao.SnqxzInfoMonthDao">
<!-- Result Map -->
<resultMap id="BaseResultMap" type="com.devplatform.admin.modules.eq.bean.SnqxzInfoMonth">
<result column="id" property="id"/>
<result column="resource_id" property="resourceId"/>
<result column="temperature" property="temperature"/>
<result column="humidity" property="humidity"/>
<result column="carbon_dioxide" property="carbonDioxide"/>
<result column="type" property="type"/>
<result column="station_id" property="stationId"/>
<result column="create_user_id" property="createUserId"/>
<result column="create_time" property="createTime"/>
</resultMap>
<!-- snqxz_info_month table all fields -->
<sql id="Base_Column_List">
id,resource_id,temperature,humidity,carbon_dioxide,type,station_id,create_user_id,create_time
</sql>
<!-- 公共查询条件 -->
<sql id="Example_Where_Clause">
where t.deleted=0
<if test="id!=null and id!=''">and t.id = #{id}</if>
<if test="resourceId!=null and resourceId!=''">and t.resource_id = #{resourceId}</if>
<if test="temperature!=null and temperature!=''">and t.temperature = #{temperature}</if>
<if test="humidity!=null and humidity!=''">and t.humidity = #{humidity}</if>
<if test="carbonDioxide!=null and carbonDioxide!=''">and t.carbon_dioxide = #{carbonDioxide}</if>
<if test="type!=null ">and t.type = #{type}</if>
<if test="stationId!=null and stationId!=''">and t.station_id = #{stationId}</if>
<if test="createUserId!=null and createUserId!=''">and t.create_user_id = #{createUserId}</if>
<if test="createTime!=null ">and t.create_time = #{createTime}</if>
</sql>
<select id="queryPageByCount" parameterType="Object" resultType="java.lang.Integer">
select count(1) from snqxz_info_month t
<include refid="Example_Where_Clause"/>
</select>
<select id="queryPageList" parameterType="Object" resultMap="BaseResultMap">
select t.* from snqxz_info_month t
<include refid="Example_Where_Clause"/>
<if test="pager.orderCondition != null and pager.orderCondition != ''">
${pager.orderCondition}
</if>
<if test="pager.mysqlQueryCondition != null and pager.mysqlQueryCondition != ''">
${pager.mysqlQueryCondition}
</if>
</select>
</mapper>
<?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.eq.dao.SnqxzInfoYearDao">
<!-- Result Map -->
<resultMap id="BaseResultMap" type="com.devplatform.admin.modules.eq.bean.SnqxzInfoYear">
<result column="id" property="id"/>
<result column="resource_id" property="resourceId"/>
<result column="temperature" property="temperature"/>
<result column="humidity" property="humidity"/>
<result column="carbon_dioxide" property="carbonDioxide"/>
<result column="type" property="type"/>
<result column="station_id" property="stationId"/>
<result column="create_user_id" property="createUserId"/>
<result column="create_time" property="createTime"/>
</resultMap>
<!-- snqxz_info_year table all fields -->
<sql id="Base_Column_List">
id,resource_id,temperature,humidity,carbon_dioxide,type,station_id,create_user_id,create_time
</sql>
<!-- 公共查询条件 -->
<sql id="Example_Where_Clause">
where t.deleted=0
<if test="id!=null and id!=''">and t.id = #{id}</if>
<if test="resourceId!=null and resourceId!=''">and t.resource_id = #{resourceId}</if>
<if test="temperature!=null and temperature!=''">and t.temperature = #{temperature}</if>
<if test="humidity!=null and humidity!=''">and t.humidity = #{humidity}</if>
<if test="carbonDioxide!=null and carbonDioxide!=''">and t.carbon_dioxide = #{carbonDioxide}</if>
<if test="type!=null ">and t.type = #{type}</if>
<if test="stationId!=null and stationId!=''">and t.station_id = #{stationId}</if>
<if test="createUserId!=null and createUserId!=''">and t.create_user_id = #{createUserId}</if>
<if test="createTime!=null ">and t.create_time = #{createTime}</if>
</sql>
<select id="queryPageByCount" parameterType="Object" resultType="java.lang.Integer">
select count(1) from snqxz_info_year t
<include refid="Example_Where_Clause"/>
</select>
<select id="queryPageList" parameterType="Object" resultMap="BaseResultMap">
select t.* from snqxz_info_year t
<include refid="Example_Where_Clause"/>
<if test="pager.orderCondition != null and pager.orderCondition != ''">
${pager.orderCondition}
</if>
<if test="pager.mysqlQueryCondition != null and pager.mysqlQueryCondition != ''">
${pager.mysqlQueryCondition}
</if>
</select>
</mapper>
<?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.sys.dao.SysResourceRunningTimeDao">
<!-- Result Map -->
<resultMap id="BaseResultMap" type="com.devplatform.admin.modules.sys.bean.SysResourceRunningTime">
<result column="id" property="id"/>
<result column="resource_id" property="resourceId"/>
<result column="type" property="type"/>
<result column="start_time" property="startTime"/>
<result column="end_time" property="endTime"/>
<result column="update_user_id" property="updateUserId"/>
<result column="update_time" property="updateTime"/>
<result column="station_id" property="stationId"/>
</resultMap>
<!-- sys_resource_running_time table all fields -->
<sql id="Base_Column_List">
id,resource_id,type,start_time,end_time,update_user_id,update_time,station_id
</sql>
<!-- 公共查询条件 -->
<sql id="Example_Where_Clause">
where t.deleted=0
<if test="id!=null and id!=''">and t.id = #{id}</if>
<if test="resourceId!=null and resourceId!=''">and t.resource_id = #{resourceId}</if>
<if test="type!=null ">and t.type = #{type}</if>
<if test="startTime!=null ">and t.start_time = #{startTime}</if>
<if test="endTime!=null ">and t.end_time = #{endTime}</if>
<if test="updateUserId!=null and updateUserId!=''">and t.update_user_id = #{updateUserId}</if>
<if test="updateTime!=null ">and t.update_time = #{updateTime}</if>
<if test="stationId!=null and stationId!=''">and t.station_id = #{stationId}</if>
</sql>
<select id="queryPageByCount" parameterType="Object" resultType="java.lang.Integer">
select count(1) from sys_resource_running_time t
<include refid="Example_Where_Clause"/>
</select>
<select id="queryPageList" parameterType="Object" resultMap="BaseResultMap">
select t.* from sys_resource_running_time t
<include refid="Example_Where_Clause"/>
<if test="pager.orderCondition != null and pager.orderCondition != ''">
${pager.orderCondition}
</if>
<if test="pager.mysqlQueryCondition != null and pager.mysqlQueryCondition != ''">
${pager.mysqlQueryCondition}
</if>
</select>
</mapper>
<?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.sys.dao.SysResourceRunningTimeTjDao">
<!-- Result Map -->
<resultMap id="BaseResultMap" type="com.devplatform.admin.modules.sys.bean.SysResourceRunningTimeTj">
<result column="id" property="id"/>
<result column="resource_id" property="resourceId"/>
<result column="running_time_total" property="runningTimeTotal"/>
<result column="running_time_sd" property="runningTimeSd"/>
<result column="running_time_jn" property="runningTimeJn"/>
<result column="update_user_id" property="updateUserId"/>
<result column="update_time" property="updateTime"/>
<result column="station_id" property="stationId"/>
</resultMap>
<!-- sys_resource_running_time_tj table all fields -->
<sql id="Base_Column_List">
id,resource_id,running_time_total,running_time_sd,running_time_jn,update_user_id,update_time,station_id
</sql>
<!-- 公共查询条件 -->
<sql id="Example_Where_Clause">
where t.deleted=0
<if test="id!=null and id!=''">and t.id = #{id}</if>
<if test="resourceId!=null and resourceId!=''">and t.resource_id = #{resourceId}</if>
<if test="runningTimeTotal!=null and runningTimeTotal!=''">and t.running_time_total = #{runningTimeTotal}</if>
<if test="runningTimeSd!=null and runningTimeSd!=''">and t.running_time_sd = #{runningTimeSd}</if>
<if test="runningTimeJn!=null and runningTimeJn!=''">and t.running_time_jn = #{runningTimeJn}</if>
<if test="updateUserId!=null and updateUserId!=''">and t.update_user_id = #{updateUserId}</if>
<if test="updateTime!=null ">and t.update_time = #{updateTime}</if>
<if test="stationId!=null and stationId!=''">and t.station_id = #{stationId}</if>
</sql>
<select id="queryPageByCount" parameterType="Object" resultType="java.lang.Integer">
select count(1) from sys_resource_running_time_tj t
<include refid="Example_Where_Clause"/>
</select>
<select id="queryPageList" parameterType="Object" resultMap="BaseResultMap">
select t.* from sys_resource_running_time_tj t
<include refid="Example_Where_Clause"/>
<if test="pager.orderCondition != null and pager.orderCondition != ''">
${pager.orderCondition}
</if>
<if test="pager.mysqlQueryCondition != null and pager.mysqlQueryCondition != ''">
${pager.mysqlQueryCondition}
</if>
</select>
</mapper>
<?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.sys.dao.SysSystemParamsDao">
<!-- Result Map -->
<resultMap id="BaseResultMap" type="com.devplatform.admin.modules.sys.bean.SysSystemParams">
<result column="id" property="id"/>
<result column="type" property="type"/>
<result column="system_running_time" property="systemRunningTime"/>
<result column="sd_system_running_time" property="sdSystemRunningTime"/>
<result column="jn_system_running_time" property="jnSystemRunningTime"/>
<result column="sd_system_running_time_day" property="sdSystemRunningTimeDay"/>
<result column="jn_system_running_time_day" property="jnSystemRunningTimeDay"/>
<result column="sd_system_running_time_month" property="sdSystemRunningTimeMonth"/>
<result column="jn_system_running_time_month" property="jnSystemRunningTimeMonth"/>
<result column="update_user_id" property="updateUserId"/>
<result column="update_time" property="updateTime"/>
<result column="station_id" property="stationId"/>
</resultMap>
<!-- sys_system_params table all fields -->
<sql id="Base_Column_List">
id,type,system_running_time,sd_system_running_time,jn_system_running_time,sd_system_running_time_day,jn_system_running_time_day,sd_system_running_time_month,jn_system_running_time_month,update_user_id,update_time,station_id
</sql>
<!-- 公共查询条件 -->
<sql id="Example_Where_Clause">
where t.deleted=0
<if test="id!=null and id!=''">and t.id = #{id}</if>
<if test="type!=null ">and t.type = #{type}</if>
<if test="systemRunningTime!=null and systemRunningTime!=''">and t.system_running_time = #{systemRunningTime}</if>
<if test="sdSystemRunningTime!=null and sdSystemRunningTime!=''">and t.sd_system_running_time = #{sdSystemRunningTime}</if>
<if test="jnSystemRunningTime!=null and jnSystemRunningTime!=''">and t.jn_system_running_time = #{jnSystemRunningTime}</if>
<if test="sdSystemRunningTimeDay!=null and sdSystemRunningTimeDay!=''">and t.sd_system_running_time_day = #{sdSystemRunningTimeDay}</if>
<if test="jnSystemRunningTimeDay!=null and jnSystemRunningTimeDay!=''">and t.jn_system_running_time_day = #{jnSystemRunningTimeDay}</if>
<if test="sdSystemRunningTimeMonth!=null and sdSystemRunningTimeMonth!=''">and t.sd_system_running_time_month = #{sdSystemRunningTimeMonth}</if>
<if test="jnSystemRunningTimeMonth!=null and jnSystemRunningTimeMonth!=''">and t.jn_system_running_time_month = #{jnSystemRunningTimeMonth}</if>
<if test="updateUserId!=null and updateUserId!=''">and t.update_user_id = #{updateUserId}</if>
<if test="updateTime!=null ">and t.update_time = #{updateTime}</if>
<if test="stationId!=null and stationId!=''">and t.station_id = #{stationId}</if>
</sql>
<select id="queryPageByCount" parameterType="Object" resultType="java.lang.Integer">
select count(1) from sys_system_params t
<include refid="Example_Where_Clause"/>
</select>
<select id="queryPageList" parameterType="Object" resultMap="BaseResultMap">
select t.* from sys_system_params t
<include refid="Example_Where_Clause"/>
<if test="pager.orderCondition != null and pager.orderCondition != ''">
${pager.orderCondition}
</if>
<if test="pager.mysqlQueryCondition != null and pager.mysqlQueryCondition != ''">
${pager.mysqlQueryCondition}
</if>
</select>
</mapper>
<?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.sys.dao.SysSystemRunningTimeDao">
<!-- Result Map -->
<resultMap id="BaseResultMap" type="com.devplatform.admin.modules.sys.bean.SysSystemRunningTime">
<result column="id" property="id"/>
<result column="type" property="type"/>
<result column="start_time" property="startTime"/>
<result column="end_time" property="endTime"/>
<result column="update_user_id" property="updateUserId"/>
<result column="update_time" property="updateTime"/>
<result column="station_id" property="stationId"/>
</resultMap>
<!-- sys_system_running_time table all fields -->
<sql id="Base_Column_List">
id,type,start_time,end_time,update_user_id,update_time,station_id
</sql>
<!-- 公共查询条件 -->
<sql id="Example_Where_Clause">
where t.deleted=0
<if test="id!=null and id!=''">and t.id = #{id}</if>
<if test="type!=null ">and t.type = #{type}</if>
<if test="startTime!=null ">and t.start_time = #{startTime}</if>
<if test="endTime!=null ">and t.end_time = #{endTime}</if>
<if test="updateUserId!=null and updateUserId!=''">and t.update_user_id = #{updateUserId}</if>
<if test="updateTime!=null ">and t.update_time = #{updateTime}</if>
<if test="stationId!=null and stationId!=''">and t.station_id = #{stationId}</if>
</sql>
<select id="queryPageByCount" parameterType="Object" resultType="java.lang.Integer">
select count(1) from sys_system_running_time t
<include refid="Example_Where_Clause"/>
</select>
<select id="queryPageList" parameterType="Object" resultMap="BaseResultMap">
select t.* from sys_system_running_time t
<include refid="Example_Where_Clause"/>
<if test="pager.orderCondition != null and pager.orderCondition != ''">
${pager.orderCondition}
</if>
<if test="pager.mysqlQueryCondition != null and pager.mysqlQueryCondition != ''">
${pager.mysqlQueryCondition}
</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