liwen
5 months ago
93 changed files with 277 additions and 344 deletions
@ -1,15 +1,16 @@
|
||||
package com.hnac.hzims.safeproduct.service; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.hnac.hzims.safeproduct.dto.AccidentDTO; |
||||
import com.hnac.hzims.safeproduct.entity.AccidentEntity; |
||||
import com.hnac.hzims.safeproduct.statistic.vo.RiskDangerAccidentMonthCountVO; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author hx |
||||
*/ |
||||
public interface IAccidentService extends BaseService<AccidentEntity> { |
||||
public interface IAccidentService extends IService<AccidentEntity> { |
||||
|
||||
List<RiskDangerAccidentMonthCountVO> getAccidentMonthTrend(AccidentDTO req); |
||||
} |
||||
|
@ -1,18 +1,11 @@
|
||||
package com.hnac.hzims.safeproduct.service; |
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.hnac.hzims.safeproduct.dto.CheckItemDTO; |
||||
import com.hnac.hzims.safeproduct.entity.CheckItemEntity; |
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.hnac.hzims.safeproduct.entity.CheckItemInstanceEntity; |
||||
import com.hnac.hzims.safeproduct.vo.CheckItemVo; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
import org.springblade.core.mp.support.Query; |
||||
import org.springblade.core.tool.api.R; |
||||
|
||||
/** |
||||
* Created by Sam Huang 2022/5/6 8:28 |
||||
*/ |
||||
public interface ICheckItemInstanceService extends BaseService<CheckItemInstanceEntity> { |
||||
|
||||
public interface ICheckItemInstanceService extends IService<CheckItemInstanceEntity> { |
||||
|
||||
} |
||||
|
@ -1,13 +1,13 @@
|
||||
package com.hnac.hzims.safeproduct.service; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.hnac.hzims.safeproduct.entity.ImsMonAlarmInfoEntity; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
|
||||
/** |
||||
* 服务类 |
||||
* |
||||
* @author Chill |
||||
*/ |
||||
public interface IImsMonAlarmInfoService extends BaseService<ImsMonAlarmInfoEntity> { |
||||
public interface IImsMonAlarmInfoService extends IService<ImsMonAlarmInfoEntity> { |
||||
|
||||
} |
||||
|
@ -1,13 +1,13 @@
|
||||
package com.hnac.hzims.safeproduct.service; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.hnac.hzims.safeproduct.entity.ImsMonCameraInfoEntity; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
|
||||
/** |
||||
* 服务类 |
||||
* |
||||
* @author Chill |
||||
*/ |
||||
public interface IImsMonCameraInfoService extends BaseService<ImsMonCameraInfoEntity> { |
||||
public interface IImsMonCameraInfoService extends IService<ImsMonCameraInfoEntity> { |
||||
|
||||
} |
||||
|
@ -1,10 +1,11 @@
|
||||
package com.hnac.hzims.safeproduct.service; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.hnac.hzims.safeproduct.entity.ReviewEntity; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
|
||||
/** |
||||
* @author hx |
||||
*/ |
||||
public interface IReviewService extends BaseService<ReviewEntity> { |
||||
public interface IReviewService extends IService<ReviewEntity> { |
||||
} |
||||
|
@ -1,11 +1,10 @@
|
||||
package com.hnac.hzims.safeproduct.service; |
||||
|
||||
import com.hnac.hzims.safeproduct.entity.ReviewEntity; |
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
import com.hnac.hzims.safeproduct.entity.ReviewStandardEntity; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
|
||||
/** |
||||
* @author hx |
||||
*/ |
||||
public interface IReviewStandardService extends BaseService<ReviewStandardEntity> { |
||||
public interface IReviewStandardService extends IService<ReviewStandardEntity> { |
||||
} |
||||
|
@ -1,20 +1,19 @@
|
||||
package com.hnac.hzims.safeproduct.service.impl; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.hnac.hzims.safeproduct.entity.CheckItemInstanceEntity; |
||||
import com.hnac.hzims.safeproduct.mapper.CheckItemInstanceMapper; |
||||
import com.hnac.hzims.safeproduct.service.ICheckItemInstanceService; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
|
||||
/** |
||||
* Created by Sam Huang 2022/5/6 8:23 |
||||
*/ |
||||
@Service |
||||
@AllArgsConstructor |
||||
@Slf4j |
||||
public class CheckItemInstanceServiceImpl extends BaseServiceImpl<CheckItemInstanceMapper, CheckItemInstanceEntity> implements ICheckItemInstanceService { |
||||
public class CheckItemInstanceServiceImpl extends ServiceImpl<CheckItemInstanceMapper, CheckItemInstanceEntity> implements ICheckItemInstanceService { |
||||
|
||||
} |
||||
|
@ -1,16 +1,15 @@
|
||||
package com.hnac.hzims.safeproduct.service.impl; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.hnac.hzims.safeproduct.entity.ReviewStandardEntity; |
||||
import com.hnac.hzims.safeproduct.mapper.ReviewStandardMapper; |
||||
import com.hnac.hzims.safeproduct.service.IReviewStandardService; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @author 86187 |
||||
*/ |
||||
@Service |
||||
public class ReviewStandardServiceImpl extends BaseServiceImpl<ReviewStandardMapper, ReviewStandardEntity> implements IReviewStandardService { |
||||
public class ReviewStandardServiceImpl extends ServiceImpl<ReviewStandardMapper, ReviewStandardEntity> implements IReviewStandardService { |
||||
|
||||
} |
||||
|
@ -1,28 +0,0 @@
|
||||
#服务器端口 |
||||
server: |
||||
port: 8200 |
||||
|
||||
#数据源配置 |
||||
#spring: |
||||
# datasource: |
||||
# url: ${blade.datasource.dev.url} |
||||
# username: ${blade.datasource.dev.username} |
||||
# password: ${blade.datasource.dev.password} |
||||
|
||||
spring: |
||||
#排除DruidDataSourceAutoConfigure |
||||
autoconfigure: |
||||
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
||||
datasource: |
||||
dynamic: |
||||
#设置默认的数据源或者数据源组,默认值即为master |
||||
primary: master |
||||
datasource: |
||||
master: |
||||
url: jdbc:mysql://175.6.40.67:5816/hzims?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true |
||||
username: root |
||||
password: 123 |
||||
slave: |
||||
url: jdbc:mysql://175.6.40.67:5816/hzims?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true |
||||
username: root |
||||
password: 123 |
@ -1,28 +0,0 @@
|
||||
#服务器端口 |
||||
server: |
||||
port: 8200 |
||||
|
||||
#数据源配置 |
||||
#spring: |
||||
# datasource: |
||||
# url: ${blade.datasource.prod.url} |
||||
# username: ${blade.datasource.prod.username} |
||||
# password: ${blade.datasource.prod.password} |
||||
|
||||
spring: |
||||
#排除DruidDataSourceAutoConfigure |
||||
autoconfigure: |
||||
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
||||
datasource: |
||||
dynamic: |
||||
#设置默认的数据源或者数据源组,默认值即为master |
||||
primary: master |
||||
datasource: |
||||
master: |
||||
url: ${blade.datasource.demo.master.url} |
||||
username: ${blade.datasource.demo.master.username} |
||||
password: ${blade.datasource.demo.master.password} |
||||
slave: |
||||
url: ${blade.datasource.demo.slave.url} |
||||
username: ${blade.datasource.demo.slave.username} |
||||
password: ${blade.datasource.demo.slave.password} |
@ -1,28 +0,0 @@
|
||||
#服务器端口 |
||||
server: |
||||
port: 8200 |
||||
|
||||
#数据源配置 |
||||
#spring: |
||||
# datasource: |
||||
# url: ${blade.datasource.test.url} |
||||
# username: ${blade.datasource.test.username} |
||||
# password: ${blade.datasource.test.password} |
||||
|
||||
spring: |
||||
#排除DruidDataSourceAutoConfigure |
||||
autoconfigure: |
||||
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
||||
datasource: |
||||
dynamic: |
||||
#设置默认的数据源或者数据源组,默认值即为master |
||||
primary: master |
||||
datasource: |
||||
master: |
||||
url: ${blade.datasource.demo.master.url} |
||||
username: ${blade.datasource.demo.master.username} |
||||
password: ${blade.datasource.demo.master.password} |
||||
slave: |
||||
url: ${blade.datasource.demo.slave.url} |
||||
username: ${blade.datasource.demo.slave.username} |
||||
password: ${blade.datasource.demo.slave.password} |
@ -1,21 +0,0 @@
|
||||
#mybatis-plus配置 |
||||
mybatis-plus: |
||||
mapper-locations: classpath:com/hnac/hzims/**/mapper/*Mapper.xml |
||||
#实体扫描,多个package用逗号或者分号分隔 |
||||
typeAliasesPackage: com.hnac.hzims.**.entity |
||||
|
||||
#swagger扫描路径配置 |
||||
swagger: |
||||
base-packages: |
||||
- org.springbalde |
||||
- com.hnac |
||||
|
||||
#oss配置 |
||||
oss: |
||||
enabled: true |
||||
name: minio |
||||
tenant-mode: false |
||||
endpoint: http://127.0.0.1:9000 |
||||
access-key: D99KGE6ZTQXSATTJWU24 |
||||
secret-key: QyVqGnhIQQE734UYSUFlGOZViE6+ZlDEfUG3NjhJ |
||||
bucket-name: bladex |
@ -0,0 +1,73 @@
|
||||
#服务器端口 |
||||
server: |
||||
port: 8200 |
||||
|
||||
#oss配置 |
||||
oss: |
||||
endpoint: "${hzinfo.oss.endpoint}" |
||||
access-key: "${hzinfo.oss.access-key}" |
||||
secret-key: "${hzinfo.oss.secret-key}" |
||||
|
||||
#数据源配置 |
||||
spring: |
||||
#排除DruidDataSourceAutoConfigure |
||||
autoconfigure: |
||||
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure |
||||
datasource: |
||||
dynamic: |
||||
#设置默认的数据源或者数据源组,默认值即为master |
||||
primary: master |
||||
datasource: |
||||
master: |
||||
url: "jdbc:mysql://${hzinfo.db.busines.ip}:${hzinfo.db.busines.port}/hzims?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true" |
||||
username: "${hzinfo.db.busines.username}" |
||||
password: "${hzinfo.db.busines.password}" |
||||
slave: |
||||
url: "jdbc:mysql://${hzinfo.db.busines.ip}:${hzinfo.db.busines.port}/hzims?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true" |
||||
username: "${hzinfo.db.busines.username}" |
||||
password: "${hzinfo.db.busines.password}" |
||||
|
||||
#mybatis-plus配置 |
||||
mybatis-plus: |
||||
mapper-locations: classpath:com/hnac/hzims/**/mapper/*Mapper.xml |
||||
#实体扫描,多个package用逗号或者分号分隔 |
||||
typeAliasesPackage: com.hnac.hzims.**.entity |
||||
|
||||
#swagger扫描路径配置 |
||||
swagger: |
||||
base-packages: com.hnac.hzims.safeproduct |
||||
|
||||
xxl: |
||||
job: |
||||
accessToken: '' |
||||
admin: |
||||
addresses: "http://${hzims.server.ip}:7009/xxl-job-admin" |
||||
executor: |
||||
appname: hzims-safeproduct |
||||
ip: "${hzims.server.ip}" |
||||
logpath: /data/applogs/xxl-job/jobhandler |
||||
logretentiondays: 7 |
||||
port: 28200 |
||||
|
||||
hzims: |
||||
tenantId: 200000 |
||||
#ops-push |
||||
jgPushCode: ops-push |
||||
safeProduct: |
||||
safeTool: |
||||
filePath: /data/hzims/safeProduct/pdf/file |
||||
modulePath: /data/hzims/safeProduct/pdf/template/SafeToolTemplate.html |
||||
sadeToolKey: hzims:safeProduct:safeToolType |
||||
sms-code: aliyun-safeTool-push |
||||
rehearsal: |
||||
savePath: /data/hzims/safeproduct/rehearsal |
||||
train: |
||||
savePath: /data/hzims/safeproduct/train |
||||
conference: |
||||
savePath: /data/hzims/safeproduct/conference |
||||
hygiene: |
||||
savePath: /data/hzims/safeproduct/hygiene |
||||
car: |
||||
savePath: /data/hzims/safeproduct/car |
||||
risk: |
||||
save-path: /data/hzims/file/safeproduct/pdf |
Loading…
Reference in new issue