Compare commits
4 Commits
12f21d77b0
...
15ad990f6d
| Author | SHA1 | Date |
|---|---|---|
|
|
15ad990f6d | 2 weeks ago |
|
|
ebe1710ff2 | 2 weeks ago |
|
|
bb8b1617bb | 2 weeks ago |
|
|
6a72bab2a6 | 2 weeks ago |
19 changed files with 207 additions and 313 deletions
@ -1,71 +0,0 @@
|
||||
package org.springblade.hzinfo_inspect.duty.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill; |
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import lombok.experimental.Accessors; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
import org.springblade.core.tool.utils.DateUtil; |
||||
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
||||
import java.io.Serializable; |
||||
import java.sql.Time; |
||||
|
||||
/** |
||||
* <p> |
||||
* 班组发电量 |
||||
* </p> |
||||
* |
||||
* @author lx |
||||
* @since 2022-02-24 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = false) |
||||
@Accessors(chain = true) |
||||
@TableName("hzims_duty_group_generating_capacity") |
||||
@ApiModel(value = "DutyGroupGeneratingCapacityEntity对象", description = "班组发电量") |
||||
public class DutyGroupGeneratingCapacityEntity extends BaseEntity implements Serializable { |
||||
|
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
|
||||
@ApiModelProperty(value = "站点ID") |
||||
@TableField("DUTY_DEPT") |
||||
private Long dutyDept; |
||||
|
||||
@ApiModelProperty(value = "年月") |
||||
@TableField("DATE_TIME") |
||||
private String dateTime; |
||||
|
||||
@ApiModelProperty(value = "班组ID") |
||||
@TableField("GROUP_ID") |
||||
private Long groupId; |
||||
|
||||
@ApiModelProperty(value = "设备Code") |
||||
@TableField("EM_CODE") |
||||
private String emCode; |
||||
|
||||
@DateTimeFormat(pattern = DateUtil.PATTERN_TIME) |
||||
@JsonFormat(pattern = DateUtil.PATTERN_TIME) |
||||
@ApiModelProperty(value = "开始时间") |
||||
@TableField("START_TIME") |
||||
private Time startTime; |
||||
|
||||
@DateTimeFormat(pattern = DateUtil.PATTERN_TIME) |
||||
@JsonFormat(pattern = DateUtil.PATTERN_TIME) |
||||
@ApiModelProperty(value = "开始时间") |
||||
@TableField("END_TIME") |
||||
private Time endTime; |
||||
|
||||
@ApiModelProperty(value = "发电量") |
||||
@TableField("GENERATING_CAPACITY") |
||||
private float generatingCapacity; |
||||
|
||||
@ApiModelProperty(value = "租户ID") |
||||
private String tenantId; |
||||
} |
||||
@ -1,16 +0,0 @@
|
||||
package org.springblade.hzinfo_inspect.duty.mapper; |
||||
|
||||
import org.springblade.core.datascope.mapper.UserDataScopeBaseMapper; |
||||
import org.springblade.hzinfo_inspect.duty.entity.DutyGroupGeneratingCapacityEntity; |
||||
|
||||
/** |
||||
* <p> |
||||
* 班组发电量 Mapper 接口 |
||||
* </p> |
||||
* |
||||
* @author lx |
||||
* @since 2022-02-24 |
||||
*/ |
||||
public interface DutyGroupGeneratingCapacityMapper extends UserDataScopeBaseMapper<DutyGroupGeneratingCapacityEntity> { |
||||
|
||||
} |
||||
@ -1,30 +0,0 @@
|
||||
<?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="org.springblade.hzinfo_inspect.duty.mapper.DutyGroupGeneratingCapacityMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="BaseResultMap" type="org.springblade.hzinfo_inspect.duty.entity.DutyGroupGeneratingCapacityEntity"> |
||||
<id column="ID" property="id" /> |
||||
<result column="DUTY_DEPT" property="dutyDept" /> |
||||
<result column="DATE_TIME" property="dateTime" /> |
||||
<result column="GROUP_ID" property="groupId" /> |
||||
<result column="EM_CODE" property="emCode" /> |
||||
<result column="START_TIME" property="startTime" /> |
||||
<result column="END_TIME" property="endTime" /> |
||||
<result column="GENERATING_CAPACITY" property="generatingCapacity" /> |
||||
<result column="TENANT_ID" property="tenantId" /> |
||||
<result column="CREATE_TIME" property="createTime" /> |
||||
<result column="UPDATE_TIME" property="updateTime" /> |
||||
<result column="CREATE_USER" property="createUser" /> |
||||
<result column="UPDATE_USER" property="updateUser" /> |
||||
<result column="IS_DELETED" property="isDeleted" /> |
||||
<result column="STATUS" property="status" /> |
||||
<result column="CREATE_DEPT" property="createDept" /> |
||||
</resultMap> |
||||
|
||||
<!-- 通用查询结果列 --> |
||||
<sql id="Base_Column_List"> |
||||
ID, STATION_ID, DATE_TIME, GROUP_ID,EM_CODE, START_TIME, END_TIME, GENERATING_CAPACITY, TENANT_ID, CREATE_TIME, UPDATE_TIME, CREATE_USER, UPDATE_USER, IS_DELETED, STATUS, CREATE_DEPT |
||||
</sql> |
||||
|
||||
</mapper> |
||||
@ -1,46 +1,41 @@
|
||||
package org.springblade.hzinfo_inspect.report.entity; |
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import com.alibaba.excel.annotation.write.style.*; |
||||
import com.alibaba.excel.enums.BooleanEnum; |
||||
import com.alibaba.excel.enums.poi.FillPatternTypeEnum; |
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
||||
import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
||||
import com.alibaba.excel.annotation.write.style.HeadRowHeight; |
||||
import io.swagger.annotations.ApiModel; |
||||
import lombok.Data; |
||||
import org.apache.poi.ss.usermodel.FillPatternType; |
||||
|
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* @Author: py |
||||
*/ |
||||
@ApiModel(value = "巡检月报-Excel-导出") |
||||
@Data |
||||
@HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 22) |
||||
@HeadRowHeight(45) |
||||
@ColumnWidth(20) |
||||
@ContentRowHeight(80) |
||||
@ContentStyle(wrapped = BooleanEnum.TRUE) |
||||
public class InspectMonthReportExcel { |
||||
|
||||
@ExcelProperty(value = "用户名称", index = 0) |
||||
private String userName; |
||||
@ExcelProperty(value = "用户名称", index = 0) |
||||
private String userName; |
||||
|
||||
@ExcelProperty(value = "路径名称", index = 1) |
||||
private String routeName; |
||||
@ExcelProperty(value = "路径名称", index = 1) |
||||
private String routeName; |
||||
|
||||
@ExcelProperty(value = "执行时间", index = 2) |
||||
private String time; |
||||
@ExcelProperty(value = "执行时间", index = 2) |
||||
private String time; |
||||
|
||||
@ExcelProperty(value = "任务次数", index = 3) |
||||
private Long taskNum; |
||||
@ExcelProperty(value = "任务次数", index = 3) |
||||
private Long taskNum; |
||||
|
||||
@ExcelProperty(value = "过检次数", index = 4) |
||||
private Long overNum; |
||||
@ExcelProperty(value = "过检次数", index = 4) |
||||
private Long overNum; |
||||
|
||||
@ExcelProperty(value = "漏检次数", index = 5) |
||||
private Long missingNum; |
||||
@ExcelProperty(value = "漏检次数", index = 5) |
||||
private Long missingNum; |
||||
|
||||
@ExcelProperty(value = "问题数", index = 6) |
||||
private Long problemNum; |
||||
@ExcelProperty(value = "问题数", index = 6) |
||||
private Long problemNum; |
||||
|
||||
} |
||||
|
||||
@ -1,19 +0,0 @@
|
||||
//
|
||||
// Source code recreated from a .class file by IntelliJ IDEA
|
||||
// (powered by Fernflower decompiler)
|
||||
//
|
||||
|
||||
package org.springblade.video_image.video.mapper; |
||||
|
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.springblade.video_image.video.entity.PointLeafNode; |
||||
|
||||
import java.util.List; |
||||
|
||||
public interface VideoBaseMapper{ |
||||
int clearBindingRelation(@Param("videoList") List<Long> var1); |
||||
|
||||
List<PointLeafNode> getVideoList(@Param("pointIdList") List<Long> var1); |
||||
|
||||
int deleteById(long var1); |
||||
} |
||||
@ -1,43 +0,0 @@
|
||||
<?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="org.springblade.video_image.video.mapper.VideoBaseMapper"> |
||||
|
||||
<sql id="Video_Base_Column_List"> |
||||
id, name, pointId, inUse |
||||
</sql> |
||||
|
||||
<sql id="Clear_Condition"> |
||||
<where> |
||||
<choose> |
||||
<when test="videoList != null and !videoList.isEmpty()"> |
||||
AND id IN ( |
||||
<foreach collection="videoList" item="videoId" separator=","> |
||||
#{videoId} |
||||
</foreach> |
||||
) |
||||
</when> |
||||
<otherwise> |
||||
AND 1 = 2 |
||||
</otherwise> |
||||
</choose> |
||||
</where> |
||||
</sql> |
||||
|
||||
<sql id="List_Condition"> |
||||
<where> |
||||
<choose> |
||||
<when test="pointIdList != null and !pointIdList.isEmpty()"> |
||||
AND pointId IN ( |
||||
<foreach collection="pointIdList" item="pointId" separator=","> |
||||
#{pointId} |
||||
</foreach> |
||||
) |
||||
</when> |
||||
<otherwise> |
||||
AND 1 = 2 |
||||
</otherwise> |
||||
</choose> |
||||
</where> |
||||
</sql> |
||||
</mapper> |
||||
@ -1,41 +1,41 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<ehcache updateCheck="false" name="defaultCache"> |
||||
|
||||
<diskStore path="../temp/hzinfo/ehcache" /> |
||||
<diskStore path="../temp/hzinfo/ehcache" /> |
||||
|
||||
<!-- 默认缓存配置. --> |
||||
<defaultCache maxEntriesLocalHeap="100" eternal="false" |
||||
timeToIdleSeconds="300" timeToLiveSeconds="0" overflowToDisk="true" |
||||
maxEntriesLocalDisk="100000" /> |
||||
<!-- 默认缓存配置. --> |
||||
<defaultCache maxEntriesLocalHeap="100" eternal="false" |
||||
timeToIdleSeconds="300" timeToLiveSeconds="0" overflowToDisk="true" |
||||
maxEntriesLocalDisk="100000" /> |
||||
|
||||
<!-- 系统缓存 --> |
||||
<cache name="sysCache" maxEntriesLocalHeap="100" eternal="true" |
||||
overflowToDisk="true" /> |
||||
<!-- 系统缓存 --> |
||||
<cache name="sysCache" maxEntriesLocalHeap="100" eternal="true" |
||||
overflowToDisk="true" /> |
||||
|
||||
<!-- 用户缓存 --> |
||||
<cache name="userCache" maxEntriesLocalHeap="100" eternal="true" |
||||
overflowToDisk="true" /> |
||||
<!-- 用户缓存 --> |
||||
<cache name="userCache" maxEntriesLocalHeap="100" eternal="true" |
||||
overflowToDisk="true" /> |
||||
|
||||
<!-- 数据配置缓存 --> |
||||
<cache name="dataCache" maxEntriesLocalHeap="100" eternal="true" |
||||
overflowToDisk="true" /> |
||||
<!-- 数据配置缓存 --> |
||||
<cache name="dataCache" maxEntriesLocalHeap="100" eternal="true" |
||||
overflowToDisk="true" /> |
||||
|
||||
<!-- 简单页面缓存 --> |
||||
<cache name="SimplePageCachingFilter" maxEntriesLocalHeap="100" |
||||
eternal="false" overflowToDisk="true" timeToIdleSeconds="120" |
||||
timeToLiveSeconds="120" memoryStoreEvictionPolicy="LFU" /> |
||||
<!-- 简单页面缓存 --> |
||||
<cache name="SimplePageCachingFilter" maxEntriesLocalHeap="100" |
||||
eternal="false" overflowToDisk="true" timeToIdleSeconds="120" |
||||
timeToLiveSeconds="120" memoryStoreEvictionPolicy="LFU" /> |
||||
|
||||
|
||||
<!--接线方式缓存 --> |
||||
<cache name="LineType" maxEntriesLocalHeap="100" eternal="true" |
||||
overflowToDisk="true" /> |
||||
<!--接线方式缓存 --> |
||||
<cache name="LineType" maxEntriesLocalHeap="100" eternal="true" |
||||
overflowToDisk="true" /> |
||||
|
||||
<!--行业类型缓存--> |
||||
<cache name="IndustryType" maxEntriesLocalHeap="100" eternal="true" |
||||
overflowToDisk="true" /> |
||||
<!--行业类型缓存--> |
||||
<cache name="IndustryType" maxEntriesLocalHeap="100" eternal="true" |
||||
overflowToDisk="true" /> |
||||
|
||||
<!-- 设备数缓存 --> |
||||
<cache name="DeviceTreeCache" maxEntriesLocalHeap="100" eternal="true" |
||||
overflowToDisk="true" /> |
||||
<!-- 设备数缓存 --> |
||||
<cache name="DeviceTreeCache" maxEntriesLocalHeap="100" eternal="true" |
||||
overflowToDisk="true" /> |
||||
|
||||
</ehcache> |
||||
Loading…
Reference in new issue