From 56a1571a5391e5116bcbe8850bb24d7371b24e02 Mon Sep 17 00:00:00 2001 From: liukewei Date: Mon, 19 Feb 2024 16:41:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B4=AF=E8=AE=A1=E8=B7=9F=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/ehs/EhsMaterialController.java | 4 +- .../ehs/EhsNoticeMessageController.java | 37 +++++- .../com/ruoyi/common/annotation/Excel.java | 2 +- .../ruoyi/common/core/domain/BaseEntity.java | 2 +- .../domain/EhsHiddenDanger.java | 8 +- .../domain/EhsLawEnforcement.java | 2 +- .../ruoyi/ehsMaterial/domain/EhsMaterial.java | 10 +- .../domain/EhsNoticeMessage.java | 32 ++--- .../domain/EhsNoticeMessageDept.java | 114 ++++++++++++++++++ .../mapper/EhsNoticeMessageMapper.java | 4 +- .../service/IEhsNoticeMessageService.java | 3 +- .../impl/EhsNoticeMessageServiceImpl.java | 3 +- .../com/ruoyi/ehsRisk/domain/EhsRisk.java | 54 +++++---- .../mapper/ehs/EhsLawEnforcementMapper.xml | 33 ++--- .../mapper/ehs/EhsNoticeMessageMapper.xml | 49 +++++++- .../resources/mapper/ehs/EhsRiskMapper.xml | 10 +- ruoyi-ui/src/views/ehs/ehsDocument/index.vue | 2 +- .../src/views/ehs/ehsLawEnforce/index.vue | 2 +- .../src/views/ehs/ehsMaterial/indexAll.vue | 4 +- .../src/views/ehs/ehsNoticeMessage/index.vue | 4 +- 20 files changed, 288 insertions(+), 91 deletions(-) create mode 100644 ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/domain/EhsNoticeMessageDept.java diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsMaterialController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsMaterialController.java index 257e76a..bf44e30 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsMaterialController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsMaterialController.java @@ -77,7 +77,9 @@ public class EhsMaterialController extends BaseController List list = ehsMaterialService.selectEhsMaterialList(ehsMaterial); // 类别替换为中文 MaterialClassMaster msm = new MaterialClassMaster(); - msm.setClassMastType(ehsMaterial.getClassFirst().toString()); + if(ehsMaterial.getClassFirst()!=null){ + msm.setClassMastType(ehsMaterial.getClassFirst().toString()); + } List materialClassMasters = materialClassMastService.selectMaterialClassMastList(msm); // 物资分类一级分类对象,对应的是"类别"字段;收集为map,key是 v1,v2,v3... value是"常用工具","个人防护物资和装备"... Map map1 = materialClassMasters.stream().collect(Collectors.toMap(MaterialClassMaster::getClassMastId, MaterialClassMaster::getClassNameMast)); diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsNoticeMessageController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsNoticeMessageController.java index 9718089..5f300a7 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsNoticeMessageController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/ehs/EhsNoticeMessageController.java @@ -10,6 +10,7 @@ import com.ruoyi.common.core.domain.entity.SysUser; import com.ruoyi.common.utils.SecurityUtils; import com.ruoyi.ehsMyMessage.domain.EhsMyMessage; import com.ruoyi.ehsMyMessage.service.IEhsMyMessageService; +import com.ruoyi.ehsNoticeMessage.domain.EhsNoticeMessageDept; import com.ruoyi.system.service.ISysDeptService; import org.apache.commons.lang3.StringUtils; import org.springframework.security.access.prepost.PreAuthorize; @@ -55,13 +56,13 @@ public class EhsNoticeMessageController extends BaseController */ @PreAuthorize("@ss.hasPermi('ehsNoticeMessage:ehsNoticeMessage:list')") @GetMapping("/list") - public TableDataInfo list(EhsNoticeMessage ehsNoticeMessage) + public TableDataInfo list(EhsNoticeMessageDept ehsNoticeMessage) { startPage(); ehsNoticeMessage.setDeptId(SecurityUtils.getDeptId()); ehsNoticeMessage.setStatus("1"); ehsNoticeMessage.setFileDeptId(SecurityUtils.getDeptId()); - List list = ehsNoticeMessageService.selectEhsNoticeMessageList(ehsNoticeMessage); + List list = ehsNoticeMessageService.selectEhsNoticeMessageList(ehsNoticeMessage); return getDataTable(list); } @PreAuthorize("@ss.hasPermi('ehsNoticeMessage:ehsNoticeMessage:listAdmin')") @@ -79,13 +80,37 @@ public class EhsNoticeMessageController extends BaseController @PreAuthorize("@ss.hasPermi('ehsNoticeMessage:ehsNoticeMessage:export')") @Log(title = "内部公告", businessType = BusinessType.EXPORT) @PostMapping("/export") - public void export(HttpServletResponse response, EhsNoticeMessage ehsNoticeMessage) + public void export(HttpServletResponse response, EhsNoticeMessageDept ehsNoticeMessage) { - List list = ehsNoticeMessageService.selectEhsNoticeMessageList(ehsNoticeMessage); - ExcelUtil util = new ExcelUtil(EhsNoticeMessage.class); + ehsNoticeMessage.setDeptId(SecurityUtils.getDeptId()); + ehsNoticeMessage.setStatus("1"); + ehsNoticeMessage.setFileDeptId(SecurityUtils.getDeptId()); + List list = ehsNoticeMessageService.selectEhsNoticeMessageList(ehsNoticeMessage); + if(!list.isEmpty()){ + for(int i=0;i util = new ExcelUtil(EhsNoticeMessageDept.class); util.exportExcel(response, list, "内部公告数据"); } - + @PreAuthorize("@ss.hasPermi('ehsNoticeMessage:ehsNoticeMessage:export')") + @Log(title = "内部公告", businessType = BusinessType.EXPORT) + @PostMapping("/exportAdmin") + public void exportAdmin(HttpServletResponse response, EhsNoticeMessage ehsNoticeMessage) + { + ehsNoticeMessage.setCreateDeptId(SecurityUtils.getDeptId()); + List list = ehsNoticeMessageService.selectEhsNoticeMessageListAdmin(ehsNoticeMessage); + if(!list.isEmpty()){ + for(int i=0;i util = new ExcelUtil(EhsNoticeMessage.class); + util.exportExcel(response, list, "NoticeMessage"); + } /** * 获取内部公告详细信息 */ diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Excel.java b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Excel.java index 58a4bc6..e3ea731 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Excel.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/annotation/Excel.java @@ -21,7 +21,7 @@ public @interface Excel /** * 导出时在excel中排序 */ - public int sort() default Integer.MAX_VALUE; + public int sort() default Integer.MIN_VALUE; /** * 导出到Excel中的名字. diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java index a93ea3f..59d8769 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/BaseEntity.java @@ -57,7 +57,7 @@ public class BaseEntity implements Serializable private Date updateTime; /** 备注 */ - @Excel(name = "备注") + @Excel(name = "备注",sort = 100) private String remark; /** 请求参数 */ diff --git a/ruoyi-system/src/main/java/com/ruoyi/ehsHiddenDanger/domain/EhsHiddenDanger.java b/ruoyi-system/src/main/java/com/ruoyi/ehsHiddenDanger/domain/EhsHiddenDanger.java index ca90314..3fdb9bc 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/ehsHiddenDanger/domain/EhsHiddenDanger.java +++ b/ruoyi-system/src/main/java/com/ruoyi/ehsHiddenDanger/domain/EhsHiddenDanger.java @@ -34,7 +34,7 @@ public class EhsHiddenDanger extends BaseEntity private Long hiddenDangerId; /** 隐患所在单位 */ - @Excel(name = "隐患所在单位") + @Excel(name = "单位名称") private String enterpriseName; /** 企业现状(0停业、1正常经营) */ @@ -64,7 +64,8 @@ public class EhsHiddenDanger extends BaseEntity /** 整改措施 */ @Excel(name = "整改措施") private String rectifyMeasure; - + @Excel(name = "整改期限", width = 30, dateFormat = "yyyy-MM-dd") + private Date rectifyTermTime; /** 整改进度 */ @Excel(name = "整改进度", dictType = "hidden_danger_status") private String status; @@ -121,8 +122,7 @@ public class EhsHiddenDanger extends BaseEntity //@Excel(name = "标签", dictType = "hidden_danger_label") private String[] hiddenDangerLabelArray; - @Excel(name = "整改期限", width = 30, dateFormat = "yyyy-MM-dd") - private Date rectifyTermTime; + /** 整改资金 */ @Excel(name = "整改资金") diff --git a/ruoyi-system/src/main/java/com/ruoyi/ehsLawEnforce/domain/EhsLawEnforcement.java b/ruoyi-system/src/main/java/com/ruoyi/ehsLawEnforce/domain/EhsLawEnforcement.java index 39e9cdd..334a86e 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/ehsLawEnforce/domain/EhsLawEnforcement.java +++ b/ruoyi-system/src/main/java/com/ruoyi/ehsLawEnforce/domain/EhsLawEnforcement.java @@ -104,7 +104,7 @@ public class EhsLawEnforcement extends BaseEntity { * 时间 */ @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "时间(yyyy-MM-dd格式)", width = 30, dateFormat = "yyyy-MM-dd") + @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd") private Date time; /** diff --git a/ruoyi-system/src/main/java/com/ruoyi/ehsMaterial/domain/EhsMaterial.java b/ruoyi-system/src/main/java/com/ruoyi/ehsMaterial/domain/EhsMaterial.java index fb61907..bda2441 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/ehsMaterial/domain/EhsMaterial.java +++ b/ruoyi-system/src/main/java/com/ruoyi/ehsMaterial/domain/EhsMaterial.java @@ -53,7 +53,9 @@ public class EhsMaterial extends BaseEntity /** 数量 */ @Excel(name = "数量") private String materialQuantity; - + @Excel(name = "待处理出库") + @TableField(exist = false) + private String sendQuantity; /** 储备地点 */ @Excel(name = "储备地点") private String reserveLocation; @@ -65,10 +67,8 @@ public class EhsMaterial extends BaseEntity /** 联系电话 */ @Excel(name = "联系电话") private String tel; - /** 上报部门 */ - // @Excel(name = "待处理出库") - @TableField(exist = false) - private String sendQuantity; + + @TableField(exist = false) private Integer isSendQuantity; @TableField(exist = false) diff --git a/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/domain/EhsNoticeMessage.java b/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/domain/EhsNoticeMessage.java index 731a8f6..9d5a272 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/domain/EhsNoticeMessage.java +++ b/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/domain/EhsNoticeMessage.java @@ -36,41 +36,45 @@ public class EhsNoticeMessage extends BaseEntity /** 标题 */ @Excel(name = "标题") private String title; - + @Excel(name = "部门列表") + @TableField(exist = false) + private String deptListName; + private String deptList; /** 内容 */ - @Excel(name = "内容") + //@Excel(name = "内容") private String displayContent; - + @Excel(name = "发布时间", dateFormat = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private Date issueTime; /** 文件下载列表 */ - @Excel(name = "文件下载列表") + //@Excel(name = "文件下载列表") @TableField(exist = false) private String fileName; /** 临时任务的下载模板 */ private String fileTempName; - @Excel(name = "模板文件") + //@Excel(name = "模板文件") private String fileTempOriginalName; /** 1:未发布 2:已发布 */ - @Excel(name = "0:未发布 1:已发布") + //@Excel(name = "0:未发布 1:已发布") private String status; /** 已阅读企业id */ - @Excel(name = "已阅读企业id") + @Excel(name = "已阅读企业数") private String readDeptId; /** 0临时任务,1通知公告 */ - @Excel(name = "0临时任务,1通知公告") + //@Excel(name = "0临时任务,1通知公告") private Long mesgType; /** 需要接收消息的企业列表 */ - @Excel(name = "需要接收消息的企业列表") - private String deptList; + /** 0不是全部,1全部企业 */ - @Excel(name = "0不是全部,1全部企业") + //@Excel(name = "0不是全部,1全部企业") private Integer allDept; /** 创建的部门,主要区别二级监管 */ - @Excel(name = "创建的部门,主要区别二级监管") + //@Excel(name = "创建的部门,主要区别二级监管") private Long createDeptId; @Excel(name = "已上传数") @TableField(exist = false) @@ -95,9 +99,7 @@ public class EhsNoticeMessage extends BaseEntity private String messageFileId; @TableField(exist = false) private Long[] deptListArray; - @Excel(name = "发布时间") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date issueTime; + @TableField(exist = false) private Long myMessageId; //我的消息对应的id diff --git a/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/domain/EhsNoticeMessageDept.java b/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/domain/EhsNoticeMessageDept.java new file mode 100644 index 0000000..aaaefa3 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/domain/EhsNoticeMessageDept.java @@ -0,0 +1,114 @@ +package com.ruoyi.ehsNoticeMessage.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; +import lombok.Data; +import lombok.NoArgsConstructor; +import lombok.ToString; +import lombok.experimental.Accessors; + +import java.util.Date; + +/** + * 内部公告对象 ehs_notice_message + * + * @author ruoyi + * @date 2023-12-06 + */ +@Data +@ToString +@NoArgsConstructor +@Accessors(chain = true) +@TableName("ehs_notice_message") +public class EhsNoticeMessageDept extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + @TableId(type= IdType.AUTO) + private Long noticeMessageId; + + /** 标题 */ + @Excel(name = "标题") + private String title; + // @Excel(name = "部门列表") + @TableField(exist = false) + private String deptListName; + private String deptList; + @Excel(name = "提交状态", readConverterExp = "0=未提交,1=已提交") + @TableField(exist = false) + private String fileState; + @Excel(name = "是否阅读", readConverterExp = "0=未阅读,1=已阅读") + @TableField(exist = false) + private Long isRead; + /** 内容 */ + //@Excel(name = "内容") + private String displayContent; + @Excel(name = "通知时间", dateFormat = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd") + private Date issueTime; + /** 文件下载列表 */ + //@Excel(name = "文件下载列表") + @TableField(exist = false) + private String fileName; + /** 临时任务的下载模板 */ + private String fileTempName; + //@Excel(name = "模板文件") + private String fileTempOriginalName; + /** 1:未发布 2:已发布 */ + //@Excel(name = "0:未发布 1:已发布") + private String status; + + /** 已阅读企业id */ + //@Excel(name = "已阅读企业数") + private String readDeptId; + + /** 0临时任务,1通知公告 */ + //@Excel(name = "0临时任务,1通知公告") + private Long mesgType; + + /** 需要接收消息的企业列表 */ + + + /** 0不是全部,1全部企业 */ + //@Excel(name = "0不是全部,1全部企业") + private Integer allDept; + + /** 创建的部门,主要区别二级监管 */ + //@Excel(name = "创建的部门,主要区别二级监管") + private Long createDeptId; + //@Excel(name = "已上传数") + @TableField(exist = false) + private Integer fileCount; + + + + @TableField(exist = false) + private Long fileDeptId; + + + + @TableField(exist = false) + private Long noticeMessageFileId; + + @TableField(exist = false) + private String originalName; + + @TableField(exist = false) + private String messageFileId; + @TableField(exist = false) + private Long[] deptListArray; + + + @TableField(exist = false) + private Long myMessageId; //我的消息对应的id + @TableField(exist = false) + private Long myUserId;//我的消息的对应人员的id + @TableField(exist = false) + private String myMessageState;//我的消息阅读状态 +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/mapper/EhsNoticeMessageMapper.java b/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/mapper/EhsNoticeMessageMapper.java index 55efad6..da21b82 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/mapper/EhsNoticeMessageMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/mapper/EhsNoticeMessageMapper.java @@ -2,6 +2,8 @@ package com.ruoyi.ehsNoticeMessage.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ruoyi.ehsNoticeMessage.domain.EhsNoticeMessage; +import com.ruoyi.ehsNoticeMessage.domain.EhsNoticeMessageDept; + import java.util.List; /** @@ -25,7 +27,7 @@ public interface EhsNoticeMessageMapper extends BaseMapper { * @param ehsNoticeMessage 内部公告 * @return 内部公告集合 */ - public List selectEhsNoticeMessageList(EhsNoticeMessage ehsNoticeMessage); + public List selectEhsNoticeMessageList(EhsNoticeMessageDept ehsNoticeMessage); public List selectEhsNoticeMessageListAdmin(EhsNoticeMessage ehsNoticeMessage); public int updateReadCompany(EhsNoticeMessage ehsNoticeMessage); diff --git a/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/service/IEhsNoticeMessageService.java b/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/service/IEhsNoticeMessageService.java index c5b6e39..09b26ee 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/service/IEhsNoticeMessageService.java +++ b/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/service/IEhsNoticeMessageService.java @@ -3,6 +3,7 @@ package com.ruoyi.ehsNoticeMessage.service; import java.util.List; import com.baomidou.mybatisplus.extension.service.IService; import com.ruoyi.ehsNoticeMessage.domain.EhsNoticeMessage; +import com.ruoyi.ehsNoticeMessage.domain.EhsNoticeMessageDept; /** * 内部公告Service接口 @@ -26,7 +27,7 @@ public interface IEhsNoticeMessageService extends IService { * @param ehsNoticeMessage 内部公告 * @return 内部公告集合 */ - public List selectEhsNoticeMessageList(EhsNoticeMessage ehsNoticeMessage); + public List selectEhsNoticeMessageList(EhsNoticeMessageDept ehsNoticeMessage); public List selectEhsNoticeMessageListAdmin(EhsNoticeMessage ehsNoticeMessage); diff --git a/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/service/impl/EhsNoticeMessageServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/service/impl/EhsNoticeMessageServiceImpl.java index 429e8e2..a603e31 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/service/impl/EhsNoticeMessageServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/ehsNoticeMessage/service/impl/EhsNoticeMessageServiceImpl.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.ruoyi.common.utils.SecurityUtils; +import com.ruoyi.ehsNoticeMessage.domain.EhsNoticeMessageDept; import org.springframework.stereotype.Service; import org.springframework.beans.factory.annotation.Autowired; import com.ruoyi.common.utils.StringUtils; @@ -44,7 +45,7 @@ public class EhsNoticeMessageServiceImpl extends ServiceImpl selectEhsNoticeMessageList(EhsNoticeMessage ehsNoticeMessage) + public List selectEhsNoticeMessageList(EhsNoticeMessageDept ehsNoticeMessage) { ehsNoticeMessage.setMyUserId(SecurityUtils.getUserId()); return ehsNoticeMessageMapper.selectEhsNoticeMessageList(ehsNoticeMessage); diff --git a/ruoyi-system/src/main/java/com/ruoyi/ehsRisk/domain/EhsRisk.java b/ruoyi-system/src/main/java/com/ruoyi/ehsRisk/domain/EhsRisk.java index 04fb368..22a3d5a 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/ehsRisk/domain/EhsRisk.java +++ b/ruoyi-system/src/main/java/com/ruoyi/ehsRisk/domain/EhsRisk.java @@ -39,16 +39,19 @@ public class EhsRisk extends BaseEntity private String reportAddressType; /** 风险点位置,用分号“;”分隔 */ - @Excel(name = "风险点位置") + //@Excel(name = "风险点位置") private String riskLocation; - + @Excel(name = "风险点位置") + private String riskLocationStr; /** 风险点概况 */ @Excel(name = "风险点概况") private String riskDesc; /** 涉及群众数量,用分号“;”分隔 */ - @Excel(name = "涉及群众数量") + //@Excel(name = "涉及群众数量") private String peopleQuantity; + @Excel(name = "涉及群众数量") + private String peopleQuantityStr; /** 抢险救援物资保障地点 */ @Excel(name = "抢险救援物资保障地点") @@ -65,42 +68,43 @@ public class EhsRisk extends BaseEntity /** 人员转移安置点 */ @Excel(name = "人员转移安置点") private String resettleAddr; + /** 巡查责任人姓名 */ + @Excel(name = "巡查责任人姓名") + private String inspectionName; - /** 乡级责任人姓名 */ - @Excel(name = "乡级责任人姓名") - private String villageName; - - /** 乡级责任人职务 */ - @Excel(name = "乡级责任人职务") - private String villageDuties; - - /** 乡级责任人联系电话 */ - @Excel(name = "乡级责任人联系电话") - private String villageTel; + /** 巡查责任人职务 */ + @Excel(name = "巡查责任人职务") + private String inspectionDuties; + /** 巡查责任人电话 */ + @Excel(name = "巡查责任人电话") + private String inspectionTel; /** 村级责任人姓名 */ @Excel(name = "村级责任人姓名") - private String villageName1; + private String villageName; /** 村级责任人职务 */ @Excel(name = "村级责任人职务") - private String villageDuties1; + private String villageDuties; /** 村级责任人联系电话 */ @Excel(name = "村级责任人联系电话") + private String villageTel; + /** 乡级责任人姓名 */ + @Excel(name = "乡级责任人姓名") + private String villageName1; + + /** 乡级责任人职务 */ + @Excel(name = "乡级责任人职务") + private String villageDuties1; + + /** 乡级责任人联系电话 */ + @Excel(name = "乡级责任人联系电话") private String villageTel1; - /** 巡查责任人姓名 */ - @Excel(name = "巡查责任人姓名") - private String inspectionName; - /** 巡查责任人职务 */ - @Excel(name = "巡查责任人职务") - private String inspectionDuties; - /** 巡查责任人电话 */ - @Excel(name = "巡查责任人电话") - private String inspectionTel; + /** 风险点位置 */ @TableField(exist = false) diff --git a/ruoyi-system/src/main/resources/mapper/ehs/EhsLawEnforcementMapper.xml b/ruoyi-system/src/main/resources/mapper/ehs/EhsLawEnforcementMapper.xml index 3bc9fc3..8cd1eb0 100644 --- a/ruoyi-system/src/main/resources/mapper/ehs/EhsLawEnforcementMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/ehs/EhsLawEnforcementMapper.xml @@ -31,32 +31,33 @@ - select id, enterprise_name, location, responsible_person, phone, risk, is_large_risk, rectification_measure, rectification_people, enterprise_category, employee_num, is_establish_prevention, time, other, class_first, create_by, create_time, update_by, update_time, remark, dept_id, create_user_id, update_user_id from ehs_law_enforcement + select e.*, d.dept_name from ehs_law_enforcement e + left join sys_dept d on e.dept_id = d.dept_id diff --git a/ruoyi-system/src/main/resources/mapper/ehs/EhsNoticeMessageMapper.xml b/ruoyi-system/src/main/resources/mapper/ehs/EhsNoticeMessageMapper.xml index f6b4345..51de4ba 100644 --- a/ruoyi-system/src/main/resources/mapper/ehs/EhsNoticeMessageMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/ehs/EhsNoticeMessageMapper.xml @@ -15,6 +15,7 @@ + @@ -37,14 +38,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select * from ehs_notice_message - + select m.notice_message_id, m.create_user_id, m.create_time, m.dept_id,m.title, m.display_content, m.status,m.issue_time + ,IFNULL(FIND_IN_SET(#{deptId}, m.read_dept_id ),0) is_read,m.mesg_type,m.read_dept_id,m.all_dept,m.file_temp_name,file_temp_original_name, (select f.id from ehs_notice_message_file f where m.notice_message_id = f.notice_message_id and f.dept_ID =#{fileDeptId} ) AS message_file_id, (select f.file_name from ehs_notice_message_file f where m.notice_message_id = f.notice_message_id and f.dept_ID =#{fileDeptId}) file_name, IFNULL((select IFNULL(f.state,0) from ehs_notice_message_file f where m.notice_message_id = f.notice_message_id and f.dept_ID =#{fileDeptId}),0) file_state, @@ -57,6 +92,7 @@ left join sys_dept d on m.dept_id=d.dept_id and d.parent_id!=0 left join ehs_my_message mym on m.notice_message_id = my_message_key and my_message_type = 1 and my_user_id = #{myUserId} + and m.title like '%${title}%' and m.display_content = #{displayContent} @@ -72,20 +108,21 @@