diff --git a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/controller/StatisticsController.java b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/controller/StatisticsController.java index 51e8e00..e9ae3a5 100644 --- a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/controller/StatisticsController.java +++ b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/controller/StatisticsController.java @@ -9,6 +9,7 @@ import com.hnac.hzims.common.logs.enums.OperatorType; import com.hnac.hzims.middle.systemlog.entity.Statistics; import com.hnac.hzims.middle.systemlog.entity.SysLog; import com.hnac.hzims.middle.systemlog.service.StatisticsService; +import com.hnac.hzims.middle.systemlog.vo.StatisticsResponseVo; import com.hnac.hzims.middle.systemlog.vo.StatisticsVo; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -44,11 +45,6 @@ public class StatisticsController { * @param statistics * @return */ - @ApiOperation("操作日志统计数据分页查询") - @OperationAnnotation(moduleName = "操作日志", - operatorType = OperatorType.MANAGE, - businessType = BusinessType.INSERT - , title = "操作日志统计数据", action = "操作日志统计数据分页查询") @ApiResponses({ @ApiResponse(code = 200,message = "OK",response = Statistics.class), }) @@ -57,8 +53,8 @@ public class StatisticsController { @PathVariable Long page, @PathVariable Long size, StatisticsVo statistics) { - Page page1 = new Page(page, size); - IPage pageSize = statisticsService.selectPage(page1, statistics); + Page page1 = new Page(page, size); + IPage pageSize = statisticsService.selectPage(page1, statistics); return R.data(pageSize); } @@ -73,10 +69,6 @@ public class StatisticsController { @ApiResponse(code = 200,message = "OK",response = Statistics.class), }) @ApiOperation("根据Id查询日志") - @OperationAnnotation(moduleName = "操作日志", - operatorType = OperatorType.MANAGE, - businessType = BusinessType.INSERT - , title = "操作日志统计数据", action = "根据Id查询日志") @GetMapping("/get/{id}") public R list(@PathVariable Long id) { Statistics statistics = statisticsService.getById(id); @@ -84,5 +76,6 @@ public class StatisticsController { } + } diff --git a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/controller/SysLogController.java b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/controller/SysLogController.java index bbd34e9..4b59b2d 100644 --- a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/controller/SysLogController.java +++ b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/controller/SysLogController.java @@ -11,6 +11,8 @@ import com.hnac.hzims.common.logs.to.SysLogTo; import com.hnac.hzims.middle.systemlog.entity.Statistics; import com.hnac.hzims.middle.systemlog.entity.SysLog; import com.hnac.hzims.middle.systemlog.service.SysLogService; +import com.hnac.hzims.middle.systemlog.vo.StatisticsResponseVo; +import com.hnac.hzims.middle.systemlog.vo.StatisticsTitleResponseVo; import com.hnac.hzims.middle.systemlog.vo.StatisticsVo; import com.hnac.hzims.middle.systemlog.vo.SysLogVo; import io.swagger.annotations.Api; @@ -48,10 +50,6 @@ public class SysLogController { * 保存操作日志 * @param sysLogToList */ - @OperationAnnotation(moduleName = "操作日志", - operatorType = OperatorType.MANAGE, - businessType = BusinessType.INSERT - ,title = "系统日志",action = "保存操作日志") @ApiOperation("保存操作日志") @PostMapping("/batchSave") public void saveBatch(@RequestBody List sysLogToList) { @@ -78,10 +76,6 @@ public class SysLogController { * @param size * @return */ - @OperationAnnotation(moduleName = "操作日志", - operatorType = OperatorType.MANAGE, - businessType = BusinessType.INSERT - ,title = "系统日志",action = "日志分页查询") @ApiOperation("日志分页查询") @GetMapping("/selectPage/{page}/{size}") @ApiResponses({ @@ -104,10 +98,6 @@ public class SysLogController { @ApiResponses({ @ApiResponse(code = 200,message = "OK",response = SysLog.class), }) - @OperationAnnotation(moduleName = "操作日志", - operatorType = OperatorType.MANAGE, - businessType = BusinessType.INSERT - ,title = "系统日志",action = "根据Id获取日志数据") @ApiOperation("根据Id获取日志数据") @GetMapping("/get/{id}") public R getById(@PathVariable Long id) { @@ -116,30 +106,21 @@ public class SysLogController { } + /** + * 根据功能模块统计操作模块 + */ + @GetMapping("/statisticsTitleByModuleName/{page}/{size}") + public R statisticsTitleByModuleName( + @PathVariable Long page, + @PathVariable Long size, + StatisticsVo statisticsVo){ + Page page1 = new Page(page, size); + List responseVos = sysLogService.statisticsTitleByModuleName(page1, + statisticsVo); + return R.data(responseVos); + } - // /** - // * 根据Id获取日志数据 - // * @return - // */ - // @ApiResponses({ - // @ApiResponse(code = 200,message = "OK",response = SysLog.class), - // }) - // @OperationAnnotation(moduleName = "操作日志", - // operatorType = OperatorType.MANAGE, - // businessType = BusinessType.INSERT - // ,title = "系统日志",action = "根据操作模块查询信息") - // @ApiOperation("根据操作模块查询信息") - // @GetMapping("/selectPageByModuleName/{page}/{size}") - // public R selectPageByModuleName( - // @PathVariable Long page, - // @PathVariable Long size, - // SysLogVo sysLogVo) { - // Page objectPage = new Page<>(page,size); - // IPage sysLog = sysLogService.selectPageByModuleName(objectPage,sysLogVo); - // return R.data(sysLog); - // } - } diff --git a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/entity/Statistics.java b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/entity/Statistics.java index 241de00..7a8a7e9 100644 --- a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/entity/Statistics.java +++ b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/entity/Statistics.java @@ -36,28 +36,6 @@ public class Statistics implements Serializable { @TableField("id") private Long id; - /** - * 统计日期 - */ - @ApiModelProperty("统计日期") - @TableField("date_calculated") - private String dateCalculated; - - - /** - * 操作模块 - */ - @ApiModelProperty("操作模块") - @TableField("title") - private String title; - - - /** - * 操作模块统计 - */ - @ApiModelProperty("操作模块统计") - @TableField("title_num") - private Integer titleNum; /** @@ -77,18 +55,13 @@ public class Statistics implements Serializable { /** - * 请求路径统计 + * 统计日期 */ - @ApiModelProperty("请求路径统计") - @TableField("path") - private String path; + @ApiModelProperty("统计日期") + @TableField("date_calculated") + private String dateCalculated; + - /** - * 请求路径统计 - */ - @ApiModelProperty("请求路径统计") - @TableField("path_num") - private Integer pathNum; /** * 创建时间 diff --git a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/StatisticsMapper.java b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/StatisticsMapper.java index 53166f0..f314b73 100644 --- a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/StatisticsMapper.java +++ b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/StatisticsMapper.java @@ -1,7 +1,12 @@ package com.hnac.hzims.middle.systemlog.mapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.hnac.hzims.middle.systemlog.entity.Statistics; import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hnac.hzims.middle.systemlog.vo.StatisticsResponseVo; +import com.hnac.hzims.middle.systemlog.vo.StatisticsVo; +import org.apache.ibatis.annotations.Param; /** *

@@ -13,4 +18,13 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; */ public interface StatisticsMapper extends BaseMapper { + + /** + * 分页查询 + * + * @param page1 + * @param statistics + * @return + */ + IPage selectPages(Page page1, @Param("statistics") StatisticsVo statistics); } diff --git a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/StatisticsMapper.xml b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/StatisticsMapper.xml index 093a8d3..a8c53e1 100644 --- a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/StatisticsMapper.xml +++ b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/StatisticsMapper.xml @@ -2,4 +2,9 @@ + diff --git a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/SysLogMapper.java b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/SysLogMapper.java index 4d6d268..5350d01 100644 --- a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/SysLogMapper.java +++ b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/SysLogMapper.java @@ -1,14 +1,18 @@ package com.hnac.hzims.middle.systemlog.mapper; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.hnac.hzims.middle.systemlog.entity.SysLog; import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.hnac.hzims.middle.systemlog.vo.StatisticsTitleResponseVo; +import com.hnac.hzims.middle.systemlog.vo.StatisticsVo; import com.hnac.hzims.middle.systemlog.vo.SysLogStatisticsVo; +import org.apache.ibatis.annotations.Param; import java.util.List; /** *

- * Mapper 接口 + * Mapper 接口 *

* * @author dfy @@ -18,9 +22,18 @@ public interface SysLogMapper extends BaseMapper { /** * 查询统计的数据 + * * @return */ List countStatistics(); + /** + * 根据功能模块统计操作模块 + * + * @param moduleName + * @param statisticsVo + * @return + */ + List statisticsTitleByModuleName(Page moduleName, @Param("statisticsVo") StatisticsVo statisticsVo); } diff --git a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/SysLogMapper.xml b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/SysLogMapper.xml index d385f23..af48743 100644 --- a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/SysLogMapper.xml +++ b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/mapper/SysLogMapper.xml @@ -13,11 +13,26 @@ + diff --git a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/StatisticsService.java b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/StatisticsService.java index 165c705..4bf5e24 100644 --- a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/StatisticsService.java +++ b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/StatisticsService.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.hnac.hzims.middle.systemlog.entity.Statistics; import com.baomidou.mybatisplus.extension.service.IService; +import com.hnac.hzims.middle.systemlog.vo.StatisticsResponseVo; import com.hnac.hzims.middle.systemlog.vo.StatisticsVo; import com.hnac.hzims.middle.systemlog.vo.SysLogStatisticsVo; @@ -36,6 +37,6 @@ public interface StatisticsService extends IService { * @param statistics * @return */ - IPage selectPage(Page page1, StatisticsVo statistics); + IPage selectPage(Page page1, StatisticsVo statistics); } diff --git a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/SysLogService.java b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/SysLogService.java index 4abc935..c78ab3c 100644 --- a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/SysLogService.java +++ b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/SysLogService.java @@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.hnac.hzims.middle.systemlog.entity.SysLog; import com.baomidou.mybatisplus.extension.service.IService; +import com.hnac.hzims.middle.systemlog.vo.StatisticsTitleResponseVo; +import com.hnac.hzims.middle.systemlog.vo.StatisticsVo; import com.hnac.hzims.middle.systemlog.vo.SysLogStatisticsVo; import com.hnac.hzims.middle.systemlog.vo.SysLogVo; @@ -34,4 +36,14 @@ public interface SysLogService extends IService { */ IPage selectPage(Page page1, SysLogVo sysLog); + + /** + * 根据功能模块统计操作模块 + * + * @param statisticsTitleResponseVoPage + * @param statisticsVo + * @return + */ + List statisticsTitleByModuleName(Page statisticsTitleResponseVoPage, + StatisticsVo statisticsVo); } diff --git a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/impl/StatisticsServiceImpl.java b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/impl/StatisticsServiceImpl.java index 3f01484..0df0a4c 100644 --- a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/impl/StatisticsServiceImpl.java +++ b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/impl/StatisticsServiceImpl.java @@ -8,6 +8,7 @@ import com.hnac.hzims.middle.systemlog.mapper.StatisticsMapper; import com.hnac.hzims.middle.systemlog.service.StatisticsService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.hnac.hzims.middle.systemlog.service.SysLogService; +import com.hnac.hzims.middle.systemlog.vo.StatisticsResponseVo; import com.hnac.hzims.middle.systemlog.vo.StatisticsVo; import com.hnac.hzims.middle.systemlog.vo.SysLogStatisticsVo; import lombok.extern.slf4j.Slf4j; @@ -50,7 +51,7 @@ public class StatisticsServiceImpl extends ServiceImpl selectPage(Page page1, StatisticsVo statistics) { - QueryWrapper queryWrapper = new QueryWrapper<>(); - //开始时间 - queryWrapper.lambda().ge(StringUtils.isNotEmpty(statistics.getCreateTime()), Statistics::getDateCalculated, statistics.getCreateTime()); - //结束时间 - queryWrapper.lambda().le(StringUtils.isNotEmpty(statistics.getEndTime()), Statistics::getDateCalculated, statistics.getEndTime()); - queryWrapper.lambda().orderByDesc(Statistics::getDateCalculated); - IPage statisticsPage = baseMapper.selectPage(page1, queryWrapper); - return statisticsPage; + public IPage selectPage(Page page1, StatisticsVo statistics) { + return baseMapper.selectPages(page1,statistics); } } diff --git a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/impl/SysLogServiceImpl.java b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/impl/SysLogServiceImpl.java index 0e5231e..037e97c 100644 --- a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/impl/SysLogServiceImpl.java +++ b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/service/impl/SysLogServiceImpl.java @@ -4,17 +4,17 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.hnac.hzims.middle.systemlog.entity.Statistics; import com.hnac.hzims.middle.systemlog.entity.SysLog; import com.hnac.hzims.middle.systemlog.mapper.SysLogMapper; import com.hnac.hzims.middle.systemlog.service.SysLogService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.hnac.hzims.middle.systemlog.vo.StatisticsTitleResponseVo; +import com.hnac.hzims.middle.systemlog.vo.StatisticsVo; import com.hnac.hzims.middle.systemlog.vo.SysLogStatisticsVo; import com.hnac.hzims.middle.systemlog.vo.SysLogVo; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Service; -import java.time.LocalDate; import java.time.LocalDateTime; import java.util.List; @@ -53,6 +53,18 @@ public class SysLogServiceImpl extends ServiceImpl impleme return statisticsPage; } + /** + * 根据功能模块统计操作模块 + * + * @param statisticsTitleResponseVoPage + * @param statisticsVo + * @return + */ + @Override + public List statisticsTitleByModuleName(Page statisticsTitleResponseVoPage, StatisticsVo statisticsVo) { + return baseMapper.statisticsTitleByModuleName(statisticsTitleResponseVoPage, statisticsVo); + } + /** * 日志查询接口 diff --git a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/vo/StatisticsResponseVo.java b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/vo/StatisticsResponseVo.java new file mode 100644 index 0000000..3d8f18e --- /dev/null +++ b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/vo/StatisticsResponseVo.java @@ -0,0 +1,25 @@ +package com.hnac.hzims.middle.systemlog.vo; + +import lombok.Data; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/6/9 9:37 + */ +@Data +public class StatisticsResponseVo { + + + /** + * 模块名称 + */ + private String moduleName; + + + /** + * 模块统计 + */ + private Integer moduleNameNum; +} diff --git a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/vo/StatisticsTitleResponseVo.java b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/vo/StatisticsTitleResponseVo.java new file mode 100644 index 0000000..04bcdb1 --- /dev/null +++ b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/vo/StatisticsTitleResponseVo.java @@ -0,0 +1,25 @@ +package com.hnac.hzims.middle.systemlog.vo; + +import lombok.Data; + +/** + * @Author WL + * @Version v1.0 + * @Serial 1.0 + * @Date 2023/6/9 9:37 + */ +@Data +public class StatisticsTitleResponseVo { + + + /** + * 模块名称 + */ + private String title; + + + /** + * 模块统计 + */ + private Integer titleCount; +} diff --git a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/vo/StatisticsVo.java b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/vo/StatisticsVo.java index 6b82c1d..c681256 100644 --- a/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/vo/StatisticsVo.java +++ b/hzims-service/hzims-middle/src/main/java/com/hnac/hzims/middle/systemlog/vo/StatisticsVo.java @@ -24,6 +24,13 @@ public class StatisticsVo { /** + * 操作模块 + */ + private String moduleName; + + + + /** * 开始时间 */ //@JsonFormat(pattern="yyyy-MM-dd",shape = JsonFormat.Shape.STRING) diff --git a/hzims-service/message/src/main/java/com/hnac/hzims/message/controller/MessagePushRecordController.java b/hzims-service/message/src/main/java/com/hnac/hzims/message/controller/MessagePushRecordController.java index eab19df..4532604 100644 --- a/hzims-service/message/src/main/java/com/hnac/hzims/message/controller/MessagePushRecordController.java +++ b/hzims-service/message/src/main/java/com/hnac/hzims/message/controller/MessagePushRecordController.java @@ -4,6 +4,9 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; +import com.hnac.hzims.common.logs.annotation.OperationAnnotation; +import com.hnac.hzims.common.logs.enums.BusinessType; +import com.hnac.hzims.common.logs.enums.OperatorType; import com.hnac.hzims.message.MessageConstants; import com.hnac.hzims.message.entity.MessagePushRecordEntity; import com.hnac.hzims.message.service.IMessagePushRecordService; @@ -54,6 +57,10 @@ public class MessagePushRecordController extends BladeController { @GetMapping("/listPage") @ApiOperation("分页查询消息推送记录列表") @ApiOperationSupport(order = 4) + @OperationAnnotation( + moduleName = "消息管理", + title = "消息管理",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, + action = "分页查询消息推送记录列表") public R> listPage(MessagePushRecordEntity request, Query query) { return R.data(messagePushRecordService.listPage(request,query)); } diff --git a/hzims-service/message/src/main/java/com/hnac/hzims/message/controller/MessageTemplateController.java b/hzims-service/message/src/main/java/com/hnac/hzims/message/controller/MessageTemplateController.java index 9e22aad..9f7c0f5 100644 --- a/hzims-service/message/src/main/java/com/hnac/hzims/message/controller/MessageTemplateController.java +++ b/hzims-service/message/src/main/java/com/hnac/hzims/message/controller/MessageTemplateController.java @@ -3,6 +3,9 @@ package com.hnac.hzims.message.controller; import com.aliyun.oss.ServiceException; import com.baomidou.mybatisplus.core.metadata.IPage; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; +import com.hnac.hzims.common.logs.annotation.OperationAnnotation; +import com.hnac.hzims.common.logs.enums.BusinessType; +import com.hnac.hzims.common.logs.enums.OperatorType; import com.hnac.hzims.message.entity.config.MessageTemplateEntity; import com.hnac.hzims.message.service.IMessageTemplateService; import groovy.util.logging.Slf4j; @@ -43,6 +46,10 @@ public class MessageTemplateController extends BladeController { @GetMapping("/listPage") @ApiOperation("分页查询") @ApiOperationSupport(order = 3) + @OperationAnnotation( + moduleName = "消息管理", + title = "消息模版配置",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, + action = "分页查询") public R> listPage(MessageTemplateEntity request, Query query) { return R.data(messageTemplateService.listPage(request,query)); } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/FocusAttributeController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/FocusAttributeController.java index dd5869a..cd214d7 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/FocusAttributeController.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/FocusAttributeController.java @@ -3,6 +3,9 @@ package com.hnac.hzims.operational.config.controller; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.hnac.hzims.common.logs.annotation.OperationAnnotation; +import com.hnac.hzims.common.logs.enums.BusinessType; +import com.hnac.hzims.common.logs.enums.OperatorType; import org.springblade.core.log.annotation.ApiLog; import org.springblade.core.mp.support.Query; import com.baomidou.mybatisplus.core.metadata.IPage; @@ -49,6 +52,10 @@ public class FocusAttributeController extends BladeController { @PostMapping("/getMainList") @ApiOperation("查询列表(主界面)") @ApiOperationSupport(order = 1) + @OperationAnnotation( + moduleName = "站点管理", + title = "集中监控属性配置",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, + action = "分页查询") public R getMainList(FocusAttributeDto focusAttributeDto, Query query) { return attributeService.getMainList(focusAttributeDto,query); } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/StFocusPropertiesController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/StFocusPropertiesController.java index c219e50..f0f73e2 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/StFocusPropertiesController.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/config/controller/StFocusPropertiesController.java @@ -2,6 +2,9 @@ package com.hnac.hzims.operational.config.controller; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.hnac.hzims.common.logs.annotation.OperationAnnotation; +import com.hnac.hzims.common.logs.enums.BusinessType; +import com.hnac.hzims.common.logs.enums.OperatorType; import com.hnac.hzims.operational.config.entity.StFocusPropertiesEntity; import com.hnac.hzims.operational.config.service.StFocusPropertiesService; import io.swagger.annotations.Api; @@ -30,6 +33,10 @@ public class StFocusPropertiesController { @ApiLog @ApiOperation("分页查询") @RequestMapping(value = "/pageList", method = RequestMethod.GET) + @OperationAnnotation( + moduleName = "站点管理", + title = "重点属性配置",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, + action = "分页查询") public R> pageList(StFocusPropertiesEntity entity, Query query) { LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper(); if(StringUtil.isNotBlank(entity.getPropertyName())){ diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/controller/MainWorkBenchController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/controller/MainWorkBenchController.java index d27c463..fce06ad 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/controller/MainWorkBenchController.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/controller/MainWorkBenchController.java @@ -42,6 +42,10 @@ public class MainWorkBenchController extends BladeController { @RequestMapping(value = "/list", method = {RequestMethod.GET, RequestMethod.POST}) @ApiOperationSupport(order = 10) @ApiOperation(value = "分页", notes = "传入StationEntity") + @OperationAnnotation( + moduleName = "站点管理", + title = "工作台管理",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, + action = "分页查询") public R> list(MainWorkBenchEntity entity, Query query) { IPage vos = workBenchService.list(entity, query); return R.data(vos); diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/screen/controller/MainPageConfController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/screen/controller/MainPageConfController.java index e55a84d..2743543 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/screen/controller/MainPageConfController.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/screen/controller/MainPageConfController.java @@ -2,6 +2,9 @@ package com.hnac.hzims.operational.screen.controller; import com.baomidou.mybatisplus.core.metadata.IPage; import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; +import com.hnac.hzims.common.logs.annotation.OperationAnnotation; +import com.hnac.hzims.common.logs.enums.BusinessType; +import com.hnac.hzims.common.logs.enums.OperatorType; import com.hnac.hzims.operational.screen.dto.MainPageConfDto; import com.hnac.hzims.operational.screen.entity.MainPageConfEntity; import com.hnac.hzims.operational.screen.service.IMainPageConfService; @@ -54,6 +57,10 @@ public class MainPageConfController { @GetMapping("/listPage") @ApiOperation("分页查询大屏首页配置") @ApiOperationSupport(order = 3) + @OperationAnnotation( + moduleName = "站点管理", + title = "大屏样式配置",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, + action = "分页查询") public R> listPage (Query query, MainPageConfDto req) { return R.data(mainPageConfService.listPage(query,req)); } @@ -70,6 +77,10 @@ public class MainPageConfController { @ApiLog @GetMapping("/list") @ApiOperation("更新大屏首页配置查询") + @OperationAnnotation( + moduleName = "实时画面", + title = "画面展示",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, + action = "更新大屏首页配置查询") @ApiOperationSupport(order = 5) public R> list (MainPageConfDto req) { return R.data(mainPageConfService.list(req)); diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/HzimsAnalyzeModelStationController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/HzimsAnalyzeModelStationController.java index ceef6cb..f62a360 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/HzimsAnalyzeModelStationController.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/HzimsAnalyzeModelStationController.java @@ -3,6 +3,9 @@ package com.hnac.hzims.operational.station.controller; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.hnac.hzims.common.logs.annotation.OperationAnnotation; +import com.hnac.hzims.common.logs.enums.BusinessType; +import com.hnac.hzims.common.logs.enums.OperatorType; import com.hnac.hzims.operational.duty.entity.ImsDutyClassEntity; import com.hnac.hzims.operational.station.entity.HzimsAnalyzeModelStationEntity; import com.hnac.hzims.operational.station.service.IHzimsAnalyzeModelStationService; @@ -45,6 +48,10 @@ public class HzimsAnalyzeModelStationController extends BladeController { @ApiLog @ApiOperation(value = "查询分页数据") @GetMapping(value = "/list") + @OperationAnnotation( + moduleName = "站点管理", + title = "模型站点",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, + action = "分页查询") public R> list(HzimsAnalyzeModelStationEntity entity, Query query) { IPage page = analyzeModelStationService.page(Condition.getPage(query), Condition.getQueryWrapper(entity)); return R.data(page); diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationController.java index 41bd2bc..17aa337 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationController.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationController.java @@ -61,8 +61,8 @@ public class StationController extends BladeController { @ApiOperationSupport(order = 10) @ApiOperation(value = "分页", notes = "传入StationEntity") @OperationAnnotation( - moduleName = "安全管理", - title = "智能诊断",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, + moduleName = "站点管理", + title = "水电站点管理",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, action = "分页查询") public R> list(StationEntity entity, Query query) { IPage vos = stationService.list(entity,query); diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationVideoTypeController.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationVideoTypeController.java index 2bc753f..95b2651 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationVideoTypeController.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/controller/StationVideoTypeController.java @@ -76,6 +76,10 @@ public class StationVideoTypeController extends BladeController { @RequestMapping(value = "/list", method = {RequestMethod.GET, RequestMethod.POST}) @ApiOperationSupport(order = 10) @ApiOperation(value = "分页", notes = "传入stationVideoType") + @OperationAnnotation( + moduleName = "站点管理", + title = "视频配置",operatorType = OperatorType.MOBILE,businessType = BusinessType.GENCODE, + action = "分页查询") public R> list(StationVideoTypeEntity entity, Query query) { LambdaQueryWrapper queryWrapper = Condition.getQueryWrapper(new StationVideoTypeEntity(),entity); queryWrapper.orderByAsc(StationVideoTypeEntity::getStationId).orderByAsc(StationVideoTypeEntity::getSort); diff --git a/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java b/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java index 92cfce7..4b9fe05 100644 --- a/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java +++ b/hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/twoTicket/service/impl/TicketProcessServiceImpl.java @@ -661,6 +661,7 @@ public class TicketProcessServiceImpl implements TicketProcessService { measure.setTicketId(workTicketInfoEntity.getId()); measure.setCreateDept(workTicketInfoEntity.getCreateDept()); measure.setCreateUser(workTicketInfoEntity.getCreateUser()); + measure.setExecutor(AuthUtil.getUserId()); return measure; }).collect(Collectors.toList()); boolean savedBatch = workTicketSafetyMeasureService.saveBatch(measureEntityList); @@ -829,6 +830,13 @@ public class TicketProcessServiceImpl implements TicketProcessService { docPath = docPath + name + ".docx"; log.info("输出word路径:{}", docPath); + + //第一种工作票 + resultMap.put("one", status == 1 ? "☑":"□"); + //第二种工作票 + resultMap.put("two", status == 2 ? "☑":"□"); + //水力机器工作票 + resultMap.put("three", status == 3 ? "☑":"□"); //导入文档 File file = new File(docPath); MergeDocUtils.mergeDoc(docFileList, file); @@ -1158,7 +1166,7 @@ public class TicketProcessServiceImpl implements TicketProcessService { if (matterLibraryListFlow.size() <= i) { objectObjectHashMap.put("safetyMeasure1", ""); } else { - Map stringObjectMap = matterLibraryListFive.get(i); + Map stringObjectMap = matterLibraryListFlow.get(i); objectObjectHashMap.put("safetyMeasure1", stringObjectMap.get("safetyMeasure")); } } else { diff --git a/hzims-service/ticket/src/main/resources/template/secondary/工作票危险点分析及控制措施票.docx b/hzims-service/ticket/src/main/resources/template/secondary/工作票危险点分析及控制措施票.docx index 5e86dca..12e8153 100644 Binary files a/hzims-service/ticket/src/main/resources/template/secondary/工作票危险点分析及控制措施票.docx and b/hzims-service/ticket/src/main/resources/template/secondary/工作票危险点分析及控制措施票.docx differ diff --git a/hzims-service/ticket/src/main/resources/template/secondary/工作票安全措施附页.docx b/hzims-service/ticket/src/main/resources/template/secondary/工作票安全措施附页.docx index 48c365f..ed79a2b 100644 Binary files a/hzims-service/ticket/src/main/resources/template/secondary/工作票安全措施附页.docx and b/hzims-service/ticket/src/main/resources/template/secondary/工作票安全措施附页.docx differ diff --git a/hzims-service/ticket/src/main/resources/template/电气第一种工作票模版.docx b/hzims-service/ticket/src/main/resources/template/电气第一种工作票模版.docx index 4684a35..cc648ac 100644 Binary files a/hzims-service/ticket/src/main/resources/template/电气第一种工作票模版.docx and b/hzims-service/ticket/src/main/resources/template/电气第一种工作票模版.docx differ