菜单拆分为城区/郊县

This commit is contained in:
1378012178@qq.com 2025-08-25 20:00:36 +08:00
parent fd733f8540
commit 1c14f8a8c5
6 changed files with 35 additions and 15 deletions

View File

@ -106,6 +106,7 @@ public class SimconfigController extends JeecgController<Simconfig, SimconfigSer
customeRuleMap.put("code", QueryRuleEnum.LIKE_WITH_OR);
customeRuleMap.put("sim", QueryRuleEnum.LIKE_WITH_OR);
QueryWrapper<Simconfig> queryWrapper = QueryGenerator.initQueryWrapper(simconfig, req.getParameterMap(),customeRuleMap);
queryWrapper.eq("region_type",simconfig.getRegionType());
Page<Simconfig> page = new Page<Simconfig>(pageNo, pageSize);
IPage<Simconfig> pageList = simconfigService.page(page, queryWrapper);
return Result.OK(pageList);

View File

@ -5,6 +5,7 @@ import java.util.Date;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.system.base.entity.JeecgEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
@ -79,6 +80,11 @@ public class Heatanalysis extends JeecgEntity {
private String code; // code
private Integer reportType;//数据采集类型 1设备自动上报 2定时模拟
private Integer isExtract;//是否抽取 0否 1是
/**地区类型*/
@Excel(name = "地区类型", width = 15)
@ApiModelProperty(value = "地区类型")
private java.lang.String regionType;
@TableField(exist = false)
private Integer isExtracted;//是否被抽取 0否 1是
@TableField(exist = false)
@ -92,4 +98,6 @@ public class Heatanalysis extends JeecgEntity {
private String tableName;//表名字
private String delFlag; // 删除标识
}

View File

@ -3,6 +3,7 @@ package org.jeecg.modules.heating.entity;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.system.base.entity.JeecgEntity;
import org.jeecgframework.poi.excel.annotation.Excel;
@ -78,6 +79,10 @@ public class HeatanalysisHistory extends JeecgEntity {
private String sim; // sim
private String code; // code
private Integer reportType;//数据采集类型 1设备自动上报 2定时模拟
/**地区类型*/
@Excel(name = "地区类型", width = 15)
@ApiModelProperty(value = "地区类型")
private java.lang.String regionType;
@TableField(exist = false)
private Date SDate;//开始时间
@TableField(exist = false)

View File

@ -99,5 +99,9 @@ public class Simconfig implements Serializable {
/**设备代码*/
@Excel(name = "设备代码", width = 15)
@ApiModelProperty(value = "设备代码")
private String code;
private String code;/**地区类型*/
@Excel(name = "地区类型", width = 15)
@ApiModelProperty(value = "地区类型")
private java.lang.String regionType;
}

View File

@ -47,7 +47,8 @@
a.report_type AS "reportType"
FROM ${params.tableName} a
<where>
a.del_flag = '0'
a.region_type = #{params.regionType}
And a.del_flag = '0'
<if test="params.view001 != null and params.view001 != ''">
AND a.view001 = #{params.view001}
</if>

View File

@ -66,7 +66,8 @@
(case when datatime > DATE_ADD(NOW(), INTERVAL -10 MINUTE) then 0 else 1 end) as isTimeout
FROM BL_HEATANALYSIS a
<where>
a.del_flag = '0'
a.region_type = #{params.regionType}
And a.del_flag = '0'
<if test="params.view001 != null and params.view001 != ''">
AND a.view001 = #{params.view001}
</if>