2022-08-22 | songhuangfeng123 | ![]() |
2022-08-22 | songhuangfeng123 | ![]() |
2022-08-22 | SZH | ![]() |
emergency/emergency-service/src/main/java/com/gkhy/safePlatform/emergency/service/impl/EmergencyCountServiceImpl.java
@@ -19,6 +19,7 @@ import com.gkhy.safePlatform.emergency.service.baseService.EmergencySuppliesInfoService; import com.gkhy.safePlatform.emergency.utils.TimeUtils; import org.apache.dubbo.config.annotation.DubboReference; import org.redisson.api.RedissonClient; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.util.CollectionUtils; @@ -38,6 +39,12 @@ @Autowired private EmergencySuppliesInfoService emergencySuppliesInfoService; /** * redisson客户端 */ @Autowired private RedissonClient redissonClient; @Override goal-manage/goal-manage-service/src/main/java/com/gkhy/safePlatform/targetDuty/entity/TargetMng.java
@@ -1,18 +1,17 @@ package com.gkhy.safePlatform.targetDuty.entity; import java.sql.Timestamp; import com.fasterxml.jackson.annotation.JsonFormat; import com.gkhy.safePlatform.targetDuty.entity.BaseDomain; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.IdType; import com.fasterxml.jackson.annotation.JsonFormat; /** * 目标指标(TargetMng)表实体类 * * @author xurui * @since 2022-07-20 11:49:22 * @since 2022-08-22 11:00:59 */ @SuppressWarnings("serial") @TableName("target_mng") @@ -39,7 +38,6 @@ public void setqName(String qName) { this.qName = qName; } //目标指标编号 private String indexNum; @@ -69,6 +67,16 @@ public void setValue(String value) { this.value = value; } //1:大于 2:等于 3:小于 private Integer valueSign; public Integer getValueSign() { return valueSign; } public void setValueSign(Integer valueSign) { this.valueSign = valueSign; } //指标级别 1:公司级 2:部门分厂级 3:工段班组级 private Integer level; @@ -101,7 +109,7 @@ public void setMemo(String memo) { this.memo = memo; } //指标类型 1:年指标 2:月指标 //指标类型 1:年指标 2:月指标 3:半年 4:季度 private Integer targetType; public Integer getTargetType() { @@ -121,5 +129,15 @@ public void setDivideStatus(Integer divideStatus) { this.divideStatus = divideStatus; } //目标制定部门 private Long makerDepartmentId; public Long getMakerDepartmentId() { return makerDepartmentId; } public void setMakerDepartmentId(Long makerDepartmentId) { this.makerDepartmentId = makerDepartmentId; } } pom.xml
@@ -9,6 +9,12 @@ <packaging>pom</packaging> <version>1.0-SNAPSHOT</version> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.7.1</version> </parent> <modules> <module>goal-manage/goal-manage-service</module> <module>goal-manage/goal-manage-rpc-provider</module> @@ -39,13 +45,8 @@ <com.alibaba.cloud.version>2.2.8.RELEASE</com.alibaba.cloud.version> <jta.starter.version>2.7.1</jta.starter.version> <commons.utils.version>1.9.4</commons.utils.version> <redission.version>3.17.4</redission.version> </properties> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.6.7</version> </parent> <dependencyManagement> <dependencies> @@ -139,6 +140,12 @@ <version>${commons.utils.version}</version> </dependency> <dependency> <groupId>org.redisson</groupId> <artifactId>redisson-spring-boot-starter</artifactId> <version>${redission.version}</version> </dependency> </dependencies> </dependencyManagement> @@ -202,6 +209,10 @@ <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> <dependency> <groupId>org.redisson</groupId> <artifactId>redisson-spring-boot-starter</artifactId> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.9.9.1</version> safePlatfrom-out-web/src/main/java/com/gkhy/safePlatform/config/database/DruidConfig.java
@@ -46,8 +46,8 @@ ds.setUniqueResourceName("goalmanage"); ds.setPoolSize(2); ds.setXaProperties(prop); ds.setMaxIdleTime(18000000); ds.setMaxLifetime(21600000); ds.setMaxIdleTime(3600000); ds.setMaxLifetime(3000000); return ds; } @@ -64,8 +64,8 @@ ds.setUniqueResourceName("emergency"); ds.setPoolSize(2); ds.setXaProperties(prop); ds.setMaxIdleTime(18000000); ds.setMaxLifetime(21600000); ds.setMaxIdleTime(3600000); ds.setMaxLifetime(3000000); return ds; } @@ -80,8 +80,8 @@ ds.setUniqueResourceName("incidentmanage"); ds.setPoolSize(2); ds.setXaProperties(prop); ds.setMaxIdleTime(18000000); ds.setMaxLifetime(21600000); ds.setMaxIdleTime(3600000); ds.setMaxLifetime(3000000); return ds; } @@ -96,8 +96,8 @@ ds.setUniqueResourceName("equipment"); ds.setPoolSize(2); ds.setXaProperties(prop); ds.setMaxIdleTime(18000000); ds.setMaxLifetime(21600000); ds.setMaxIdleTime(3600000); ds.setMaxLifetime(3000000); return ds; } safePlatfrom-out-web/src/main/resources/config/application.yaml
@@ -2,7 +2,9 @@ application: name: safeplatform-out profiles: active: guotai-demo active: uat # active: guotai-demo #### test uat guotai-demo # active: test # active: uat