Browse Source

-修改苯乙烯上岗证一览表数据

jiangbiao 2 years ago
parent
commit
ef18ae9950

+ 12 - 0
master/src/main/java/com/ruoyi/project/training/controller/TWorklicenseController.java

@@ -1,6 +1,7 @@
 package com.ruoyi.project.training.controller;
 package com.ruoyi.project.training.controller;
 
 
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
 import com.ruoyi.common.utils.DateUtils;
 import com.ruoyi.common.utils.DateUtils;
 import com.ruoyi.common.utils.file.ExcelUtils;
 import com.ruoyi.common.utils.file.ExcelUtils;
 import com.ruoyi.common.utils.poi.ExcelUtil;
 import com.ruoyi.common.utils.poi.ExcelUtil;
@@ -14,6 +15,7 @@ import com.ruoyi.project.system.domain.SysDept;
 import com.ruoyi.project.system.domain.SysDictData;
 import com.ruoyi.project.system.domain.SysDictData;
 import com.ruoyi.project.system.service.ISysDeptService;
 import com.ruoyi.project.system.service.ISysDeptService;
 import com.ruoyi.project.system.service.ISysDictTypeService;
 import com.ruoyi.project.system.service.ISysDictTypeService;
+import com.ruoyi.project.training.domain.TByxWorklicense;
 import com.ruoyi.project.training.domain.TTrainingWorklicense;
 import com.ruoyi.project.training.domain.TTrainingWorklicense;
 import com.ruoyi.project.training.domain.TWorklicense;
 import com.ruoyi.project.training.domain.TWorklicense;
 import com.ruoyi.project.training.mapper.TWorklicenseMapper;
 import com.ruoyi.project.training.mapper.TWorklicenseMapper;
@@ -178,6 +180,16 @@ public class TWorklicenseController extends BaseController
         return util.exportExcel(list, "worklicense");
         return util.exportExcel(list, "worklicense");
     }
     }
 
 
+    @PreAuthorize("@ss.hasPermi('training:worklicense:export')")
+    @Log(title = "上岗证一览", businessType = BusinessType.EXPORT)
+    @GetMapping("/exportByx")
+    public AjaxResult exportByx(TWorklicense tWorklicense) {
+        List<TWorklicense> tWorklicenses = tWorklicenseService.selectTWorklicenseList(tWorklicense);
+        List<TByxWorklicense> list = JSONArray.parseArray(JSON.toJSONString(tWorklicenses), TByxWorklicense.class);
+        ExcelUtil<TByxWorklicense> util = new ExcelUtil<TByxWorklicense>(TByxWorklicense.class);
+        return util.exportExcel(list, "worklicense");
+    }
+
     /**
     /**
      * 获取上岗证一览详细信息
      * 获取上岗证一览详细信息
      */
      */

+ 415 - 0
master/src/main/java/com/ruoyi/project/training/domain/TByxWorklicense.java

@@ -0,0 +1,415 @@
+package com.ruoyi.project.training.domain;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ruoyi.framework.aspectj.lang.annotation.Excel;
+import com.ruoyi.framework.web.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+import java.util.Date;
+
+/**
+ * 上岗证一览对象 t_worklicense
+ *
+ * @author ruoyi
+ * @date 2020-12-02
+ */
+public class TByxWorklicense extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 唯一标识ID */
+    private Long id;
+
+    /** 装置名称 */
+    @Excel(name = "装置名称", dictType = "PLANT_DIVIDE")
+    private String plantCode;
+
+    /** 姓名 */
+    @Excel(name = "姓名")
+    private String name;
+
+    /** 员工号 */
+    @Excel(name = "员工号")
+    private String employeeid;
+
+    /** 班组 */
+    @Excel(name = "班组", dictType = "TEAM_DIVIDE")
+    private String classes;
+
+    /** 职务 */
+    @Excel(name = "职务", dictType = "ACTUALPOST")
+    private String post;
+
+    /** 证件类型 */
+    @Excel(name = "证件类型")
+    private String idtype;
+
+    /** 裂解证件号 */
+   // @Excel(name = "裂解证件号")
+    private String crackingIdnum;
+
+    /** 分离证件号 */
+   // @Excel(name = "分离证件号")
+    private String separationIdnum;
+
+    /** 压缩证件号 */
+    //@Excel(name = "压缩证件号")
+    private String compressionIdnum;
+
+    /** PGU/AEU证件号 */
+    //@Excel(name = "PGU/AEU证件号")
+    private String pguaeuIdnum;
+
+    /** 分离取证日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    //@Excel(name = "分离取证日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date separationDate;
+
+    /** 压缩取证日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    //@Excel(name = "压缩取证日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date compressionDate;
+
+    /** PGU/AEU取证日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    //@Excel(name = "PGU/AEU取证日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date pguaeuDate;
+
+    /** 裂解取证日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+   // @Excel(name = "裂解取证日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date crackingDate;
+
+    /** 裂解 */
+    @Excel(name = "裂解(裂化)", dictType = "YES_NO_EN")
+    private String boiler;
+
+    /** 压缩 */
+    @Excel(name = "压力容器", dictType = "YES_NO_EN")
+    private String cracking;
+
+    /** 分离 */
+    @Excel(name = "压力管道", dictType = "YES_NO_EN")
+    private String hotarea;
+
+    /** PGU */
+    @Excel(name = "烷基化", dictType = "YES_NO_EN")
+    private String coldarea;
+
+    /** AEU */
+    @Excel(name = "AEU", dictType = "YES_NO_EN")
+    private String aromatic;
+
+    /** 取复证日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "取复证日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date recertificatedate;
+
+    /** 证书有效期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "证书有效期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date validity;
+
+    /** 删除状态 */
+    private Long delFlag;
+
+    /** 创建人 */
+    private String createrCode;
+
+    /** 创建时间 */
+    private Date createdate;
+
+    /** 修改人 */
+    private String updaterCode;
+
+    /** 修改时间 */
+    private Date updatedate;
+
+    /** 部门编号 */
+    private Long deptId;
+
+    /** 部门名称 */
+    @Excel(name = "部门名称")
+    private String deptName;
+
+    /** 备注 */
+    @Excel(name = "备注")
+    private String remarks;
+
+    /** 无上岗证 */
+    private String notHave;
+
+    /** 证书有效期即将到期 */
+    private String expiring;
+
+    /** 到期时间 */
+    private Date expiringDate;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setPlantCode(String plantCode)
+    {
+        this.plantCode = plantCode;
+    }
+
+    public String getPlantCode()
+    {
+        return plantCode;
+    }
+    public void setName(String name)
+    {
+        this.name = name;
+    }
+
+    public String getName()
+    {
+        return name;
+    }
+    public void setEmployeeid(String employeeid)
+    {
+        this.employeeid = employeeid;
+    }
+
+    public String getEmployeeid()
+    {
+        return employeeid;
+    }
+    public void setClasses(String classes)
+    {
+        this.classes = classes;
+    }
+
+    public String getClasses()
+    {
+        return classes;
+    }
+    public void setPost(String post)
+    {
+        this.post = post;
+    }
+
+    public String getPost()
+    {
+        return post;
+    }
+    public void setIdtype(String idtype)
+    {
+        this.idtype = idtype;
+    }
+
+    public String getIdtype()
+    {
+        return idtype;
+    }
+    public void setCrackingIdnum(String crackingIdnum) { this.crackingIdnum = crackingIdnum; }
+
+    public String getCrackingIdnum() { return crackingIdnum; }
+    public void setBoiler(String boiler)
+    {
+        this.boiler = boiler;
+    }
+
+    public String getBoiler()
+    {
+        return boiler;
+    }
+    public void setCracking(String cracking)
+    {
+        this.cracking = cracking;
+    }
+
+    public String getCracking()
+    {
+        return cracking;
+    }
+    public void setHotarea(String hotarea)
+    {
+        this.hotarea = hotarea;
+    }
+
+    public String getHotarea()
+    {
+        return hotarea;
+    }
+    public void setColdarea(String coldarea)
+    {
+        this.coldarea = coldarea;
+    }
+
+    public String getColdarea()
+    {
+        return coldarea;
+    }
+    public void setAromatic(String aromatic)
+    {
+        this.aromatic = aromatic;
+    }
+
+    public String getAromatic()
+    {
+        return aromatic;
+    }
+    public void setRecertificatedate(Date recertificatedate)
+    {
+        this.recertificatedate = recertificatedate;
+    }
+
+    public Date getRecertificatedate()
+    {
+        return recertificatedate;
+    }
+    public void setValidity(Date validity)
+    {
+        this.validity = validity;
+    }
+
+    public Date getValidity()
+    {
+        return validity;
+    }
+    public void setDelFlag(Long delFlag)
+    {
+        this.delFlag = delFlag;
+    }
+
+    public Long getDelFlag()
+    {
+        return delFlag;
+    }
+    public void setCreaterCode(String createrCode)
+    {
+        this.createrCode = createrCode;
+    }
+
+    public String getCreaterCode()
+    {
+        return createrCode;
+    }
+    public void setCreatedate(Date createdate)
+    {
+        this.createdate = createdate;
+    }
+
+    public Date getCreatedate()
+    {
+        return createdate;
+    }
+    public void setUpdaterCode(String updaterCode)
+    {
+        this.updaterCode = updaterCode;
+    }
+
+    public String getUpdaterCode()
+    {
+        return updaterCode;
+    }
+    public void setUpdatedate(Date updatedate)
+    {
+        this.updatedate = updatedate;
+    }
+
+    public Date getUpdatedate()
+    {
+        return updatedate;
+    }
+    public void setRemarks(String remarks)
+    {
+        this.remarks = remarks;
+    }
+
+    public String getRemarks()
+    {
+        return remarks;
+    }
+    public void setDeptId(Long deptId)
+    {
+        this.deptId = deptId;
+    }
+
+    public Long getDeptId()
+    {
+        return deptId;
+    }
+    public void setDeptName(String deptName)
+    {
+        this.deptName = deptName;
+    }
+
+    public String getDeptName()
+    {
+        return deptName;
+    }
+    public void setSeparationIdnum(String separationIdnum) { this.separationIdnum = separationIdnum; }
+
+    public String getSeparationIdnum() { return separationIdnum; }
+    public void setCompressionIdnum(String compressionIdnum) { this.compressionIdnum = compressionIdnum; }
+
+    public String getCompressionIdnum() { return compressionIdnum; }
+    public void setPguaeuIdnum(String pguaeuIdnum) { this.pguaeuIdnum = pguaeuIdnum; }
+
+    public String getPguaeuIdnum() { return pguaeuIdnum; }
+    public void setSeparationDate(Date separationDate) { this.separationDate = separationDate; }
+
+    public Date getSeparationDate() { return separationDate; }
+    public void setCompressionDate(Date compressionDate) { this.compressionDate = compressionDate; }
+
+    public Date getCompressionDate() { return compressionDate; }
+    public void setPguaeuDate(Date pguaeuDate) { this.pguaeuDate = pguaeuDate; }
+
+    public Date getPguaeuDate() { return pguaeuDate; }
+    public void setCrackingDate(Date crackingDate) { this.crackingDate = crackingDate; }
+
+    public Date getCrackingDate() { return crackingDate; }
+    public String getNotHave() { return notHave; }
+
+    public void setNotHave(String notHave) { this.notHave = notHave; }
+    public String getExpiring() { return expiring; }
+
+    public void setExpiring(String expiring) { this.expiring = expiring; }
+    public Date getExpiringDate() { return expiringDate; }
+
+    public void setExpiringDate(Date expiringDate) { this.expiringDate = expiringDate; }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+                .append("id", getId())
+                .append("plantCode", getPlantCode())
+                .append("name", getName())
+                .append("employeeid", getEmployeeid())
+                .append("classes", getClasses())
+                .append("post", getPost())
+                .append("idtype", getIdtype())
+                .append("crackingIdnum", getCrackingIdnum())
+                .append("boiler", getBoiler())
+                .append("cracking", getCracking())
+                .append("hotarea", getHotarea())
+                .append("coldarea", getColdarea())
+                .append("aromatic", getAromatic())
+                .append("recertificatedate", getRecertificatedate())
+                .append("validity", getValidity())
+                .append("delFlag", getDelFlag())
+                .append("createrCode", getCreaterCode())
+                .append("createdate", getCreatedate())
+                .append("updaterCode", getUpdaterCode())
+                .append("updatedate", getUpdatedate())
+                .append("remarks", getRemarks())
+                .append("deptId", getDeptId())
+                .append("separationIdnum", getSeparationIdnum())
+                .append("compressionIdnum", getCompressionIdnum())
+                .append("pguaeuIdnum", getPguaeuIdnum())
+                .append("separationDate", getSeparationDate())
+                .append("compressionDate", getCompressionDate())
+                .append("pguaeuDate", getPguaeuDate())
+                .append("crackingDate", getCrackingDate())
+                .toString();
+    }
+}

+ 7 - 0
ui/src/api/training/worklicense.js

@@ -74,3 +74,10 @@ export function exportWorklicense(query) {
     params: query
     params: query
   })
   })
 }
 }
+export function exportByxWorklicense(query) {
+  return request({
+    url: '/training/worklicense/exportByx',
+    method: 'get',
+    params: query
+  })
+}

+ 10 - 2
ui/src/views/training/byxWorklicense/index.vue

@@ -406,7 +406,15 @@
 </template>
 </template>
 
 
 <script>
 <script>
-import { listWorklicense, getWorklicense, delWorklicense, addWorklicense, updateWorklicense, exportWorklicense } from "@/api/training/worklicense";
+import {
+  listWorklicense,
+  getWorklicense,
+  delWorklicense,
+  addWorklicense,
+  updateWorklicense,
+  exportWorklicense,
+  exportByxWorklicense
+} from "@/api/training/worklicense";
 import { treeselect } from "@/api/system/dept";
 import { treeselect } from "@/api/system/dept";
 import { getToken } from "@/utils/auth";
 import { getToken } from "@/utils/auth";
 import Treeselect from "@riophae/vue-treeselect";
 import Treeselect from "@riophae/vue-treeselect";
@@ -753,7 +761,7 @@ export default {
           cancelButtonText: this.$t('取消'),
           cancelButtonText: this.$t('取消'),
           type: "warning"
           type: "warning"
         }).then(function() {
         }).then(function() {
-          return exportWorklicense(queryParams);
+          return exportByxWorklicense(queryParams);
         }).then(response => {
         }).then(response => {
           this.download(response.msg);
           this.download(response.msg);
         })
         })