Compare commits
2 Commits
849401501a
...
cee68db1d3
Author | SHA1 | Date |
---|---|---|
|
cee68db1d3 | |
|
5b28d1cbea |
|
@ -1 +1 @@
|
|||
java -Dfile.encoding=utf-8 -Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m -jar ruoyi-modules/ruoyi-gen/target/yanzhu-modules-gen.jar
|
||||
java -Dfile.encoding=utf-8 -Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m -jar yanzhu-modules/yanzhu-gen/target/yanzhu-modules-gen.jar
|
||||
|
|
|
@ -0,0 +1,108 @@
|
|||
package com.yanzhu.manage.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 隐患流程信息对象 smz_ssp_auditinfo
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
public class SmzSspAuditinfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 问题整改质量留痕id */
|
||||
@Excel(name = "问题整改质量留痕id")
|
||||
private Long mainId;
|
||||
|
||||
/** 流程状态(0待审,1通过,2驳回) */
|
||||
@Excel(name = "流程状态(0待审,1通过,2驳回)")
|
||||
private String processState;
|
||||
|
||||
/** 意见 */
|
||||
@Excel(name = "意见")
|
||||
private String opinion;
|
||||
|
||||
/** 删除状态(0未删除,1已删除) */
|
||||
@Excel(name = "删除状态(0未删除,1已删除)")
|
||||
private Long isDel;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String createUser;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setMainId(Long mainId)
|
||||
{
|
||||
this.mainId = mainId;
|
||||
}
|
||||
|
||||
public Long getMainId()
|
||||
{
|
||||
return mainId;
|
||||
}
|
||||
public void setProcessState(String processState)
|
||||
{
|
||||
this.processState = processState;
|
||||
}
|
||||
|
||||
public String getProcessState()
|
||||
{
|
||||
return processState;
|
||||
}
|
||||
public void setOpinion(String opinion)
|
||||
{
|
||||
this.opinion = opinion;
|
||||
}
|
||||
|
||||
public String getOpinion()
|
||||
{
|
||||
return opinion;
|
||||
}
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
public void setCreateUser(String createUser)
|
||||
{
|
||||
this.createUser = createUser;
|
||||
}
|
||||
|
||||
public String getCreateUser()
|
||||
{
|
||||
return createUser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("mainId", getMainId())
|
||||
.append("processState", getProcessState())
|
||||
.append("opinion", getOpinion())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createUser", getCreateUser())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,122 @@
|
|||
package com.yanzhu.manage.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
/**
|
||||
* 隐患文件信息对象 smz_ssp_fileinfo
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
public class SmzSspFileinfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 审核表id */
|
||||
@Excel(name = "审核表id")
|
||||
private Long auditId;
|
||||
|
||||
/** 文件类型(0图片,1视频) */
|
||||
@Excel(name = "文件类型", readConverterExp = "0=图片,1视频")
|
||||
private Long fileType;
|
||||
|
||||
/** 文件的url */
|
||||
@Excel(name = "文件的url")
|
||||
private String fileUrl;
|
||||
|
||||
/** 删除状态(0未删除,1已删除) */
|
||||
@Excel(name = "删除状态", readConverterExp = "0=未删除,1已删除")
|
||||
private Long isDel;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String createUser;
|
||||
|
||||
/** 修改人 */
|
||||
@Excel(name = "修改人")
|
||||
private String updateUser;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setAuditId(Long auditId)
|
||||
{
|
||||
this.auditId = auditId;
|
||||
}
|
||||
|
||||
public Long getAuditId()
|
||||
{
|
||||
return auditId;
|
||||
}
|
||||
public void setFileType(Long fileType)
|
||||
{
|
||||
this.fileType = fileType;
|
||||
}
|
||||
|
||||
public Long getFileType()
|
||||
{
|
||||
return fileType;
|
||||
}
|
||||
public void setFileUrl(String fileUrl)
|
||||
{
|
||||
this.fileUrl = fileUrl;
|
||||
}
|
||||
|
||||
public String getFileUrl()
|
||||
{
|
||||
return fileUrl;
|
||||
}
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
public void setCreateUser(String createUser)
|
||||
{
|
||||
this.createUser = createUser;
|
||||
}
|
||||
|
||||
public String getCreateUser()
|
||||
{
|
||||
return createUser;
|
||||
}
|
||||
public void setUpdateUser(String updateUser)
|
||||
{
|
||||
this.updateUser = updateUser;
|
||||
}
|
||||
|
||||
public String getUpdateUser()
|
||||
{
|
||||
return updateUser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("auditId", getAuditId())
|
||||
.append("fileType", getFileType())
|
||||
.append("fileUrl", getFileUrl())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createUser", getCreateUser())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateUser", getUpdateUser())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,476 @@
|
|||
package com.yanzhu.manage.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 安全隐患整改对象 smz_ssp_problemmodify
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
public class SmzSspProblemmodify extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 租户ID */
|
||||
@Excel(name = "租户ID")
|
||||
private Long comId;
|
||||
|
||||
/** 项目id */
|
||||
@Excel(name = "项目id")
|
||||
private Long projectId;
|
||||
|
||||
/** 信息类型(0安全,1质量) */
|
||||
@Excel(name = "信息类型", readConverterExp = "0=安全,1质量")
|
||||
private Long infoType;
|
||||
|
||||
/** 留痕图片 */
|
||||
@Excel(name = "留痕图片")
|
||||
private String marksPicture;
|
||||
|
||||
/** 留痕视频 */
|
||||
@Excel(name = "留痕视频")
|
||||
private String marksVideo;
|
||||
|
||||
/** 整改图片 */
|
||||
@Excel(name = "整改图片")
|
||||
private String correctionPicture;
|
||||
|
||||
/** 拍摄位置 */
|
||||
@Excel(name = "拍摄位置")
|
||||
private String problemArea;
|
||||
|
||||
/** 施工部位 */
|
||||
@Excel(name = "施工部位")
|
||||
private String workParts;
|
||||
|
||||
/** 整改要求 */
|
||||
@Excel(name = "整改要求")
|
||||
private String changeInfo;
|
||||
|
||||
/** 主送人姓名 */
|
||||
@Excel(name = "主送人姓名")
|
||||
private String lordSent;
|
||||
|
||||
/** 主送人手机号 */
|
||||
@Excel(name = "主送人手机号")
|
||||
private String lordSentUser;
|
||||
|
||||
/** 抄送人姓名 */
|
||||
@Excel(name = "抄送人姓名")
|
||||
private String copySend;
|
||||
|
||||
/** 抄送人手机号 */
|
||||
@Excel(name = "抄送人手机号")
|
||||
private String copySendUser;
|
||||
|
||||
/** 流程状态(0待整改,1待复检,3复检驳回,4复检通过) */
|
||||
@Excel(name = "流程状态", readConverterExp = "0=待整改,1待复检,3复检驳回,4复检通过")
|
||||
private Long checkState;
|
||||
|
||||
/** 整改定位 */
|
||||
@Excel(name = "整改定位")
|
||||
private String nickedArea;
|
||||
|
||||
/** 整改截至时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "整改截至时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date nickedTime;
|
||||
|
||||
/** 工程类型 */
|
||||
@Excel(name = "工程类型")
|
||||
private String projectType;
|
||||
|
||||
/** 工序名称 */
|
||||
@Excel(name = "工序名称")
|
||||
private String processName;
|
||||
|
||||
/** 工程名称 */
|
||||
@Excel(name = "工程名称")
|
||||
private String projectName;
|
||||
|
||||
/** 留痕说明 */
|
||||
@Excel(name = "留痕说明")
|
||||
private String nickedInfo;
|
||||
|
||||
/** 审核人 */
|
||||
@Excel(name = "审核人")
|
||||
private String checkUser;
|
||||
|
||||
/** 审核人手机号 */
|
||||
@Excel(name = "审核人手机号")
|
||||
private String checkUserPhone;
|
||||
|
||||
/** 智能公司展示的图片url */
|
||||
@Excel(name = "智能公司展示的图片url")
|
||||
private String smarkUrl;
|
||||
|
||||
/** 删除状态(0未删除,1已删除) */
|
||||
@Excel(name = "删除状态", readConverterExp = "0=未删除,1已删除")
|
||||
private Long isDel;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String createUser;
|
||||
|
||||
/** 修改人 */
|
||||
@Excel(name = "修改人")
|
||||
private String updateUser;
|
||||
|
||||
/** 隐患类型 */
|
||||
@Excel(name = "隐患类型")
|
||||
private String dangerType;
|
||||
|
||||
/** 复检人 */
|
||||
@Excel(name = "复检人")
|
||||
private String recheckSend;
|
||||
|
||||
/** 复检人手机号 */
|
||||
@Excel(name = "复检人手机号")
|
||||
private String recheckSendUser;
|
||||
|
||||
/** 角色类型 */
|
||||
@Excel(name = "角色类型")
|
||||
private Long roleType;
|
||||
|
||||
/** 问题类型(1常规问题,2专项问题) */
|
||||
@Excel(name = "问题类型", readConverterExp = "1=常规问题,2专项问题")
|
||||
private String problemType;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setComId(Long comId)
|
||||
{
|
||||
this.comId = comId;
|
||||
}
|
||||
|
||||
public Long getComId()
|
||||
{
|
||||
return comId;
|
||||
}
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
public void setInfoType(Long infoType)
|
||||
{
|
||||
this.infoType = infoType;
|
||||
}
|
||||
|
||||
public Long getInfoType()
|
||||
{
|
||||
return infoType;
|
||||
}
|
||||
public void setMarksPicture(String marksPicture)
|
||||
{
|
||||
this.marksPicture = marksPicture;
|
||||
}
|
||||
|
||||
public String getMarksPicture()
|
||||
{
|
||||
return marksPicture;
|
||||
}
|
||||
public void setMarksVideo(String marksVideo)
|
||||
{
|
||||
this.marksVideo = marksVideo;
|
||||
}
|
||||
|
||||
public String getMarksVideo()
|
||||
{
|
||||
return marksVideo;
|
||||
}
|
||||
public void setCorrectionPicture(String correctionPicture)
|
||||
{
|
||||
this.correctionPicture = correctionPicture;
|
||||
}
|
||||
|
||||
public String getCorrectionPicture()
|
||||
{
|
||||
return correctionPicture;
|
||||
}
|
||||
public void setProblemArea(String problemArea)
|
||||
{
|
||||
this.problemArea = problemArea;
|
||||
}
|
||||
|
||||
public String getProblemArea()
|
||||
{
|
||||
return problemArea;
|
||||
}
|
||||
public void setWorkParts(String workParts)
|
||||
{
|
||||
this.workParts = workParts;
|
||||
}
|
||||
|
||||
public String getWorkParts()
|
||||
{
|
||||
return workParts;
|
||||
}
|
||||
public void setChangeInfo(String changeInfo)
|
||||
{
|
||||
this.changeInfo = changeInfo;
|
||||
}
|
||||
|
||||
public String getChangeInfo()
|
||||
{
|
||||
return changeInfo;
|
||||
}
|
||||
public void setLordSent(String lordSent)
|
||||
{
|
||||
this.lordSent = lordSent;
|
||||
}
|
||||
|
||||
public String getLordSent()
|
||||
{
|
||||
return lordSent;
|
||||
}
|
||||
public void setLordSentUser(String lordSentUser)
|
||||
{
|
||||
this.lordSentUser = lordSentUser;
|
||||
}
|
||||
|
||||
public String getLordSentUser()
|
||||
{
|
||||
return lordSentUser;
|
||||
}
|
||||
public void setCopySend(String copySend)
|
||||
{
|
||||
this.copySend = copySend;
|
||||
}
|
||||
|
||||
public String getCopySend()
|
||||
{
|
||||
return copySend;
|
||||
}
|
||||
public void setCopySendUser(String copySendUser)
|
||||
{
|
||||
this.copySendUser = copySendUser;
|
||||
}
|
||||
|
||||
public String getCopySendUser()
|
||||
{
|
||||
return copySendUser;
|
||||
}
|
||||
public void setCheckState(Long checkState)
|
||||
{
|
||||
this.checkState = checkState;
|
||||
}
|
||||
|
||||
public Long getCheckState()
|
||||
{
|
||||
return checkState;
|
||||
}
|
||||
public void setNickedArea(String nickedArea)
|
||||
{
|
||||
this.nickedArea = nickedArea;
|
||||
}
|
||||
|
||||
public String getNickedArea()
|
||||
{
|
||||
return nickedArea;
|
||||
}
|
||||
public void setNickedTime(Date nickedTime)
|
||||
{
|
||||
this.nickedTime = nickedTime;
|
||||
}
|
||||
|
||||
public Date getNickedTime()
|
||||
{
|
||||
return nickedTime;
|
||||
}
|
||||
public void setProjectType(String projectType)
|
||||
{
|
||||
this.projectType = projectType;
|
||||
}
|
||||
|
||||
public String getProjectType()
|
||||
{
|
||||
return projectType;
|
||||
}
|
||||
public void setProcessName(String processName)
|
||||
{
|
||||
this.processName = processName;
|
||||
}
|
||||
|
||||
public String getProcessName()
|
||||
{
|
||||
return processName;
|
||||
}
|
||||
public void setProjectName(String projectName)
|
||||
{
|
||||
this.projectName = projectName;
|
||||
}
|
||||
|
||||
public String getProjectName()
|
||||
{
|
||||
return projectName;
|
||||
}
|
||||
public void setNickedInfo(String nickedInfo)
|
||||
{
|
||||
this.nickedInfo = nickedInfo;
|
||||
}
|
||||
|
||||
public String getNickedInfo()
|
||||
{
|
||||
return nickedInfo;
|
||||
}
|
||||
public void setCheckUser(String checkUser)
|
||||
{
|
||||
this.checkUser = checkUser;
|
||||
}
|
||||
|
||||
public String getCheckUser()
|
||||
{
|
||||
return checkUser;
|
||||
}
|
||||
public void setCheckUserPhone(String checkUserPhone)
|
||||
{
|
||||
this.checkUserPhone = checkUserPhone;
|
||||
}
|
||||
|
||||
public String getCheckUserPhone()
|
||||
{
|
||||
return checkUserPhone;
|
||||
}
|
||||
public void setSmarkUrl(String smarkUrl)
|
||||
{
|
||||
this.smarkUrl = smarkUrl;
|
||||
}
|
||||
|
||||
public String getSmarkUrl()
|
||||
{
|
||||
return smarkUrl;
|
||||
}
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
public void setCreateUser(String createUser)
|
||||
{
|
||||
this.createUser = createUser;
|
||||
}
|
||||
|
||||
public String getCreateUser()
|
||||
{
|
||||
return createUser;
|
||||
}
|
||||
public void setUpdateUser(String updateUser)
|
||||
{
|
||||
this.updateUser = updateUser;
|
||||
}
|
||||
|
||||
public String getUpdateUser()
|
||||
{
|
||||
return updateUser;
|
||||
}
|
||||
public void setDangerType(String dangerType)
|
||||
{
|
||||
this.dangerType = dangerType;
|
||||
}
|
||||
|
||||
public String getDangerType()
|
||||
{
|
||||
return dangerType;
|
||||
}
|
||||
public void setRecheckSend(String recheckSend)
|
||||
{
|
||||
this.recheckSend = recheckSend;
|
||||
}
|
||||
|
||||
public String getRecheckSend()
|
||||
{
|
||||
return recheckSend;
|
||||
}
|
||||
public void setRecheckSendUser(String recheckSendUser)
|
||||
{
|
||||
this.recheckSendUser = recheckSendUser;
|
||||
}
|
||||
|
||||
public String getRecheckSendUser()
|
||||
{
|
||||
return recheckSendUser;
|
||||
}
|
||||
public void setRoleType(Long roleType)
|
||||
{
|
||||
this.roleType = roleType;
|
||||
}
|
||||
|
||||
public Long getRoleType()
|
||||
{
|
||||
return roleType;
|
||||
}
|
||||
public void setProblemType(String problemType)
|
||||
{
|
||||
this.problemType = problemType;
|
||||
}
|
||||
|
||||
public String getProblemType()
|
||||
{
|
||||
return problemType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("comId", getComId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("infoType", getInfoType())
|
||||
.append("marksPicture", getMarksPicture())
|
||||
.append("marksVideo", getMarksVideo())
|
||||
.append("correctionPicture", getCorrectionPicture())
|
||||
.append("problemArea", getProblemArea())
|
||||
.append("workParts", getWorkParts())
|
||||
.append("changeInfo", getChangeInfo())
|
||||
.append("lordSent", getLordSent())
|
||||
.append("lordSentUser", getLordSentUser())
|
||||
.append("copySend", getCopySend())
|
||||
.append("copySendUser", getCopySendUser())
|
||||
.append("checkState", getCheckState())
|
||||
.append("nickedArea", getNickedArea())
|
||||
.append("nickedTime", getNickedTime())
|
||||
.append("projectType", getProjectType())
|
||||
.append("processName", getProcessName())
|
||||
.append("projectName", getProjectName())
|
||||
.append("nickedInfo", getNickedInfo())
|
||||
.append("checkUser", getCheckUser())
|
||||
.append("checkUserPhone", getCheckUserPhone())
|
||||
.append("smarkUrl", getSmarkUrl())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createUser", getCreateUser())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateUser", getUpdateUser())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("dangerType", getDangerType())
|
||||
.append("recheckSend", getRecheckSend())
|
||||
.append("recheckSendUser", getRecheckSendUser())
|
||||
.append("roleType", getRoleType())
|
||||
.append("problemType", getProblemType())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,462 @@
|
|||
package com.yanzhu.manage.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.yanzhu.common.core.annotation.Excel;
|
||||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 安全问题草稿对象 smz_ssp_problemmodify_draft
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
public class SmzSspProblemmodifyDraft extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 租户ID */
|
||||
@Excel(name = "租户ID")
|
||||
private Long comId;
|
||||
|
||||
/** 项目id */
|
||||
@Excel(name = "项目id")
|
||||
private Long projectId;
|
||||
|
||||
/** 信息类型(0安全,1质量) */
|
||||
@Excel(name = "信息类型", readConverterExp = "0=安全,1质量")
|
||||
private Long infoType;
|
||||
|
||||
/** 留痕图片 */
|
||||
@Excel(name = "留痕图片")
|
||||
private String marksPicture;
|
||||
|
||||
/** 留痕视频 */
|
||||
@Excel(name = "留痕视频")
|
||||
private String marksVideo;
|
||||
|
||||
/** 拍摄位置 */
|
||||
@Excel(name = "拍摄位置")
|
||||
private String problemArea;
|
||||
|
||||
/** 施工部位 */
|
||||
@Excel(name = "施工部位")
|
||||
private String workParts;
|
||||
|
||||
/** 整改要求 */
|
||||
@Excel(name = "整改要求")
|
||||
private String changeInfo;
|
||||
|
||||
/** 主送人姓名 */
|
||||
@Excel(name = "主送人姓名")
|
||||
private String lordSent;
|
||||
|
||||
/** 主送人手机号 */
|
||||
@Excel(name = "主送人手机号")
|
||||
private String lordSentUser;
|
||||
|
||||
/** 抄送人姓名 */
|
||||
@Excel(name = "抄送人姓名")
|
||||
private String copySend;
|
||||
|
||||
/** 抄送人手机号 */
|
||||
@Excel(name = "抄送人手机号")
|
||||
private String copySendUser;
|
||||
|
||||
/** 流程状态(0待整改,1待复检,3复检驳回,4复检通过) */
|
||||
@Excel(name = "流程状态", readConverterExp = "0=待整改,1待复检,3复检驳回,4复检通过")
|
||||
private Long checkState;
|
||||
|
||||
/** 整改定位 */
|
||||
@Excel(name = "整改定位")
|
||||
private String nickedArea;
|
||||
|
||||
/** 整改截至时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "整改截至时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date nickedTime;
|
||||
|
||||
/** 工程类型 */
|
||||
@Excel(name = "工程类型")
|
||||
private String projectType;
|
||||
|
||||
/** 工序名称 */
|
||||
@Excel(name = "工序名称")
|
||||
private String processName;
|
||||
|
||||
/** 工程名称 */
|
||||
@Excel(name = "工程名称")
|
||||
private String projectName;
|
||||
|
||||
/** 留痕说明 */
|
||||
@Excel(name = "留痕说明")
|
||||
private String nickedInfo;
|
||||
|
||||
/** 审核人 */
|
||||
@Excel(name = "审核人")
|
||||
private String checkUser;
|
||||
|
||||
/** 审核人手机号 */
|
||||
@Excel(name = "审核人手机号")
|
||||
private String checkUserPhone;
|
||||
|
||||
/** 智能公司展示的图片url */
|
||||
@Excel(name = "智能公司展示的图片url")
|
||||
private String smarkUrl;
|
||||
|
||||
/** 删除状态(0未删除,1已删除) */
|
||||
@Excel(name = "删除状态", readConverterExp = "0=未删除,1已删除")
|
||||
private Long isDel;
|
||||
|
||||
/** 创建人 */
|
||||
@Excel(name = "创建人")
|
||||
private String createUser;
|
||||
|
||||
/** 修改人 */
|
||||
@Excel(name = "修改人")
|
||||
private String updateUser;
|
||||
|
||||
/** 隐患类型 */
|
||||
@Excel(name = "隐患类型")
|
||||
private String dangerType;
|
||||
|
||||
/** 复检人 */
|
||||
@Excel(name = "复检人")
|
||||
private String recheckSend;
|
||||
|
||||
/** 复检人手机号 */
|
||||
@Excel(name = "复检人手机号")
|
||||
private String recheckSendUser;
|
||||
|
||||
/** 角色类型 */
|
||||
@Excel(name = "角色类型")
|
||||
private Long roleType;
|
||||
|
||||
/** 问题类型(1常规问题,2专项问题) */
|
||||
@Excel(name = "问题类型", readConverterExp = "1=常规问题,2专项问题")
|
||||
private String problemType;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setComId(Long comId)
|
||||
{
|
||||
this.comId = comId;
|
||||
}
|
||||
|
||||
public Long getComId()
|
||||
{
|
||||
return comId;
|
||||
}
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
public void setInfoType(Long infoType)
|
||||
{
|
||||
this.infoType = infoType;
|
||||
}
|
||||
|
||||
public Long getInfoType()
|
||||
{
|
||||
return infoType;
|
||||
}
|
||||
public void setMarksPicture(String marksPicture)
|
||||
{
|
||||
this.marksPicture = marksPicture;
|
||||
}
|
||||
|
||||
public String getMarksPicture()
|
||||
{
|
||||
return marksPicture;
|
||||
}
|
||||
public void setMarksVideo(String marksVideo)
|
||||
{
|
||||
this.marksVideo = marksVideo;
|
||||
}
|
||||
|
||||
public String getMarksVideo()
|
||||
{
|
||||
return marksVideo;
|
||||
}
|
||||
public void setProblemArea(String problemArea)
|
||||
{
|
||||
this.problemArea = problemArea;
|
||||
}
|
||||
|
||||
public String getProblemArea()
|
||||
{
|
||||
return problemArea;
|
||||
}
|
||||
public void setWorkParts(String workParts)
|
||||
{
|
||||
this.workParts = workParts;
|
||||
}
|
||||
|
||||
public String getWorkParts()
|
||||
{
|
||||
return workParts;
|
||||
}
|
||||
public void setChangeInfo(String changeInfo)
|
||||
{
|
||||
this.changeInfo = changeInfo;
|
||||
}
|
||||
|
||||
public String getChangeInfo()
|
||||
{
|
||||
return changeInfo;
|
||||
}
|
||||
public void setLordSent(String lordSent)
|
||||
{
|
||||
this.lordSent = lordSent;
|
||||
}
|
||||
|
||||
public String getLordSent()
|
||||
{
|
||||
return lordSent;
|
||||
}
|
||||
public void setLordSentUser(String lordSentUser)
|
||||
{
|
||||
this.lordSentUser = lordSentUser;
|
||||
}
|
||||
|
||||
public String getLordSentUser()
|
||||
{
|
||||
return lordSentUser;
|
||||
}
|
||||
public void setCopySend(String copySend)
|
||||
{
|
||||
this.copySend = copySend;
|
||||
}
|
||||
|
||||
public String getCopySend()
|
||||
{
|
||||
return copySend;
|
||||
}
|
||||
public void setCopySendUser(String copySendUser)
|
||||
{
|
||||
this.copySendUser = copySendUser;
|
||||
}
|
||||
|
||||
public String getCopySendUser()
|
||||
{
|
||||
return copySendUser;
|
||||
}
|
||||
public void setCheckState(Long checkState)
|
||||
{
|
||||
this.checkState = checkState;
|
||||
}
|
||||
|
||||
public Long getCheckState()
|
||||
{
|
||||
return checkState;
|
||||
}
|
||||
public void setNickedArea(String nickedArea)
|
||||
{
|
||||
this.nickedArea = nickedArea;
|
||||
}
|
||||
|
||||
public String getNickedArea()
|
||||
{
|
||||
return nickedArea;
|
||||
}
|
||||
public void setNickedTime(Date nickedTime)
|
||||
{
|
||||
this.nickedTime = nickedTime;
|
||||
}
|
||||
|
||||
public Date getNickedTime()
|
||||
{
|
||||
return nickedTime;
|
||||
}
|
||||
public void setProjectType(String projectType)
|
||||
{
|
||||
this.projectType = projectType;
|
||||
}
|
||||
|
||||
public String getProjectType()
|
||||
{
|
||||
return projectType;
|
||||
}
|
||||
public void setProcessName(String processName)
|
||||
{
|
||||
this.processName = processName;
|
||||
}
|
||||
|
||||
public String getProcessName()
|
||||
{
|
||||
return processName;
|
||||
}
|
||||
public void setProjectName(String projectName)
|
||||
{
|
||||
this.projectName = projectName;
|
||||
}
|
||||
|
||||
public String getProjectName()
|
||||
{
|
||||
return projectName;
|
||||
}
|
||||
public void setNickedInfo(String nickedInfo)
|
||||
{
|
||||
this.nickedInfo = nickedInfo;
|
||||
}
|
||||
|
||||
public String getNickedInfo()
|
||||
{
|
||||
return nickedInfo;
|
||||
}
|
||||
public void setCheckUser(String checkUser)
|
||||
{
|
||||
this.checkUser = checkUser;
|
||||
}
|
||||
|
||||
public String getCheckUser()
|
||||
{
|
||||
return checkUser;
|
||||
}
|
||||
public void setCheckUserPhone(String checkUserPhone)
|
||||
{
|
||||
this.checkUserPhone = checkUserPhone;
|
||||
}
|
||||
|
||||
public String getCheckUserPhone()
|
||||
{
|
||||
return checkUserPhone;
|
||||
}
|
||||
public void setSmarkUrl(String smarkUrl)
|
||||
{
|
||||
this.smarkUrl = smarkUrl;
|
||||
}
|
||||
|
||||
public String getSmarkUrl()
|
||||
{
|
||||
return smarkUrl;
|
||||
}
|
||||
public void setIsDel(Long isDel)
|
||||
{
|
||||
this.isDel = isDel;
|
||||
}
|
||||
|
||||
public Long getIsDel()
|
||||
{
|
||||
return isDel;
|
||||
}
|
||||
public void setCreateUser(String createUser)
|
||||
{
|
||||
this.createUser = createUser;
|
||||
}
|
||||
|
||||
public String getCreateUser()
|
||||
{
|
||||
return createUser;
|
||||
}
|
||||
public void setUpdateUser(String updateUser)
|
||||
{
|
||||
this.updateUser = updateUser;
|
||||
}
|
||||
|
||||
public String getUpdateUser()
|
||||
{
|
||||
return updateUser;
|
||||
}
|
||||
public void setDangerType(String dangerType)
|
||||
{
|
||||
this.dangerType = dangerType;
|
||||
}
|
||||
|
||||
public String getDangerType()
|
||||
{
|
||||
return dangerType;
|
||||
}
|
||||
public void setRecheckSend(String recheckSend)
|
||||
{
|
||||
this.recheckSend = recheckSend;
|
||||
}
|
||||
|
||||
public String getRecheckSend()
|
||||
{
|
||||
return recheckSend;
|
||||
}
|
||||
public void setRecheckSendUser(String recheckSendUser)
|
||||
{
|
||||
this.recheckSendUser = recheckSendUser;
|
||||
}
|
||||
|
||||
public String getRecheckSendUser()
|
||||
{
|
||||
return recheckSendUser;
|
||||
}
|
||||
public void setRoleType(Long roleType)
|
||||
{
|
||||
this.roleType = roleType;
|
||||
}
|
||||
|
||||
public Long getRoleType()
|
||||
{
|
||||
return roleType;
|
||||
}
|
||||
public void setProblemType(String problemType)
|
||||
{
|
||||
this.problemType = problemType;
|
||||
}
|
||||
|
||||
public String getProblemType()
|
||||
{
|
||||
return problemType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("comId", getComId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("infoType", getInfoType())
|
||||
.append("marksPicture", getMarksPicture())
|
||||
.append("marksVideo", getMarksVideo())
|
||||
.append("problemArea", getProblemArea())
|
||||
.append("workParts", getWorkParts())
|
||||
.append("changeInfo", getChangeInfo())
|
||||
.append("lordSent", getLordSent())
|
||||
.append("lordSentUser", getLordSentUser())
|
||||
.append("copySend", getCopySend())
|
||||
.append("copySendUser", getCopySendUser())
|
||||
.append("checkState", getCheckState())
|
||||
.append("nickedArea", getNickedArea())
|
||||
.append("nickedTime", getNickedTime())
|
||||
.append("projectType", getProjectType())
|
||||
.append("processName", getProcessName())
|
||||
.append("projectName", getProjectName())
|
||||
.append("nickedInfo", getNickedInfo())
|
||||
.append("checkUser", getCheckUser())
|
||||
.append("checkUserPhone", getCheckUserPhone())
|
||||
.append("smarkUrl", getSmarkUrl())
|
||||
.append("isDel", getIsDel())
|
||||
.append("createUser", getCreateUser())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateUser", getUpdateUser())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("dangerType", getDangerType())
|
||||
.append("recheckSend", getRecheckSend())
|
||||
.append("recheckSendUser", getRecheckSendUser())
|
||||
.append("roleType", getRoleType())
|
||||
.append("problemType", getProblemType())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SmzSspAuditinfo;
|
||||
|
||||
/**
|
||||
* 隐患流程信息Mapper接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
public interface SmzSspAuditinfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询隐患流程信息
|
||||
*
|
||||
* @param id 隐患流程信息主键
|
||||
* @return 隐患流程信息
|
||||
*/
|
||||
public SmzSspAuditinfo selectSmzSspAuditinfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询隐患流程信息列表
|
||||
*
|
||||
* @param smzSspAuditinfo 隐患流程信息
|
||||
* @return 隐患流程信息集合
|
||||
*/
|
||||
public List<SmzSspAuditinfo> selectSmzSspAuditinfoList(SmzSspAuditinfo smzSspAuditinfo);
|
||||
|
||||
/**
|
||||
* 新增隐患流程信息
|
||||
*
|
||||
* @param smzSspAuditinfo 隐患流程信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSmzSspAuditinfo(SmzSspAuditinfo smzSspAuditinfo);
|
||||
|
||||
/**
|
||||
* 修改隐患流程信息
|
||||
*
|
||||
* @param smzSspAuditinfo 隐患流程信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSmzSspAuditinfo(SmzSspAuditinfo smzSspAuditinfo);
|
||||
|
||||
/**
|
||||
* 删除隐患流程信息
|
||||
*
|
||||
* @param id 隐患流程信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSmzSspAuditinfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除隐患流程信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSmzSspAuditinfoByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SmzSspFileinfo;
|
||||
|
||||
/**
|
||||
* 隐患文件信息Mapper接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
public interface SmzSspFileinfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询隐患文件信息
|
||||
*
|
||||
* @param id 隐患文件信息主键
|
||||
* @return 隐患文件信息
|
||||
*/
|
||||
public SmzSspFileinfo selectSmzSspFileinfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询隐患文件信息列表
|
||||
*
|
||||
* @param smzSspFileinfo 隐患文件信息
|
||||
* @return 隐患文件信息集合
|
||||
*/
|
||||
public List<SmzSspFileinfo> selectSmzSspFileinfoList(SmzSspFileinfo smzSspFileinfo);
|
||||
|
||||
/**
|
||||
* 新增隐患文件信息
|
||||
*
|
||||
* @param smzSspFileinfo 隐患文件信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSmzSspFileinfo(SmzSspFileinfo smzSspFileinfo);
|
||||
|
||||
/**
|
||||
* 修改隐患文件信息
|
||||
*
|
||||
* @param smzSspFileinfo 隐患文件信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSmzSspFileinfo(SmzSspFileinfo smzSspFileinfo);
|
||||
|
||||
/**
|
||||
* 删除隐患文件信息
|
||||
*
|
||||
* @param id 隐患文件信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSmzSspFileinfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除隐患文件信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSmzSspFileinfoByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SmzSspProblemmodifyDraft;
|
||||
|
||||
/**
|
||||
* 安全问题草稿Mapper接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
public interface SmzSspProblemmodifyDraftMapper
|
||||
{
|
||||
/**
|
||||
* 查询安全问题草稿
|
||||
*
|
||||
* @param id 安全问题草稿主键
|
||||
* @return 安全问题草稿
|
||||
*/
|
||||
public SmzSspProblemmodifyDraft selectSmzSspProblemmodifyDraftById(Long id);
|
||||
|
||||
/**
|
||||
* 查询安全问题草稿列表
|
||||
*
|
||||
* @param smzSspProblemmodifyDraft 安全问题草稿
|
||||
* @return 安全问题草稿集合
|
||||
*/
|
||||
public List<SmzSspProblemmodifyDraft> selectSmzSspProblemmodifyDraftList(SmzSspProblemmodifyDraft smzSspProblemmodifyDraft);
|
||||
|
||||
/**
|
||||
* 新增安全问题草稿
|
||||
*
|
||||
* @param smzSspProblemmodifyDraft 安全问题草稿
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSmzSspProblemmodifyDraft(SmzSspProblemmodifyDraft smzSspProblemmodifyDraft);
|
||||
|
||||
/**
|
||||
* 修改安全问题草稿
|
||||
*
|
||||
* @param smzSspProblemmodifyDraft 安全问题草稿
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSmzSspProblemmodifyDraft(SmzSspProblemmodifyDraft smzSspProblemmodifyDraft);
|
||||
|
||||
/**
|
||||
* 删除安全问题草稿
|
||||
*
|
||||
* @param id 安全问题草稿主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSmzSspProblemmodifyDraftById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除安全问题草稿
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSmzSspProblemmodifyDraftByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SmzSspProblemmodify;
|
||||
|
||||
/**
|
||||
* 安全隐患整改Mapper接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
public interface SmzSspProblemmodifyMapper
|
||||
{
|
||||
/**
|
||||
* 查询安全隐患整改
|
||||
*
|
||||
* @param id 安全隐患整改主键
|
||||
* @return 安全隐患整改
|
||||
*/
|
||||
public SmzSspProblemmodify selectSmzSspProblemmodifyById(Long id);
|
||||
|
||||
/**
|
||||
* 查询安全隐患整改列表
|
||||
*
|
||||
* @param smzSspProblemmodify 安全隐患整改
|
||||
* @return 安全隐患整改集合
|
||||
*/
|
||||
public List<SmzSspProblemmodify> selectSmzSspProblemmodifyList(SmzSspProblemmodify smzSspProblemmodify);
|
||||
|
||||
/**
|
||||
* 新增安全隐患整改
|
||||
*
|
||||
* @param smzSspProblemmodify 安全隐患整改
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSmzSspProblemmodify(SmzSspProblemmodify smzSspProblemmodify);
|
||||
|
||||
/**
|
||||
* 修改安全隐患整改
|
||||
*
|
||||
* @param smzSspProblemmodify 安全隐患整改
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSmzSspProblemmodify(SmzSspProblemmodify smzSspProblemmodify);
|
||||
|
||||
/**
|
||||
* 删除安全隐患整改
|
||||
*
|
||||
* @param id 安全隐患整改主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSmzSspProblemmodifyById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除安全隐患整改
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSmzSspProblemmodifyByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,81 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yanzhu.manage.mapper.SmzSspAuditinfoMapper">
|
||||
|
||||
<resultMap type="SmzSspAuditinfo" id="SmzSspAuditinfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="mainId" column="mainId" />
|
||||
<result property="processState" column="processState" />
|
||||
<result property="opinion" column="opinion" />
|
||||
<result property="isDel" column="isDel" />
|
||||
<result property="createUser" column="createUser" />
|
||||
<result property="createTime" column="createTime" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSmzSspAuditinfoVo">
|
||||
select id, mainId, processState, opinion, isDel, createUser, createTime from smz_ssp_auditinfo
|
||||
</sql>
|
||||
|
||||
<select id="selectSmzSspAuditinfoList" parameterType="SmzSspAuditinfo" resultMap="SmzSspAuditinfoResult">
|
||||
<include refid="selectSmzSspAuditinfoVo"/>
|
||||
<where>
|
||||
<if test="mainId != null "> and mainId = #{mainId}</if>
|
||||
<if test="processState != null and processState != ''"> and processState = #{processState}</if>
|
||||
<if test="opinion != null and opinion != ''"> and opinion = #{opinion}</if>
|
||||
<if test="isDel != null "> and isDel = #{isDel}</if>
|
||||
<if test="createUser != null and createUser != ''"> and createUser = #{createUser}</if>
|
||||
<if test="createTime != null "> and createTime = #{createTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSmzSspAuditinfoById" parameterType="Long" resultMap="SmzSspAuditinfoResult">
|
||||
<include refid="selectSmzSspAuditinfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSmzSspAuditinfo" parameterType="SmzSspAuditinfo" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into smz_ssp_auditinfo
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="mainId != null">mainId,</if>
|
||||
<if test="processState != null">processState,</if>
|
||||
<if test="opinion != null">opinion,</if>
|
||||
<if test="isDel != null">isDel,</if>
|
||||
<if test="createUser != null">createUser,</if>
|
||||
<if test="createTime != null">createTime,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="mainId != null">#{mainId},</if>
|
||||
<if test="processState != null">#{processState},</if>
|
||||
<if test="opinion != null">#{opinion},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createUser != null">#{createUser},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSmzSspAuditinfo" parameterType="SmzSspAuditinfo">
|
||||
update smz_ssp_auditinfo
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="mainId != null">mainId = #{mainId},</if>
|
||||
<if test="processState != null">processState = #{processState},</if>
|
||||
<if test="opinion != null">opinion = #{opinion},</if>
|
||||
<if test="isDel != null">isDel = #{isDel},</if>
|
||||
<if test="createUser != null">createUser = #{createUser},</if>
|
||||
<if test="createTime != null">createTime = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSmzSspAuditinfoById" parameterType="Long">
|
||||
delete from smz_ssp_auditinfo where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSmzSspAuditinfoByIds" parameterType="String">
|
||||
delete from smz_ssp_auditinfo where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -0,0 +1,91 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yanzhu.manage.mapper.SmzSspFileinfoMapper">
|
||||
|
||||
<resultMap type="SmzSspFileinfo" id="SmzSspFileinfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="auditId" column="auditId" />
|
||||
<result property="fileType" column="fileType" />
|
||||
<result property="fileUrl" column="fileUrl" />
|
||||
<result property="isDel" column="isDel" />
|
||||
<result property="createUser" column="createUser" />
|
||||
<result property="createTime" column="createTime" />
|
||||
<result property="updateUser" column="updateUser" />
|
||||
<result property="updateTime" column="updateTime" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSmzSspFileinfoVo">
|
||||
select id, auditId, fileType, fileUrl, isDel, createUser, createTime, updateUser, updateTime from smz_ssp_fileinfo
|
||||
</sql>
|
||||
|
||||
<select id="selectSmzSspFileinfoList" parameterType="SmzSspFileinfo" resultMap="SmzSspFileinfoResult">
|
||||
<include refid="selectSmzSspFileinfoVo"/>
|
||||
<where>
|
||||
<if test="auditId != null "> and auditId = #{auditId}</if>
|
||||
<if test="fileType != null "> and fileType = #{fileType}</if>
|
||||
<if test="fileUrl != null and fileUrl != ''"> and fileUrl = #{fileUrl}</if>
|
||||
<if test="isDel != null "> and isDel = #{isDel}</if>
|
||||
<if test="createUser != null and createUser != ''"> and createUser = #{createUser}</if>
|
||||
<if test="createTime != null "> and createTime = #{createTime}</if>
|
||||
<if test="updateUser != null and updateUser != ''"> and updateUser = #{updateUser}</if>
|
||||
<if test="updateTime != null "> and updateTime = #{updateTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSmzSspFileinfoById" parameterType="Long" resultMap="SmzSspFileinfoResult">
|
||||
<include refid="selectSmzSspFileinfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSmzSspFileinfo" parameterType="SmzSspFileinfo" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into smz_ssp_fileinfo
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="auditId != null">auditId,</if>
|
||||
<if test="fileType != null">fileType,</if>
|
||||
<if test="fileUrl != null">fileUrl,</if>
|
||||
<if test="isDel != null">isDel,</if>
|
||||
<if test="createUser != null">createUser,</if>
|
||||
<if test="createTime != null">createTime,</if>
|
||||
<if test="updateUser != null">updateUser,</if>
|
||||
<if test="updateTime != null">updateTime,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="auditId != null">#{auditId},</if>
|
||||
<if test="fileType != null">#{fileType},</if>
|
||||
<if test="fileUrl != null">#{fileUrl},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createUser != null">#{createUser},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateUser != null">#{updateUser},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSmzSspFileinfo" parameterType="SmzSspFileinfo">
|
||||
update smz_ssp_fileinfo
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="auditId != null">auditId = #{auditId},</if>
|
||||
<if test="fileType != null">fileType = #{fileType},</if>
|
||||
<if test="fileUrl != null">fileUrl = #{fileUrl},</if>
|
||||
<if test="isDel != null">isDel = #{isDel},</if>
|
||||
<if test="createUser != null">createUser = #{createUser},</if>
|
||||
<if test="createTime != null">createTime = #{createTime},</if>
|
||||
<if test="updateUser != null">updateUser = #{updateUser},</if>
|
||||
<if test="updateTime != null">updateTime = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSmzSspFileinfoById" parameterType="Long">
|
||||
delete from smz_ssp_fileinfo where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSmzSspFileinfoByIds" parameterType="String">
|
||||
delete from smz_ssp_fileinfo where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -0,0 +1,211 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yanzhu.manage.mapper.SmzSspProblemmodifyDraftMapper">
|
||||
|
||||
<resultMap type="SmzSspProblemmodifyDraft" id="SmzSspProblemmodifyDraftResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="comId" column="comId" />
|
||||
<result property="projectId" column="projectId" />
|
||||
<result property="infoType" column="infoType" />
|
||||
<result property="marksPicture" column="marks_picture" />
|
||||
<result property="marksVideo" column="marks_video" />
|
||||
<result property="problemArea" column="problemArea" />
|
||||
<result property="workParts" column="workParts" />
|
||||
<result property="changeInfo" column="changeInfo" />
|
||||
<result property="lordSent" column="lordSent" />
|
||||
<result property="lordSentUser" column="lordSentUser" />
|
||||
<result property="copySend" column="copySend" />
|
||||
<result property="copySendUser" column="copySendUser" />
|
||||
<result property="checkState" column="checkState" />
|
||||
<result property="nickedArea" column="nickedArea" />
|
||||
<result property="nickedTime" column="nickedTime" />
|
||||
<result property="projectType" column="projectType" />
|
||||
<result property="processName" column="processName" />
|
||||
<result property="projectName" column="projectName" />
|
||||
<result property="nickedInfo" column="nickedInfo" />
|
||||
<result property="checkUser" column="checkUser" />
|
||||
<result property="checkUserPhone" column="checkUserPhone" />
|
||||
<result property="smarkUrl" column="smark_url" />
|
||||
<result property="isDel" column="isDel" />
|
||||
<result property="createUser" column="createUser" />
|
||||
<result property="createTime" column="createTime" />
|
||||
<result property="updateUser" column="updateUser" />
|
||||
<result property="updateTime" column="updateTime" />
|
||||
<result property="dangerType" column="danger_type" />
|
||||
<result property="recheckSend" column="recheckSend" />
|
||||
<result property="recheckSendUser" column="recheckSendUser" />
|
||||
<result property="roleType" column="roleType" />
|
||||
<result property="problemType" column="problemType" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSmzSspProblemmodifyDraftVo">
|
||||
select id, comId, projectId, infoType, marks_picture, marks_video, problemArea, workParts, changeInfo, lordSent, lordSentUser, copySend, copySendUser, checkState, nickedArea, nickedTime, projectType, processName, projectName, nickedInfo, checkUser, checkUserPhone, smark_url, isDel, createUser, createTime, updateUser, updateTime, danger_type, recheckSend, recheckSendUser, roleType, problemType from smz_ssp_problemmodify_draft
|
||||
</sql>
|
||||
|
||||
<select id="selectSmzSspProblemmodifyDraftList" parameterType="SmzSspProblemmodifyDraft" resultMap="SmzSspProblemmodifyDraftResult">
|
||||
<include refid="selectSmzSspProblemmodifyDraftVo"/>
|
||||
<where>
|
||||
<if test="comId != null "> and comId = #{comId}</if>
|
||||
<if test="projectId != null "> and projectId = #{projectId}</if>
|
||||
<if test="infoType != null "> and infoType = #{infoType}</if>
|
||||
<if test="marksPicture != null and marksPicture != ''"> and marks_picture = #{marksPicture}</if>
|
||||
<if test="marksVideo != null and marksVideo != ''"> and marks_video = #{marksVideo}</if>
|
||||
<if test="problemArea != null and problemArea != ''"> and problemArea = #{problemArea}</if>
|
||||
<if test="workParts != null and workParts != ''"> and workParts = #{workParts}</if>
|
||||
<if test="changeInfo != null and changeInfo != ''"> and changeInfo = #{changeInfo}</if>
|
||||
<if test="lordSent != null and lordSent != ''"> and lordSent = #{lordSent}</if>
|
||||
<if test="lordSentUser != null and lordSentUser != ''"> and lordSentUser = #{lordSentUser}</if>
|
||||
<if test="copySend != null and copySend != ''"> and copySend = #{copySend}</if>
|
||||
<if test="copySendUser != null and copySendUser != ''"> and copySendUser = #{copySendUser}</if>
|
||||
<if test="checkState != null "> and checkState = #{checkState}</if>
|
||||
<if test="nickedArea != null and nickedArea != ''"> and nickedArea = #{nickedArea}</if>
|
||||
<if test="nickedTime != null "> and nickedTime = #{nickedTime}</if>
|
||||
<if test="projectType != null and projectType != ''"> and projectType = #{projectType}</if>
|
||||
<if test="processName != null and processName != ''"> and processName like concat('%', #{processName}, '%')</if>
|
||||
<if test="projectName != null and projectName != ''"> and projectName like concat('%', #{projectName}, '%')</if>
|
||||
<if test="nickedInfo != null and nickedInfo != ''"> and nickedInfo = #{nickedInfo}</if>
|
||||
<if test="checkUser != null and checkUser != ''"> and checkUser = #{checkUser}</if>
|
||||
<if test="checkUserPhone != null and checkUserPhone != ''"> and checkUserPhone = #{checkUserPhone}</if>
|
||||
<if test="smarkUrl != null and smarkUrl != ''"> and smark_url = #{smarkUrl}</if>
|
||||
<if test="isDel != null "> and isDel = #{isDel}</if>
|
||||
<if test="createUser != null and createUser != ''"> and createUser = #{createUser}</if>
|
||||
<if test="createTime != null "> and createTime = #{createTime}</if>
|
||||
<if test="updateUser != null and updateUser != ''"> and updateUser = #{updateUser}</if>
|
||||
<if test="updateTime != null "> and updateTime = #{updateTime}</if>
|
||||
<if test="dangerType != null and dangerType != ''"> and danger_type = #{dangerType}</if>
|
||||
<if test="recheckSend != null and recheckSend != ''"> and recheckSend = #{recheckSend}</if>
|
||||
<if test="recheckSendUser != null and recheckSendUser != ''"> and recheckSendUser = #{recheckSendUser}</if>
|
||||
<if test="roleType != null "> and roleType = #{roleType}</if>
|
||||
<if test="problemType != null and problemType != ''"> and problemType = #{problemType}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSmzSspProblemmodifyDraftById" parameterType="Long" resultMap="SmzSspProblemmodifyDraftResult">
|
||||
<include refid="selectSmzSspProblemmodifyDraftVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSmzSspProblemmodifyDraft" parameterType="SmzSspProblemmodifyDraft" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into smz_ssp_problemmodify_draft
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="comId != null">comId,</if>
|
||||
<if test="projectId != null">projectId,</if>
|
||||
<if test="infoType != null">infoType,</if>
|
||||
<if test="marksPicture != null">marks_picture,</if>
|
||||
<if test="marksVideo != null">marks_video,</if>
|
||||
<if test="problemArea != null">problemArea,</if>
|
||||
<if test="workParts != null">workParts,</if>
|
||||
<if test="changeInfo != null">changeInfo,</if>
|
||||
<if test="lordSent != null">lordSent,</if>
|
||||
<if test="lordSentUser != null">lordSentUser,</if>
|
||||
<if test="copySend != null">copySend,</if>
|
||||
<if test="copySendUser != null">copySendUser,</if>
|
||||
<if test="checkState != null">checkState,</if>
|
||||
<if test="nickedArea != null">nickedArea,</if>
|
||||
<if test="nickedTime != null">nickedTime,</if>
|
||||
<if test="projectType != null">projectType,</if>
|
||||
<if test="processName != null">processName,</if>
|
||||
<if test="projectName != null">projectName,</if>
|
||||
<if test="nickedInfo != null">nickedInfo,</if>
|
||||
<if test="checkUser != null">checkUser,</if>
|
||||
<if test="checkUserPhone != null">checkUserPhone,</if>
|
||||
<if test="smarkUrl != null">smark_url,</if>
|
||||
<if test="isDel != null">isDel,</if>
|
||||
<if test="createUser != null">createUser,</if>
|
||||
<if test="createTime != null">createTime,</if>
|
||||
<if test="updateUser != null">updateUser,</if>
|
||||
<if test="updateTime != null">updateTime,</if>
|
||||
<if test="dangerType != null">danger_type,</if>
|
||||
<if test="recheckSend != null">recheckSend,</if>
|
||||
<if test="recheckSendUser != null">recheckSendUser,</if>
|
||||
<if test="roleType != null">roleType,</if>
|
||||
<if test="problemType != null">problemType,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="comId != null">#{comId},</if>
|
||||
<if test="projectId != null">#{projectId},</if>
|
||||
<if test="infoType != null">#{infoType},</if>
|
||||
<if test="marksPicture != null">#{marksPicture},</if>
|
||||
<if test="marksVideo != null">#{marksVideo},</if>
|
||||
<if test="problemArea != null">#{problemArea},</if>
|
||||
<if test="workParts != null">#{workParts},</if>
|
||||
<if test="changeInfo != null">#{changeInfo},</if>
|
||||
<if test="lordSent != null">#{lordSent},</if>
|
||||
<if test="lordSentUser != null">#{lordSentUser},</if>
|
||||
<if test="copySend != null">#{copySend},</if>
|
||||
<if test="copySendUser != null">#{copySendUser},</if>
|
||||
<if test="checkState != null">#{checkState},</if>
|
||||
<if test="nickedArea != null">#{nickedArea},</if>
|
||||
<if test="nickedTime != null">#{nickedTime},</if>
|
||||
<if test="projectType != null">#{projectType},</if>
|
||||
<if test="processName != null">#{processName},</if>
|
||||
<if test="projectName != null">#{projectName},</if>
|
||||
<if test="nickedInfo != null">#{nickedInfo},</if>
|
||||
<if test="checkUser != null">#{checkUser},</if>
|
||||
<if test="checkUserPhone != null">#{checkUserPhone},</if>
|
||||
<if test="smarkUrl != null">#{smarkUrl},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createUser != null">#{createUser},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateUser != null">#{updateUser},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="dangerType != null">#{dangerType},</if>
|
||||
<if test="recheckSend != null">#{recheckSend},</if>
|
||||
<if test="recheckSendUser != null">#{recheckSendUser},</if>
|
||||
<if test="roleType != null">#{roleType},</if>
|
||||
<if test="problemType != null">#{problemType},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSmzSspProblemmodifyDraft" parameterType="SmzSspProblemmodifyDraft">
|
||||
update smz_ssp_problemmodify_draft
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="comId != null">comId = #{comId},</if>
|
||||
<if test="projectId != null">projectId = #{projectId},</if>
|
||||
<if test="infoType != null">infoType = #{infoType},</if>
|
||||
<if test="marksPicture != null">marks_picture = #{marksPicture},</if>
|
||||
<if test="marksVideo != null">marks_video = #{marksVideo},</if>
|
||||
<if test="problemArea != null">problemArea = #{problemArea},</if>
|
||||
<if test="workParts != null">workParts = #{workParts},</if>
|
||||
<if test="changeInfo != null">changeInfo = #{changeInfo},</if>
|
||||
<if test="lordSent != null">lordSent = #{lordSent},</if>
|
||||
<if test="lordSentUser != null">lordSentUser = #{lordSentUser},</if>
|
||||
<if test="copySend != null">copySend = #{copySend},</if>
|
||||
<if test="copySendUser != null">copySendUser = #{copySendUser},</if>
|
||||
<if test="checkState != null">checkState = #{checkState},</if>
|
||||
<if test="nickedArea != null">nickedArea = #{nickedArea},</if>
|
||||
<if test="nickedTime != null">nickedTime = #{nickedTime},</if>
|
||||
<if test="projectType != null">projectType = #{projectType},</if>
|
||||
<if test="processName != null">processName = #{processName},</if>
|
||||
<if test="projectName != null">projectName = #{projectName},</if>
|
||||
<if test="nickedInfo != null">nickedInfo = #{nickedInfo},</if>
|
||||
<if test="checkUser != null">checkUser = #{checkUser},</if>
|
||||
<if test="checkUserPhone != null">checkUserPhone = #{checkUserPhone},</if>
|
||||
<if test="smarkUrl != null">smark_url = #{smarkUrl},</if>
|
||||
<if test="isDel != null">isDel = #{isDel},</if>
|
||||
<if test="createUser != null">createUser = #{createUser},</if>
|
||||
<if test="createTime != null">createTime = #{createTime},</if>
|
||||
<if test="updateUser != null">updateUser = #{updateUser},</if>
|
||||
<if test="updateTime != null">updateTime = #{updateTime},</if>
|
||||
<if test="dangerType != null">danger_type = #{dangerType},</if>
|
||||
<if test="recheckSend != null">recheckSend = #{recheckSend},</if>
|
||||
<if test="recheckSendUser != null">recheckSendUser = #{recheckSendUser},</if>
|
||||
<if test="roleType != null">roleType = #{roleType},</if>
|
||||
<if test="problemType != null">problemType = #{problemType},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSmzSspProblemmodifyDraftById" parameterType="Long">
|
||||
delete from smz_ssp_problemmodify_draft where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSmzSspProblemmodifyDraftByIds" parameterType="String">
|
||||
delete from smz_ssp_problemmodify_draft where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -0,0 +1,216 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.yanzhu.manage.mapper.SmzSspProblemmodifyMapper">
|
||||
|
||||
<resultMap type="SmzSspProblemmodify" id="SmzSspProblemmodifyResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="comId" column="comId" />
|
||||
<result property="projectId" column="projectId" />
|
||||
<result property="infoType" column="infoType" />
|
||||
<result property="marksPicture" column="marks_picture" />
|
||||
<result property="marksVideo" column="marks_video" />
|
||||
<result property="correctionPicture" column="correction_picture" />
|
||||
<result property="problemArea" column="problemArea" />
|
||||
<result property="workParts" column="workParts" />
|
||||
<result property="changeInfo" column="changeInfo" />
|
||||
<result property="lordSent" column="lordSent" />
|
||||
<result property="lordSentUser" column="lordSentUser" />
|
||||
<result property="copySend" column="copySend" />
|
||||
<result property="copySendUser" column="copySendUser" />
|
||||
<result property="checkState" column="checkState" />
|
||||
<result property="nickedArea" column="nickedArea" />
|
||||
<result property="nickedTime" column="nickedTime" />
|
||||
<result property="projectType" column="projectType" />
|
||||
<result property="processName" column="processName" />
|
||||
<result property="projectName" column="projectName" />
|
||||
<result property="nickedInfo" column="nickedInfo" />
|
||||
<result property="checkUser" column="checkUser" />
|
||||
<result property="checkUserPhone" column="checkUserPhone" />
|
||||
<result property="smarkUrl" column="smark_url" />
|
||||
<result property="isDel" column="isDel" />
|
||||
<result property="createUser" column="createUser" />
|
||||
<result property="createTime" column="createTime" />
|
||||
<result property="updateUser" column="updateUser" />
|
||||
<result property="updateTime" column="updateTime" />
|
||||
<result property="dangerType" column="danger_type" />
|
||||
<result property="recheckSend" column="recheckSend" />
|
||||
<result property="recheckSendUser" column="recheckSendUser" />
|
||||
<result property="roleType" column="roleType" />
|
||||
<result property="problemType" column="problemType" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSmzSspProblemmodifyVo">
|
||||
select id, comId, projectId, infoType, marks_picture, marks_video, correction_picture, problemArea, workParts, changeInfo, lordSent, lordSentUser, copySend, copySendUser, checkState, nickedArea, nickedTime, projectType, processName, projectName, nickedInfo, checkUser, checkUserPhone, smark_url, isDel, createUser, createTime, updateUser, updateTime, danger_type, recheckSend, recheckSendUser, roleType, problemType from smz_ssp_problemmodify
|
||||
</sql>
|
||||
|
||||
<select id="selectSmzSspProblemmodifyList" parameterType="SmzSspProblemmodify" resultMap="SmzSspProblemmodifyResult">
|
||||
<include refid="selectSmzSspProblemmodifyVo"/>
|
||||
<where>
|
||||
<if test="comId != null "> and comId = #{comId}</if>
|
||||
<if test="projectId != null "> and projectId = #{projectId}</if>
|
||||
<if test="infoType != null "> and infoType = #{infoType}</if>
|
||||
<if test="marksPicture != null and marksPicture != ''"> and marks_picture = #{marksPicture}</if>
|
||||
<if test="marksVideo != null and marksVideo != ''"> and marks_video = #{marksVideo}</if>
|
||||
<if test="correctionPicture != null and correctionPicture != ''"> and correction_picture = #{correctionPicture}</if>
|
||||
<if test="problemArea != null and problemArea != ''"> and problemArea = #{problemArea}</if>
|
||||
<if test="workParts != null and workParts != ''"> and workParts = #{workParts}</if>
|
||||
<if test="changeInfo != null and changeInfo != ''"> and changeInfo = #{changeInfo}</if>
|
||||
<if test="lordSent != null and lordSent != ''"> and lordSent = #{lordSent}</if>
|
||||
<if test="lordSentUser != null and lordSentUser != ''"> and lordSentUser = #{lordSentUser}</if>
|
||||
<if test="copySend != null and copySend != ''"> and copySend = #{copySend}</if>
|
||||
<if test="copySendUser != null and copySendUser != ''"> and copySendUser = #{copySendUser}</if>
|
||||
<if test="checkState != null "> and checkState = #{checkState}</if>
|
||||
<if test="nickedArea != null and nickedArea != ''"> and nickedArea = #{nickedArea}</if>
|
||||
<if test="nickedTime != null "> and nickedTime = #{nickedTime}</if>
|
||||
<if test="projectType != null and projectType != ''"> and projectType = #{projectType}</if>
|
||||
<if test="processName != null and processName != ''"> and processName like concat('%', #{processName}, '%')</if>
|
||||
<if test="projectName != null and projectName != ''"> and projectName like concat('%', #{projectName}, '%')</if>
|
||||
<if test="nickedInfo != null and nickedInfo != ''"> and nickedInfo = #{nickedInfo}</if>
|
||||
<if test="checkUser != null and checkUser != ''"> and checkUser = #{checkUser}</if>
|
||||
<if test="checkUserPhone != null and checkUserPhone != ''"> and checkUserPhone = #{checkUserPhone}</if>
|
||||
<if test="smarkUrl != null and smarkUrl != ''"> and smark_url = #{smarkUrl}</if>
|
||||
<if test="isDel != null "> and isDel = #{isDel}</if>
|
||||
<if test="createUser != null and createUser != ''"> and createUser = #{createUser}</if>
|
||||
<if test="createTime != null "> and createTime = #{createTime}</if>
|
||||
<if test="updateUser != null and updateUser != ''"> and updateUser = #{updateUser}</if>
|
||||
<if test="updateTime != null "> and updateTime = #{updateTime}</if>
|
||||
<if test="dangerType != null and dangerType != ''"> and danger_type = #{dangerType}</if>
|
||||
<if test="recheckSend != null and recheckSend != ''"> and recheckSend = #{recheckSend}</if>
|
||||
<if test="recheckSendUser != null and recheckSendUser != ''"> and recheckSendUser = #{recheckSendUser}</if>
|
||||
<if test="roleType != null "> and roleType = #{roleType}</if>
|
||||
<if test="problemType != null and problemType != ''"> and problemType = #{problemType}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSmzSspProblemmodifyById" parameterType="Long" resultMap="SmzSspProblemmodifyResult">
|
||||
<include refid="selectSmzSspProblemmodifyVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSmzSspProblemmodify" parameterType="SmzSspProblemmodify" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into smz_ssp_problemmodify
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="comId != null">comId,</if>
|
||||
<if test="projectId != null">projectId,</if>
|
||||
<if test="infoType != null">infoType,</if>
|
||||
<if test="marksPicture != null">marks_picture,</if>
|
||||
<if test="marksVideo != null">marks_video,</if>
|
||||
<if test="correctionPicture != null">correction_picture,</if>
|
||||
<if test="problemArea != null">problemArea,</if>
|
||||
<if test="workParts != null">workParts,</if>
|
||||
<if test="changeInfo != null">changeInfo,</if>
|
||||
<if test="lordSent != null">lordSent,</if>
|
||||
<if test="lordSentUser != null">lordSentUser,</if>
|
||||
<if test="copySend != null">copySend,</if>
|
||||
<if test="copySendUser != null">copySendUser,</if>
|
||||
<if test="checkState != null">checkState,</if>
|
||||
<if test="nickedArea != null">nickedArea,</if>
|
||||
<if test="nickedTime != null">nickedTime,</if>
|
||||
<if test="projectType != null">projectType,</if>
|
||||
<if test="processName != null">processName,</if>
|
||||
<if test="projectName != null">projectName,</if>
|
||||
<if test="nickedInfo != null">nickedInfo,</if>
|
||||
<if test="checkUser != null">checkUser,</if>
|
||||
<if test="checkUserPhone != null">checkUserPhone,</if>
|
||||
<if test="smarkUrl != null">smark_url,</if>
|
||||
<if test="isDel != null">isDel,</if>
|
||||
<if test="createUser != null">createUser,</if>
|
||||
<if test="createTime != null">createTime,</if>
|
||||
<if test="updateUser != null">updateUser,</if>
|
||||
<if test="updateTime != null">updateTime,</if>
|
||||
<if test="dangerType != null">danger_type,</if>
|
||||
<if test="recheckSend != null">recheckSend,</if>
|
||||
<if test="recheckSendUser != null">recheckSendUser,</if>
|
||||
<if test="roleType != null">roleType,</if>
|
||||
<if test="problemType != null">problemType,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="comId != null">#{comId},</if>
|
||||
<if test="projectId != null">#{projectId},</if>
|
||||
<if test="infoType != null">#{infoType},</if>
|
||||
<if test="marksPicture != null">#{marksPicture},</if>
|
||||
<if test="marksVideo != null">#{marksVideo},</if>
|
||||
<if test="correctionPicture != null">#{correctionPicture},</if>
|
||||
<if test="problemArea != null">#{problemArea},</if>
|
||||
<if test="workParts != null">#{workParts},</if>
|
||||
<if test="changeInfo != null">#{changeInfo},</if>
|
||||
<if test="lordSent != null">#{lordSent},</if>
|
||||
<if test="lordSentUser != null">#{lordSentUser},</if>
|
||||
<if test="copySend != null">#{copySend},</if>
|
||||
<if test="copySendUser != null">#{copySendUser},</if>
|
||||
<if test="checkState != null">#{checkState},</if>
|
||||
<if test="nickedArea != null">#{nickedArea},</if>
|
||||
<if test="nickedTime != null">#{nickedTime},</if>
|
||||
<if test="projectType != null">#{projectType},</if>
|
||||
<if test="processName != null">#{processName},</if>
|
||||
<if test="projectName != null">#{projectName},</if>
|
||||
<if test="nickedInfo != null">#{nickedInfo},</if>
|
||||
<if test="checkUser != null">#{checkUser},</if>
|
||||
<if test="checkUserPhone != null">#{checkUserPhone},</if>
|
||||
<if test="smarkUrl != null">#{smarkUrl},</if>
|
||||
<if test="isDel != null">#{isDel},</if>
|
||||
<if test="createUser != null">#{createUser},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateUser != null">#{updateUser},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="dangerType != null">#{dangerType},</if>
|
||||
<if test="recheckSend != null">#{recheckSend},</if>
|
||||
<if test="recheckSendUser != null">#{recheckSendUser},</if>
|
||||
<if test="roleType != null">#{roleType},</if>
|
||||
<if test="problemType != null">#{problemType},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSmzSspProblemmodify" parameterType="SmzSspProblemmodify">
|
||||
update smz_ssp_problemmodify
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="comId != null">comId = #{comId},</if>
|
||||
<if test="projectId != null">projectId = #{projectId},</if>
|
||||
<if test="infoType != null">infoType = #{infoType},</if>
|
||||
<if test="marksPicture != null">marks_picture = #{marksPicture},</if>
|
||||
<if test="marksVideo != null">marks_video = #{marksVideo},</if>
|
||||
<if test="correctionPicture != null">correction_picture = #{correctionPicture},</if>
|
||||
<if test="problemArea != null">problemArea = #{problemArea},</if>
|
||||
<if test="workParts != null">workParts = #{workParts},</if>
|
||||
<if test="changeInfo != null">changeInfo = #{changeInfo},</if>
|
||||
<if test="lordSent != null">lordSent = #{lordSent},</if>
|
||||
<if test="lordSentUser != null">lordSentUser = #{lordSentUser},</if>
|
||||
<if test="copySend != null">copySend = #{copySend},</if>
|
||||
<if test="copySendUser != null">copySendUser = #{copySendUser},</if>
|
||||
<if test="checkState != null">checkState = #{checkState},</if>
|
||||
<if test="nickedArea != null">nickedArea = #{nickedArea},</if>
|
||||
<if test="nickedTime != null">nickedTime = #{nickedTime},</if>
|
||||
<if test="projectType != null">projectType = #{projectType},</if>
|
||||
<if test="processName != null">processName = #{processName},</if>
|
||||
<if test="projectName != null">projectName = #{projectName},</if>
|
||||
<if test="nickedInfo != null">nickedInfo = #{nickedInfo},</if>
|
||||
<if test="checkUser != null">checkUser = #{checkUser},</if>
|
||||
<if test="checkUserPhone != null">checkUserPhone = #{checkUserPhone},</if>
|
||||
<if test="smarkUrl != null">smark_url = #{smarkUrl},</if>
|
||||
<if test="isDel != null">isDel = #{isDel},</if>
|
||||
<if test="createUser != null">createUser = #{createUser},</if>
|
||||
<if test="createTime != null">createTime = #{createTime},</if>
|
||||
<if test="updateUser != null">updateUser = #{updateUser},</if>
|
||||
<if test="updateTime != null">updateTime = #{updateTime},</if>
|
||||
<if test="dangerType != null">danger_type = #{dangerType},</if>
|
||||
<if test="recheckSend != null">recheckSend = #{recheckSend},</if>
|
||||
<if test="recheckSendUser != null">recheckSendUser = #{recheckSendUser},</if>
|
||||
<if test="roleType != null">roleType = #{roleType},</if>
|
||||
<if test="problemType != null">problemType = #{problemType},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSmzSspProblemmodifyById" parameterType="Long">
|
||||
delete from smz_ssp_problemmodify where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSmzSspProblemmodifyByIds" parameterType="String">
|
||||
delete from smz_ssp_problemmodify where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -0,0 +1,106 @@
|
|||
package com.yanzhu.manage.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.yanzhu.manage.domain.SmzSspAuditinfo;
|
||||
import com.yanzhu.manage.service.ISmzSspAuditinfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.yanzhu.common.core.utils.poi.ExcelUtil;
|
||||
import com.yanzhu.common.core.web.controller.BaseController;
|
||||
import com.yanzhu.common.core.web.domain.AjaxResult;
|
||||
import com.yanzhu.common.core.web.page.TableDataInfo;
|
||||
import com.yanzhu.common.log.annotation.Log;
|
||||
import com.yanzhu.common.log.enums.BusinessType;
|
||||
import com.yanzhu.common.security.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* 隐患流程信息Controller
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/auditinfo")
|
||||
public class SmzSspAuditinfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISmzSspAuditinfoService smzSspAuditinfoService;
|
||||
|
||||
/**
|
||||
* 查询隐患流程信息列表
|
||||
*/
|
||||
@RequiresPermissions("trouble:auditinfo:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SmzSspAuditinfo smzSspAuditinfo)
|
||||
{
|
||||
startPage();
|
||||
List<SmzSspAuditinfo> list = smzSspAuditinfoService.selectSmzSspAuditinfoList(smzSspAuditinfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出隐患流程信息列表
|
||||
*/
|
||||
@RequiresPermissions("trouble:auditinfo:export")
|
||||
@Log(title = "隐患流程信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SmzSspAuditinfo smzSspAuditinfo)
|
||||
{
|
||||
List<SmzSspAuditinfo> list = smzSspAuditinfoService.selectSmzSspAuditinfoList(smzSspAuditinfo);
|
||||
ExcelUtil<SmzSspAuditinfo> util = new ExcelUtil<SmzSspAuditinfo>(SmzSspAuditinfo.class);
|
||||
util.exportExcel(response, list, "隐患流程信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取隐患流程信息详细信息
|
||||
*/
|
||||
@RequiresPermissions("trouble:auditinfo:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(smzSspAuditinfoService.selectSmzSspAuditinfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增隐患流程信息
|
||||
*/
|
||||
@RequiresPermissions("trouble:auditinfo:add")
|
||||
@Log(title = "隐患流程信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SmzSspAuditinfo smzSspAuditinfo)
|
||||
{
|
||||
return toAjax(smzSspAuditinfoService.insertSmzSspAuditinfo(smzSspAuditinfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改隐患流程信息
|
||||
*/
|
||||
@RequiresPermissions("trouble:auditinfo:edit")
|
||||
@Log(title = "隐患流程信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SmzSspAuditinfo smzSspAuditinfo)
|
||||
{
|
||||
return toAjax(smzSspAuditinfoService.updateSmzSspAuditinfo(smzSspAuditinfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除隐患流程信息
|
||||
*/
|
||||
@RequiresPermissions("trouble:auditinfo:remove")
|
||||
@Log(title = "隐患流程信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(smzSspAuditinfoService.deleteSmzSspAuditinfoByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,105 @@
|
|||
package com.yanzhu.manage.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.yanzhu.manage.domain.SmzSspFileinfo;
|
||||
import com.yanzhu.manage.service.ISmzSspFileinfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.yanzhu.common.core.utils.poi.ExcelUtil;
|
||||
import com.yanzhu.common.core.web.controller.BaseController;
|
||||
import com.yanzhu.common.core.web.domain.AjaxResult;
|
||||
import com.yanzhu.common.core.web.page.TableDataInfo;
|
||||
import com.yanzhu.common.log.annotation.Log;
|
||||
import com.yanzhu.common.log.enums.BusinessType;
|
||||
import com.yanzhu.common.security.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* 隐患文件信息Controller
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/fileinfo")
|
||||
public class SmzSspFileinfoController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISmzSspFileinfoService smzSspFileinfoService;
|
||||
|
||||
/**
|
||||
* 查询隐患文件信息列表
|
||||
*/
|
||||
@RequiresPermissions("trouble:fileinfo:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SmzSspFileinfo smzSspFileinfo)
|
||||
{
|
||||
startPage();
|
||||
List<SmzSspFileinfo> list = smzSspFileinfoService.selectSmzSspFileinfoList(smzSspFileinfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出隐患文件信息列表
|
||||
*/
|
||||
@RequiresPermissions("trouble:fileinfo:export")
|
||||
@Log(title = "隐患文件信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SmzSspFileinfo smzSspFileinfo)
|
||||
{
|
||||
List<SmzSspFileinfo> list = smzSspFileinfoService.selectSmzSspFileinfoList(smzSspFileinfo);
|
||||
ExcelUtil<SmzSspFileinfo> util = new ExcelUtil<SmzSspFileinfo>(SmzSspFileinfo.class);
|
||||
util.exportExcel(response, list, "隐患文件信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取隐患文件信息详细信息
|
||||
*/
|
||||
@RequiresPermissions("trouble:fileinfo:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(smzSspFileinfoService.selectSmzSspFileinfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增隐患文件信息
|
||||
*/
|
||||
@RequiresPermissions("trouble:fileinfo:add")
|
||||
@Log(title = "隐患文件信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SmzSspFileinfo smzSspFileinfo)
|
||||
{
|
||||
return toAjax(smzSspFileinfoService.insertSmzSspFileinfo(smzSspFileinfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改隐患文件信息
|
||||
*/
|
||||
@RequiresPermissions("trouble:fileinfo:edit")
|
||||
@Log(title = "隐患文件信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SmzSspFileinfo smzSspFileinfo)
|
||||
{
|
||||
return toAjax(smzSspFileinfoService.updateSmzSspFileinfo(smzSspFileinfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除隐患文件信息
|
||||
*/
|
||||
@RequiresPermissions("trouble:fileinfo:remove")
|
||||
@Log(title = "隐患文件信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(smzSspFileinfoService.deleteSmzSspFileinfoByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,105 @@
|
|||
package com.yanzhu.manage.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.yanzhu.manage.domain.SmzSspProblemmodify;
|
||||
import com.yanzhu.manage.service.ISmzSspProblemmodifyService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.yanzhu.common.core.utils.poi.ExcelUtil;
|
||||
import com.yanzhu.common.core.web.controller.BaseController;
|
||||
import com.yanzhu.common.core.web.domain.AjaxResult;
|
||||
import com.yanzhu.common.core.web.page.TableDataInfo;
|
||||
import com.yanzhu.common.log.annotation.Log;
|
||||
import com.yanzhu.common.log.enums.BusinessType;
|
||||
import com.yanzhu.common.security.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* 安全隐患整改Controller
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/problemmodify")
|
||||
public class SmzSspProblemmodifyController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISmzSspProblemmodifyService smzSspProblemmodifyService;
|
||||
|
||||
/**
|
||||
* 查询安全隐患整改列表
|
||||
*/
|
||||
@RequiresPermissions("trouble:problemmodify:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SmzSspProblemmodify smzSspProblemmodify)
|
||||
{
|
||||
startPage();
|
||||
List<SmzSspProblemmodify> list = smzSspProblemmodifyService.selectSmzSspProblemmodifyList(smzSspProblemmodify);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出安全隐患整改列表
|
||||
*/
|
||||
@RequiresPermissions("trouble:problemmodify:export")
|
||||
@Log(title = "安全隐患整改", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SmzSspProblemmodify smzSspProblemmodify)
|
||||
{
|
||||
List<SmzSspProblemmodify> list = smzSspProblemmodifyService.selectSmzSspProblemmodifyList(smzSspProblemmodify);
|
||||
ExcelUtil<SmzSspProblemmodify> util = new ExcelUtil<SmzSspProblemmodify>(SmzSspProblemmodify.class);
|
||||
util.exportExcel(response, list, "安全隐患整改数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取安全隐患整改详细信息
|
||||
*/
|
||||
@RequiresPermissions("trouble:problemmodify:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(smzSspProblemmodifyService.selectSmzSspProblemmodifyById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增安全隐患整改
|
||||
*/
|
||||
@RequiresPermissions("trouble:problemmodify:add")
|
||||
@Log(title = "安全隐患整改", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SmzSspProblemmodify smzSspProblemmodify)
|
||||
{
|
||||
return toAjax(smzSspProblemmodifyService.insertSmzSspProblemmodify(smzSspProblemmodify));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改安全隐患整改
|
||||
*/
|
||||
@RequiresPermissions("trouble:problemmodify:edit")
|
||||
@Log(title = "安全隐患整改", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SmzSspProblemmodify smzSspProblemmodify)
|
||||
{
|
||||
return toAjax(smzSspProblemmodifyService.updateSmzSspProblemmodify(smzSspProblemmodify));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除安全隐患整改
|
||||
*/
|
||||
@RequiresPermissions("trouble:problemmodify:remove")
|
||||
@Log(title = "安全隐患整改", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(smzSspProblemmodifyService.deleteSmzSspProblemmodifyByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,105 @@
|
|||
package com.yanzhu.manage.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.yanzhu.manage.domain.SmzSspProblemmodifyDraft;
|
||||
import com.yanzhu.manage.service.ISmzSspProblemmodifyDraftService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.yanzhu.common.core.utils.poi.ExcelUtil;
|
||||
import com.yanzhu.common.core.web.controller.BaseController;
|
||||
import com.yanzhu.common.core.web.domain.AjaxResult;
|
||||
import com.yanzhu.common.core.web.page.TableDataInfo;
|
||||
import com.yanzhu.common.log.annotation.Log;
|
||||
import com.yanzhu.common.log.enums.BusinessType;
|
||||
import com.yanzhu.common.security.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* 安全问题草稿Controller
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/problemmodifyDraft")
|
||||
public class SmzSspProblemmodifyDraftController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISmzSspProblemmodifyDraftService smzSspProblemmodifyDraftService;
|
||||
|
||||
/**
|
||||
* 查询安全问题草稿列表
|
||||
*/
|
||||
@RequiresPermissions("trouble:problemmodifyDraft:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SmzSspProblemmodifyDraft smzSspProblemmodifyDraft)
|
||||
{
|
||||
startPage();
|
||||
List<SmzSspProblemmodifyDraft> list = smzSspProblemmodifyDraftService.selectSmzSspProblemmodifyDraftList(smzSspProblemmodifyDraft);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出安全问题草稿列表
|
||||
*/
|
||||
@RequiresPermissions("trouble:problemmodifyDraft:export")
|
||||
@Log(title = "安全问题草稿", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SmzSspProblemmodifyDraft smzSspProblemmodifyDraft)
|
||||
{
|
||||
List<SmzSspProblemmodifyDraft> list = smzSspProblemmodifyDraftService.selectSmzSspProblemmodifyDraftList(smzSspProblemmodifyDraft);
|
||||
ExcelUtil<SmzSspProblemmodifyDraft> util = new ExcelUtil<SmzSspProblemmodifyDraft>(SmzSspProblemmodifyDraft.class);
|
||||
util.exportExcel(response, list, "安全问题草稿数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取安全问题草稿详细信息
|
||||
*/
|
||||
@RequiresPermissions("trouble:problemmodifyDraft:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(smzSspProblemmodifyDraftService.selectSmzSspProblemmodifyDraftById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增安全问题草稿
|
||||
*/
|
||||
@RequiresPermissions("trouble:problemmodifyDraft:add")
|
||||
@Log(title = "安全问题草稿", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SmzSspProblemmodifyDraft smzSspProblemmodifyDraft)
|
||||
{
|
||||
return toAjax(smzSspProblemmodifyDraftService.insertSmzSspProblemmodifyDraft(smzSspProblemmodifyDraft));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改安全问题草稿
|
||||
*/
|
||||
@RequiresPermissions("trouble:problemmodifyDraft:edit")
|
||||
@Log(title = "安全问题草稿", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SmzSspProblemmodifyDraft smzSspProblemmodifyDraft)
|
||||
{
|
||||
return toAjax(smzSspProblemmodifyDraftService.updateSmzSspProblemmodifyDraft(smzSspProblemmodifyDraft));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除安全问题草稿
|
||||
*/
|
||||
@RequiresPermissions("trouble:problemmodifyDraft:remove")
|
||||
@Log(title = "安全问题草稿", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(smzSspProblemmodifyDraftService.deleteSmzSspProblemmodifyDraftByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SmzSspAuditinfo;
|
||||
|
||||
/**
|
||||
* 隐患流程信息Service接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
public interface ISmzSspAuditinfoService
|
||||
{
|
||||
/**
|
||||
* 查询隐患流程信息
|
||||
*
|
||||
* @param id 隐患流程信息主键
|
||||
* @return 隐患流程信息
|
||||
*/
|
||||
public SmzSspAuditinfo selectSmzSspAuditinfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询隐患流程信息列表
|
||||
*
|
||||
* @param smzSspAuditinfo 隐患流程信息
|
||||
* @return 隐患流程信息集合
|
||||
*/
|
||||
public List<SmzSspAuditinfo> selectSmzSspAuditinfoList(SmzSspAuditinfo smzSspAuditinfo);
|
||||
|
||||
/**
|
||||
* 新增隐患流程信息
|
||||
*
|
||||
* @param smzSspAuditinfo 隐患流程信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSmzSspAuditinfo(SmzSspAuditinfo smzSspAuditinfo);
|
||||
|
||||
/**
|
||||
* 修改隐患流程信息
|
||||
*
|
||||
* @param smzSspAuditinfo 隐患流程信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSmzSspAuditinfo(SmzSspAuditinfo smzSspAuditinfo);
|
||||
|
||||
/**
|
||||
* 批量删除隐患流程信息
|
||||
*
|
||||
* @param ids 需要删除的隐患流程信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSmzSspAuditinfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除隐患流程信息信息
|
||||
*
|
||||
* @param id 隐患流程信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSmzSspAuditinfoById(Long id);
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SmzSspFileinfo;
|
||||
|
||||
/**
|
||||
* 隐患文件信息Service接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
public interface ISmzSspFileinfoService
|
||||
{
|
||||
/**
|
||||
* 查询隐患文件信息
|
||||
*
|
||||
* @param id 隐患文件信息主键
|
||||
* @return 隐患文件信息
|
||||
*/
|
||||
public SmzSspFileinfo selectSmzSspFileinfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询隐患文件信息列表
|
||||
*
|
||||
* @param smzSspFileinfo 隐患文件信息
|
||||
* @return 隐患文件信息集合
|
||||
*/
|
||||
public List<SmzSspFileinfo> selectSmzSspFileinfoList(SmzSspFileinfo smzSspFileinfo);
|
||||
|
||||
/**
|
||||
* 新增隐患文件信息
|
||||
*
|
||||
* @param smzSspFileinfo 隐患文件信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSmzSspFileinfo(SmzSspFileinfo smzSspFileinfo);
|
||||
|
||||
/**
|
||||
* 修改隐患文件信息
|
||||
*
|
||||
* @param smzSspFileinfo 隐患文件信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSmzSspFileinfo(SmzSspFileinfo smzSspFileinfo);
|
||||
|
||||
/**
|
||||
* 批量删除隐患文件信息
|
||||
*
|
||||
* @param ids 需要删除的隐患文件信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSmzSspFileinfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除隐患文件信息信息
|
||||
*
|
||||
* @param id 隐患文件信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSmzSspFileinfoById(Long id);
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SmzSspProblemmodifyDraft;
|
||||
|
||||
/**
|
||||
* 安全问题草稿Service接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
public interface ISmzSspProblemmodifyDraftService
|
||||
{
|
||||
/**
|
||||
* 查询安全问题草稿
|
||||
*
|
||||
* @param id 安全问题草稿主键
|
||||
* @return 安全问题草稿
|
||||
*/
|
||||
public SmzSspProblemmodifyDraft selectSmzSspProblemmodifyDraftById(Long id);
|
||||
|
||||
/**
|
||||
* 查询安全问题草稿列表
|
||||
*
|
||||
* @param smzSspProblemmodifyDraft 安全问题草稿
|
||||
* @return 安全问题草稿集合
|
||||
*/
|
||||
public List<SmzSspProblemmodifyDraft> selectSmzSspProblemmodifyDraftList(SmzSspProblemmodifyDraft smzSspProblemmodifyDraft);
|
||||
|
||||
/**
|
||||
* 新增安全问题草稿
|
||||
*
|
||||
* @param smzSspProblemmodifyDraft 安全问题草稿
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSmzSspProblemmodifyDraft(SmzSspProblemmodifyDraft smzSspProblemmodifyDraft);
|
||||
|
||||
/**
|
||||
* 修改安全问题草稿
|
||||
*
|
||||
* @param smzSspProblemmodifyDraft 安全问题草稿
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSmzSspProblemmodifyDraft(SmzSspProblemmodifyDraft smzSspProblemmodifyDraft);
|
||||
|
||||
/**
|
||||
* 批量删除安全问题草稿
|
||||
*
|
||||
* @param ids 需要删除的安全问题草稿主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSmzSspProblemmodifyDraftByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除安全问题草稿信息
|
||||
*
|
||||
* @param id 安全问题草稿主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSmzSspProblemmodifyDraftById(Long id);
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SmzSspProblemmodify;
|
||||
|
||||
/**
|
||||
* 安全隐患整改Service接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
public interface ISmzSspProblemmodifyService
|
||||
{
|
||||
/**
|
||||
* 查询安全隐患整改
|
||||
*
|
||||
* @param id 安全隐患整改主键
|
||||
* @return 安全隐患整改
|
||||
*/
|
||||
public SmzSspProblemmodify selectSmzSspProblemmodifyById(Long id);
|
||||
|
||||
/**
|
||||
* 查询安全隐患整改列表
|
||||
*
|
||||
* @param smzSspProblemmodify 安全隐患整改
|
||||
* @return 安全隐患整改集合
|
||||
*/
|
||||
public List<SmzSspProblemmodify> selectSmzSspProblemmodifyList(SmzSspProblemmodify smzSspProblemmodify);
|
||||
|
||||
/**
|
||||
* 新增安全隐患整改
|
||||
*
|
||||
* @param smzSspProblemmodify 安全隐患整改
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSmzSspProblemmodify(SmzSspProblemmodify smzSspProblemmodify);
|
||||
|
||||
/**
|
||||
* 修改安全隐患整改
|
||||
*
|
||||
* @param smzSspProblemmodify 安全隐患整改
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSmzSspProblemmodify(SmzSspProblemmodify smzSspProblemmodify);
|
||||
|
||||
/**
|
||||
* 批量删除安全隐患整改
|
||||
*
|
||||
* @param ids 需要删除的安全隐患整改主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSmzSspProblemmodifyByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除安全隐患整改信息
|
||||
*
|
||||
* @param id 安全隐患整改主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSmzSspProblemmodifyById(Long id);
|
||||
}
|
|
@ -0,0 +1,96 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.yanzhu.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.yanzhu.manage.mapper.SmzSspAuditinfoMapper;
|
||||
import com.yanzhu.manage.domain.SmzSspAuditinfo;
|
||||
import com.yanzhu.manage.service.ISmzSspAuditinfoService;
|
||||
|
||||
/**
|
||||
* 隐患流程信息Service业务层处理
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
@Service
|
||||
public class SmzSspAuditinfoServiceImpl implements ISmzSspAuditinfoService
|
||||
{
|
||||
@Autowired
|
||||
private SmzSspAuditinfoMapper smzSspAuditinfoMapper;
|
||||
|
||||
/**
|
||||
* 查询隐患流程信息
|
||||
*
|
||||
* @param id 隐患流程信息主键
|
||||
* @return 隐患流程信息
|
||||
*/
|
||||
@Override
|
||||
public SmzSspAuditinfo selectSmzSspAuditinfoById(Long id)
|
||||
{
|
||||
return smzSspAuditinfoMapper.selectSmzSspAuditinfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询隐患流程信息列表
|
||||
*
|
||||
* @param smzSspAuditinfo 隐患流程信息
|
||||
* @return 隐患流程信息
|
||||
*/
|
||||
@Override
|
||||
public List<SmzSspAuditinfo> selectSmzSspAuditinfoList(SmzSspAuditinfo smzSspAuditinfo)
|
||||
{
|
||||
return smzSspAuditinfoMapper.selectSmzSspAuditinfoList(smzSspAuditinfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增隐患流程信息
|
||||
*
|
||||
* @param smzSspAuditinfo 隐患流程信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSmzSspAuditinfo(SmzSspAuditinfo smzSspAuditinfo)
|
||||
{
|
||||
smzSspAuditinfo.setCreateTime(DateUtils.getNowDate());
|
||||
return smzSspAuditinfoMapper.insertSmzSspAuditinfo(smzSspAuditinfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改隐患流程信息
|
||||
*
|
||||
* @param smzSspAuditinfo 隐患流程信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSmzSspAuditinfo(SmzSspAuditinfo smzSspAuditinfo)
|
||||
{
|
||||
return smzSspAuditinfoMapper.updateSmzSspAuditinfo(smzSspAuditinfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除隐患流程信息
|
||||
*
|
||||
* @param ids 需要删除的隐患流程信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSmzSspAuditinfoByIds(Long[] ids)
|
||||
{
|
||||
return smzSspAuditinfoMapper.deleteSmzSspAuditinfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除隐患流程信息信息
|
||||
*
|
||||
* @param id 隐患流程信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSmzSspAuditinfoById(Long id)
|
||||
{
|
||||
return smzSspAuditinfoMapper.deleteSmzSspAuditinfoById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.yanzhu.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.yanzhu.manage.mapper.SmzSspFileinfoMapper;
|
||||
import com.yanzhu.manage.domain.SmzSspFileinfo;
|
||||
import com.yanzhu.manage.service.ISmzSspFileinfoService;
|
||||
|
||||
/**
|
||||
* 隐患文件信息Service业务层处理
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
@Service
|
||||
public class SmzSspFileinfoServiceImpl implements ISmzSspFileinfoService
|
||||
{
|
||||
@Autowired
|
||||
private SmzSspFileinfoMapper smzSspFileinfoMapper;
|
||||
|
||||
/**
|
||||
* 查询隐患文件信息
|
||||
*
|
||||
* @param id 隐患文件信息主键
|
||||
* @return 隐患文件信息
|
||||
*/
|
||||
@Override
|
||||
public SmzSspFileinfo selectSmzSspFileinfoById(Long id)
|
||||
{
|
||||
return smzSspFileinfoMapper.selectSmzSspFileinfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询隐患文件信息列表
|
||||
*
|
||||
* @param smzSspFileinfo 隐患文件信息
|
||||
* @return 隐患文件信息
|
||||
*/
|
||||
@Override
|
||||
public List<SmzSspFileinfo> selectSmzSspFileinfoList(SmzSspFileinfo smzSspFileinfo)
|
||||
{
|
||||
return smzSspFileinfoMapper.selectSmzSspFileinfoList(smzSspFileinfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增隐患文件信息
|
||||
*
|
||||
* @param smzSspFileinfo 隐患文件信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSmzSspFileinfo(SmzSspFileinfo smzSspFileinfo)
|
||||
{
|
||||
smzSspFileinfo.setCreateTime(DateUtils.getNowDate());
|
||||
return smzSspFileinfoMapper.insertSmzSspFileinfo(smzSspFileinfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改隐患文件信息
|
||||
*
|
||||
* @param smzSspFileinfo 隐患文件信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSmzSspFileinfo(SmzSspFileinfo smzSspFileinfo)
|
||||
{
|
||||
smzSspFileinfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return smzSspFileinfoMapper.updateSmzSspFileinfo(smzSspFileinfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除隐患文件信息
|
||||
*
|
||||
* @param ids 需要删除的隐患文件信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSmzSspFileinfoByIds(Long[] ids)
|
||||
{
|
||||
return smzSspFileinfoMapper.deleteSmzSspFileinfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除隐患文件信息信息
|
||||
*
|
||||
* @param id 隐患文件信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSmzSspFileinfoById(Long id)
|
||||
{
|
||||
return smzSspFileinfoMapper.deleteSmzSspFileinfoById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.yanzhu.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.yanzhu.manage.mapper.SmzSspProblemmodifyDraftMapper;
|
||||
import com.yanzhu.manage.domain.SmzSspProblemmodifyDraft;
|
||||
import com.yanzhu.manage.service.ISmzSspProblemmodifyDraftService;
|
||||
|
||||
/**
|
||||
* 安全问题草稿Service业务层处理
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
@Service
|
||||
public class SmzSspProblemmodifyDraftServiceImpl implements ISmzSspProblemmodifyDraftService
|
||||
{
|
||||
@Autowired
|
||||
private SmzSspProblemmodifyDraftMapper smzSspProblemmodifyDraftMapper;
|
||||
|
||||
/**
|
||||
* 查询安全问题草稿
|
||||
*
|
||||
* @param id 安全问题草稿主键
|
||||
* @return 安全问题草稿
|
||||
*/
|
||||
@Override
|
||||
public SmzSspProblemmodifyDraft selectSmzSspProblemmodifyDraftById(Long id)
|
||||
{
|
||||
return smzSspProblemmodifyDraftMapper.selectSmzSspProblemmodifyDraftById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询安全问题草稿列表
|
||||
*
|
||||
* @param smzSspProblemmodifyDraft 安全问题草稿
|
||||
* @return 安全问题草稿
|
||||
*/
|
||||
@Override
|
||||
public List<SmzSspProblemmodifyDraft> selectSmzSspProblemmodifyDraftList(SmzSspProblemmodifyDraft smzSspProblemmodifyDraft)
|
||||
{
|
||||
return smzSspProblemmodifyDraftMapper.selectSmzSspProblemmodifyDraftList(smzSspProblemmodifyDraft);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增安全问题草稿
|
||||
*
|
||||
* @param smzSspProblemmodifyDraft 安全问题草稿
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSmzSspProblemmodifyDraft(SmzSspProblemmodifyDraft smzSspProblemmodifyDraft)
|
||||
{
|
||||
smzSspProblemmodifyDraft.setCreateTime(DateUtils.getNowDate());
|
||||
return smzSspProblemmodifyDraftMapper.insertSmzSspProblemmodifyDraft(smzSspProblemmodifyDraft);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改安全问题草稿
|
||||
*
|
||||
* @param smzSspProblemmodifyDraft 安全问题草稿
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSmzSspProblemmodifyDraft(SmzSspProblemmodifyDraft smzSspProblemmodifyDraft)
|
||||
{
|
||||
smzSspProblemmodifyDraft.setUpdateTime(DateUtils.getNowDate());
|
||||
return smzSspProblemmodifyDraftMapper.updateSmzSspProblemmodifyDraft(smzSspProblemmodifyDraft);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除安全问题草稿
|
||||
*
|
||||
* @param ids 需要删除的安全问题草稿主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSmzSspProblemmodifyDraftByIds(Long[] ids)
|
||||
{
|
||||
return smzSspProblemmodifyDraftMapper.deleteSmzSspProblemmodifyDraftByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除安全问题草稿信息
|
||||
*
|
||||
* @param id 安全问题草稿主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSmzSspProblemmodifyDraftById(Long id)
|
||||
{
|
||||
return smzSspProblemmodifyDraftMapper.deleteSmzSspProblemmodifyDraftById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.yanzhu.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.yanzhu.manage.mapper.SmzSspProblemmodifyMapper;
|
||||
import com.yanzhu.manage.domain.SmzSspProblemmodify;
|
||||
import com.yanzhu.manage.service.ISmzSspProblemmodifyService;
|
||||
|
||||
/**
|
||||
* 安全隐患整改Service业务层处理
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-02-15
|
||||
*/
|
||||
@Service
|
||||
public class SmzSspProblemmodifyServiceImpl implements ISmzSspProblemmodifyService
|
||||
{
|
||||
@Autowired
|
||||
private SmzSspProblemmodifyMapper smzSspProblemmodifyMapper;
|
||||
|
||||
/**
|
||||
* 查询安全隐患整改
|
||||
*
|
||||
* @param id 安全隐患整改主键
|
||||
* @return 安全隐患整改
|
||||
*/
|
||||
@Override
|
||||
public SmzSspProblemmodify selectSmzSspProblemmodifyById(Long id)
|
||||
{
|
||||
return smzSspProblemmodifyMapper.selectSmzSspProblemmodifyById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询安全隐患整改列表
|
||||
*
|
||||
* @param smzSspProblemmodify 安全隐患整改
|
||||
* @return 安全隐患整改
|
||||
*/
|
||||
@Override
|
||||
public List<SmzSspProblemmodify> selectSmzSspProblemmodifyList(SmzSspProblemmodify smzSspProblemmodify)
|
||||
{
|
||||
return smzSspProblemmodifyMapper.selectSmzSspProblemmodifyList(smzSspProblemmodify);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增安全隐患整改
|
||||
*
|
||||
* @param smzSspProblemmodify 安全隐患整改
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSmzSspProblemmodify(SmzSspProblemmodify smzSspProblemmodify)
|
||||
{
|
||||
smzSspProblemmodify.setCreateTime(DateUtils.getNowDate());
|
||||
return smzSspProblemmodifyMapper.insertSmzSspProblemmodify(smzSspProblemmodify);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改安全隐患整改
|
||||
*
|
||||
* @param smzSspProblemmodify 安全隐患整改
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSmzSspProblemmodify(SmzSspProblemmodify smzSspProblemmodify)
|
||||
{
|
||||
smzSspProblemmodify.setUpdateTime(DateUtils.getNowDate());
|
||||
return smzSspProblemmodifyMapper.updateSmzSspProblemmodify(smzSspProblemmodify);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除安全隐患整改
|
||||
*
|
||||
* @param ids 需要删除的安全隐患整改主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSmzSspProblemmodifyByIds(Long[] ids)
|
||||
{
|
||||
return smzSspProblemmodifyMapper.deleteSmzSspProblemmodifyByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除安全隐患整改信息
|
||||
*
|
||||
* @param id 安全隐患整改主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSmzSspProblemmodifyById(Long id)
|
||||
{
|
||||
return smzSspProblemmodifyMapper.deleteSmzSspProblemmodifyById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询隐患流程信息列表
|
||||
export function listAuditinfo(query) {
|
||||
return request({
|
||||
url: '/trouble/auditinfo/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询隐患流程信息详细
|
||||
export function getAuditinfo(id) {
|
||||
return request({
|
||||
url: '/trouble/auditinfo/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增隐患流程信息
|
||||
export function addAuditinfo(data) {
|
||||
return request({
|
||||
url: '/trouble/auditinfo',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改隐患流程信息
|
||||
export function updateAuditinfo(data) {
|
||||
return request({
|
||||
url: '/trouble/auditinfo',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除隐患流程信息
|
||||
export function delAuditinfo(id) {
|
||||
return request({
|
||||
url: '/trouble/auditinfo/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询隐患文件信息列表
|
||||
export function listFileinfo(query) {
|
||||
return request({
|
||||
url: '/trouble/fileinfo/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询隐患文件信息详细
|
||||
export function getFileinfo(id) {
|
||||
return request({
|
||||
url: '/trouble/fileinfo/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增隐患文件信息
|
||||
export function addFileinfo(data) {
|
||||
return request({
|
||||
url: '/trouble/fileinfo',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改隐患文件信息
|
||||
export function updateFileinfo(data) {
|
||||
return request({
|
||||
url: '/trouble/fileinfo',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除隐患文件信息
|
||||
export function delFileinfo(id) {
|
||||
return request({
|
||||
url: '/trouble/fileinfo/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询安全隐患整改列表
|
||||
export function listProblemmodify(query) {
|
||||
return request({
|
||||
url: '/trouble/problemmodify/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询安全隐患整改详细
|
||||
export function getProblemmodify(id) {
|
||||
return request({
|
||||
url: '/trouble/problemmodify/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增安全隐患整改
|
||||
export function addProblemmodify(data) {
|
||||
return request({
|
||||
url: '/trouble/problemmodify',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改安全隐患整改
|
||||
export function updateProblemmodify(data) {
|
||||
return request({
|
||||
url: '/trouble/problemmodify',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除安全隐患整改
|
||||
export function delProblemmodify(id) {
|
||||
return request({
|
||||
url: '/trouble/problemmodify/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询安全问题草稿列表
|
||||
export function listProblemmodifyDraft(query) {
|
||||
return request({
|
||||
url: '/trouble/problemmodifyDraft/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询安全问题草稿详细
|
||||
export function getProblemmodifyDraft(id) {
|
||||
return request({
|
||||
url: '/trouble/problemmodifyDraft/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增安全问题草稿
|
||||
export function addProblemmodifyDraft(data) {
|
||||
return request({
|
||||
url: '/trouble/problemmodifyDraft',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改安全问题草稿
|
||||
export function updateProblemmodifyDraft(data) {
|
||||
return request({
|
||||
url: '/trouble/problemmodifyDraft',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除安全问题草稿
|
||||
export function delProblemmodifyDraft(id) {
|
||||
return request({
|
||||
url: '/trouble/problemmodifyDraft/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
|
@ -0,0 +1,298 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="问题整改质量留痕id" prop="mainId">
|
||||
<el-input
|
||||
v-model="queryParams.mainId"
|
||||
placeholder="请输入问题整改质量留痕id"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="流程状态(0待审,1通过,2驳回)" prop="processState">
|
||||
<el-input
|
||||
v-model="queryParams.processState"
|
||||
placeholder="请输入流程状态(0待审,1通过,2驳回)"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="意见" prop="opinion">
|
||||
<el-input
|
||||
v-model="queryParams.opinion"
|
||||
placeholder="请输入意见"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="删除状态(0未删除,1已删除)" prop="isDel">
|
||||
<el-input
|
||||
v-model="queryParams.isDel"
|
||||
placeholder="请输入删除状态(0未删除,1已删除)"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createUser">
|
||||
<el-input
|
||||
v-model="queryParams.createUser"
|
||||
placeholder="请输入创建人"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间" prop="createTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.createTime"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="请选择创建时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="Plus"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['trouble:auditinfo:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['trouble:auditinfo:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['trouble:auditinfo:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['trouble:auditinfo:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="auditinfoList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="${comment}" align="center" prop="id" />
|
||||
<el-table-column label="问题整改质量留痕id" align="center" prop="mainId" />
|
||||
<el-table-column label="流程状态(0待审,1通过,2驳回)" align="center" prop="processState" />
|
||||
<el-table-column label="意见" align="center" prop="opinion" />
|
||||
<el-table-column label="删除状态(0未删除,1已删除)" align="center" prop="isDel" />
|
||||
<el-table-column label="创建人" align="center" prop="createUser" />
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template #default="scope">
|
||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['trouble:auditinfo:edit']">修改</el-button>
|
||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['trouble:auditinfo:remove']">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNum"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改隐患流程信息对话框 -->
|
||||
<el-dialog :title="title" v-model="open" width="500px" append-to-body>
|
||||
<el-form ref="auditinfoRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="问题整改质量留痕id" prop="mainId">
|
||||
<el-input v-model="form.mainId" placeholder="请输入问题整改质量留痕id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="流程状态(0待审,1通过,2驳回)" prop="processState">
|
||||
<el-input v-model="form.processState" placeholder="请输入流程状态(0待审,1通过,2驳回)" />
|
||||
</el-form-item>
|
||||
<el-form-item label="意见" prop="opinion">
|
||||
<el-input v-model="form.opinion" placeholder="请输入意见" />
|
||||
</el-form-item>
|
||||
<el-form-item label="删除状态(0未删除,1已删除)" prop="isDel">
|
||||
<el-input v-model="form.isDel" placeholder="请输入删除状态(0未删除,1已删除)" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createUser">
|
||||
<el-input v-model="form.createUser" placeholder="请输入创建人" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="Auditinfo">
|
||||
import { listAuditinfo, getAuditinfo, delAuditinfo, addAuditinfo, updateAuditinfo } from "@/api/trouble/auditinfo";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const auditinfoList = ref([]);
|
||||
const open = ref(false);
|
||||
const loading = ref(true);
|
||||
const showSearch = ref(true);
|
||||
const ids = ref([]);
|
||||
const single = ref(true);
|
||||
const multiple = ref(true);
|
||||
const total = ref(0);
|
||||
const title = ref("");
|
||||
|
||||
const data = reactive({
|
||||
form: {},
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
mainId: null,
|
||||
processState: null,
|
||||
opinion: null,
|
||||
isDel: null,
|
||||
createUser: null,
|
||||
createTime: null
|
||||
},
|
||||
rules: {
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
/** 查询隐患流程信息列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
listAuditinfo(queryParams.value).then(response => {
|
||||
auditinfoList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
// 取消按钮
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
reset();
|
||||
}
|
||||
|
||||
// 表单重置
|
||||
function reset() {
|
||||
form.value = {
|
||||
id: null,
|
||||
mainId: null,
|
||||
processState: null,
|
||||
opinion: null,
|
||||
isDel: null,
|
||||
createUser: null,
|
||||
createTime: null
|
||||
};
|
||||
proxy.resetForm("auditinfoRef");
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
function handleQuery() {
|
||||
queryParams.value.pageNum = 1;
|
||||
getList();
|
||||
}
|
||||
|
||||
/** 重置按钮操作 */
|
||||
function resetQuery() {
|
||||
proxy.resetForm("queryRef");
|
||||
handleQuery();
|
||||
}
|
||||
|
||||
// 多选框选中数据
|
||||
function handleSelectionChange(selection) {
|
||||
ids.value = selection.map(item => item.id);
|
||||
single.value = selection.length != 1;
|
||||
multiple.value = !selection.length;
|
||||
}
|
||||
|
||||
/** 新增按钮操作 */
|
||||
function handleAdd() {
|
||||
reset();
|
||||
open.value = true;
|
||||
title.value = "添加隐患流程信息";
|
||||
}
|
||||
|
||||
/** 修改按钮操作 */
|
||||
function handleUpdate(row) {
|
||||
reset();
|
||||
const _id = row.id || ids.value
|
||||
getAuditinfo(_id).then(response => {
|
||||
form.value = response.data;
|
||||
open.value = true;
|
||||
title.value = "修改隐患流程信息";
|
||||
});
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["auditinfoRef"].validate(valid => {
|
||||
if (valid) {
|
||||
if (form.value.id != null) {
|
||||
updateAuditinfo(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
} else {
|
||||
addAuditinfo(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("新增成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
function handleDelete(row) {
|
||||
const _ids = row.id || ids.value;
|
||||
proxy.$modal.confirm('是否确认删除隐患流程信息编号为"' + _ids + '"的数据项?').then(function() {
|
||||
return delAuditinfo(_ids);
|
||||
}).then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download('trouble/auditinfo/export', {
|
||||
...queryParams.value
|
||||
}, `auditinfo_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
|
@ -0,0 +1,316 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="审核表id" prop="auditId">
|
||||
<el-input
|
||||
v-model="queryParams.auditId"
|
||||
placeholder="请输入审核表id"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="文件的url" prop="fileUrl">
|
||||
<el-input
|
||||
v-model="queryParams.fileUrl"
|
||||
placeholder="请输入文件的url"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="删除状态" prop="isDel">
|
||||
<el-input
|
||||
v-model="queryParams.isDel"
|
||||
placeholder="请输入删除状态"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createUser">
|
||||
<el-input
|
||||
v-model="queryParams.createUser"
|
||||
placeholder="请输入创建人"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间" prop="createTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.createTime"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="请选择创建时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改人" prop="updateUser">
|
||||
<el-input
|
||||
v-model="queryParams.updateUser"
|
||||
placeholder="请输入修改人"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改时间" prop="updateTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.updateTime"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="请选择修改时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="Plus"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['trouble:fileinfo:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['trouble:fileinfo:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['trouble:fileinfo:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['trouble:fileinfo:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="fileinfoList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="${comment}" align="center" prop="id" />
|
||||
<el-table-column label="审核表id" align="center" prop="auditId" />
|
||||
<el-table-column label="文件类型" align="center" prop="fileType" />
|
||||
<el-table-column label="文件的url" align="center" prop="fileUrl" />
|
||||
<el-table-column label="删除状态" align="center" prop="isDel" />
|
||||
<el-table-column label="创建人" align="center" prop="createUser" />
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="修改人" align="center" prop="updateUser" />
|
||||
<el-table-column label="修改时间" align="center" prop="updateTime" width="180">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template #default="scope">
|
||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['trouble:fileinfo:edit']">修改</el-button>
|
||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['trouble:fileinfo:remove']">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNum"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改隐患文件信息对话框 -->
|
||||
<el-dialog :title="title" v-model="open" width="500px" append-to-body>
|
||||
<el-form ref="fileinfoRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="审核表id" prop="auditId">
|
||||
<el-input v-model="form.auditId" placeholder="请输入审核表id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="文件的url" prop="fileUrl">
|
||||
<el-input v-model="form.fileUrl" placeholder="请输入文件的url" />
|
||||
</el-form-item>
|
||||
<el-form-item label="删除状态" prop="isDel">
|
||||
<el-input v-model="form.isDel" placeholder="请输入删除状态" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createUser">
|
||||
<el-input v-model="form.createUser" placeholder="请输入创建人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="修改人" prop="updateUser">
|
||||
<el-input v-model="form.updateUser" placeholder="请输入修改人" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="Fileinfo">
|
||||
import { listFileinfo, getFileinfo, delFileinfo, addFileinfo, updateFileinfo } from "@/api/trouble/fileinfo";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const fileinfoList = ref([]);
|
||||
const open = ref(false);
|
||||
const loading = ref(true);
|
||||
const showSearch = ref(true);
|
||||
const ids = ref([]);
|
||||
const single = ref(true);
|
||||
const multiple = ref(true);
|
||||
const total = ref(0);
|
||||
const title = ref("");
|
||||
|
||||
const data = reactive({
|
||||
form: {},
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
auditId: null,
|
||||
fileType: null,
|
||||
fileUrl: null,
|
||||
isDel: null,
|
||||
createUser: null,
|
||||
createTime: null,
|
||||
updateUser: null,
|
||||
updateTime: null
|
||||
},
|
||||
rules: {
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
/** 查询隐患文件信息列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
listFileinfo(queryParams.value).then(response => {
|
||||
fileinfoList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
// 取消按钮
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
reset();
|
||||
}
|
||||
|
||||
// 表单重置
|
||||
function reset() {
|
||||
form.value = {
|
||||
id: null,
|
||||
auditId: null,
|
||||
fileType: null,
|
||||
fileUrl: null,
|
||||
isDel: null,
|
||||
createUser: null,
|
||||
createTime: null,
|
||||
updateUser: null,
|
||||
updateTime: null
|
||||
};
|
||||
proxy.resetForm("fileinfoRef");
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
function handleQuery() {
|
||||
queryParams.value.pageNum = 1;
|
||||
getList();
|
||||
}
|
||||
|
||||
/** 重置按钮操作 */
|
||||
function resetQuery() {
|
||||
proxy.resetForm("queryRef");
|
||||
handleQuery();
|
||||
}
|
||||
|
||||
// 多选框选中数据
|
||||
function handleSelectionChange(selection) {
|
||||
ids.value = selection.map(item => item.id);
|
||||
single.value = selection.length != 1;
|
||||
multiple.value = !selection.length;
|
||||
}
|
||||
|
||||
/** 新增按钮操作 */
|
||||
function handleAdd() {
|
||||
reset();
|
||||
open.value = true;
|
||||
title.value = "添加隐患文件信息";
|
||||
}
|
||||
|
||||
/** 修改按钮操作 */
|
||||
function handleUpdate(row) {
|
||||
reset();
|
||||
const _id = row.id || ids.value
|
||||
getFileinfo(_id).then(response => {
|
||||
form.value = response.data;
|
||||
open.value = true;
|
||||
title.value = "修改隐患文件信息";
|
||||
});
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["fileinfoRef"].validate(valid => {
|
||||
if (valid) {
|
||||
if (form.value.id != null) {
|
||||
updateFileinfo(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
} else {
|
||||
addFileinfo(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("新增成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
function handleDelete(row) {
|
||||
const _ids = row.id || ids.value;
|
||||
proxy.$modal.confirm('是否确认删除隐患文件信息编号为"' + _ids + '"的数据项?').then(function() {
|
||||
return delFileinfo(_ids);
|
||||
}).then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download('trouble/fileinfo/export', {
|
||||
...queryParams.value
|
||||
}, `fileinfo_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
|
@ -0,0 +1,626 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="租户ID" prop="comId">
|
||||
<el-input
|
||||
v-model="queryParams.comId"
|
||||
placeholder="请输入租户ID"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="项目id" prop="projectId">
|
||||
<el-input
|
||||
v-model="queryParams.projectId"
|
||||
placeholder="请输入项目id"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="留痕图片" prop="marksPicture">
|
||||
<el-input
|
||||
v-model="queryParams.marksPicture"
|
||||
placeholder="请输入留痕图片"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="留痕视频" prop="marksVideo">
|
||||
<el-input
|
||||
v-model="queryParams.marksVideo"
|
||||
placeholder="请输入留痕视频"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="整改图片" prop="correctionPicture">
|
||||
<el-input
|
||||
v-model="queryParams.correctionPicture"
|
||||
placeholder="请输入整改图片"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="拍摄位置" prop="problemArea">
|
||||
<el-input
|
||||
v-model="queryParams.problemArea"
|
||||
placeholder="请输入拍摄位置"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="施工部位" prop="workParts">
|
||||
<el-input
|
||||
v-model="queryParams.workParts"
|
||||
placeholder="请输入施工部位"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="整改要求" prop="changeInfo">
|
||||
<el-input
|
||||
v-model="queryParams.changeInfo"
|
||||
placeholder="请输入整改要求"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="主送人姓名" prop="lordSent">
|
||||
<el-input
|
||||
v-model="queryParams.lordSent"
|
||||
placeholder="请输入主送人姓名"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="主送人手机号" prop="lordSentUser">
|
||||
<el-input
|
||||
v-model="queryParams.lordSentUser"
|
||||
placeholder="请输入主送人手机号"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="抄送人姓名" prop="copySend">
|
||||
<el-input
|
||||
v-model="queryParams.copySend"
|
||||
placeholder="请输入抄送人姓名"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="抄送人手机号" prop="copySendUser">
|
||||
<el-input
|
||||
v-model="queryParams.copySendUser"
|
||||
placeholder="请输入抄送人手机号"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="流程状态" prop="checkState">
|
||||
<el-input
|
||||
v-model="queryParams.checkState"
|
||||
placeholder="请输入流程状态"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="整改定位" prop="nickedArea">
|
||||
<el-input
|
||||
v-model="queryParams.nickedArea"
|
||||
placeholder="请输入整改定位"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="整改截至时间" prop="nickedTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.nickedTime"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="请选择整改截至时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="工序名称" prop="processName">
|
||||
<el-input
|
||||
v-model="queryParams.processName"
|
||||
placeholder="请输入工序名称"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="工程名称" prop="projectName">
|
||||
<el-input
|
||||
v-model="queryParams.projectName"
|
||||
placeholder="请输入工程名称"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="留痕说明" prop="nickedInfo">
|
||||
<el-input
|
||||
v-model="queryParams.nickedInfo"
|
||||
placeholder="请输入留痕说明"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核人" prop="checkUser">
|
||||
<el-input
|
||||
v-model="queryParams.checkUser"
|
||||
placeholder="请输入审核人"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核人手机号" prop="checkUserPhone">
|
||||
<el-input
|
||||
v-model="queryParams.checkUserPhone"
|
||||
placeholder="请输入审核人手机号"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="删除状态" prop="isDel">
|
||||
<el-input
|
||||
v-model="queryParams.isDel"
|
||||
placeholder="请输入删除状态"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createUser">
|
||||
<el-input
|
||||
v-model="queryParams.createUser"
|
||||
placeholder="请输入创建人"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间" prop="createTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.createTime"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="请选择创建时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改人" prop="updateUser">
|
||||
<el-input
|
||||
v-model="queryParams.updateUser"
|
||||
placeholder="请输入修改人"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改时间" prop="updateTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.updateTime"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="请选择修改时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="复检人" prop="recheckSend">
|
||||
<el-input
|
||||
v-model="queryParams.recheckSend"
|
||||
placeholder="请输入复检人"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="复检人手机号" prop="recheckSendUser">
|
||||
<el-input
|
||||
v-model="queryParams.recheckSendUser"
|
||||
placeholder="请输入复检人手机号"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="Plus"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['trouble:problemmodify:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['trouble:problemmodify:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['trouble:problemmodify:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['trouble:problemmodify:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="problemmodifyList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="${comment}" align="center" prop="id" />
|
||||
<el-table-column label="租户ID" align="center" prop="comId" />
|
||||
<el-table-column label="项目id" align="center" prop="projectId" />
|
||||
<el-table-column label="信息类型" align="center" prop="infoType" />
|
||||
<el-table-column label="留痕图片" align="center" prop="marksPicture" />
|
||||
<el-table-column label="留痕视频" align="center" prop="marksVideo" />
|
||||
<el-table-column label="整改图片" align="center" prop="correctionPicture" />
|
||||
<el-table-column label="拍摄位置" align="center" prop="problemArea" />
|
||||
<el-table-column label="施工部位" align="center" prop="workParts" />
|
||||
<el-table-column label="整改要求" align="center" prop="changeInfo" />
|
||||
<el-table-column label="主送人姓名" align="center" prop="lordSent" />
|
||||
<el-table-column label="主送人手机号" align="center" prop="lordSentUser" />
|
||||
<el-table-column label="抄送人姓名" align="center" prop="copySend" />
|
||||
<el-table-column label="抄送人手机号" align="center" prop="copySendUser" />
|
||||
<el-table-column label="流程状态" align="center" prop="checkState" />
|
||||
<el-table-column label="整改定位" align="center" prop="nickedArea" />
|
||||
<el-table-column label="整改截至时间" align="center" prop="nickedTime" width="180">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.nickedTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="工程类型" align="center" prop="projectType" />
|
||||
<el-table-column label="工序名称" align="center" prop="processName" />
|
||||
<el-table-column label="工程名称" align="center" prop="projectName" />
|
||||
<el-table-column label="留痕说明" align="center" prop="nickedInfo" />
|
||||
<el-table-column label="审核人" align="center" prop="checkUser" />
|
||||
<el-table-column label="审核人手机号" align="center" prop="checkUserPhone" />
|
||||
<el-table-column label="智能公司展示的图片url" align="center" prop="smarkUrl" />
|
||||
<el-table-column label="删除状态" align="center" prop="isDel" />
|
||||
<el-table-column label="创建人" align="center" prop="createUser" />
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="修改人" align="center" prop="updateUser" />
|
||||
<el-table-column label="修改时间" align="center" prop="updateTime" width="180">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="隐患类型" align="center" prop="dangerType" />
|
||||
<el-table-column label="复检人" align="center" prop="recheckSend" />
|
||||
<el-table-column label="复检人手机号" align="center" prop="recheckSendUser" />
|
||||
<el-table-column label="角色类型" align="center" prop="roleType" />
|
||||
<el-table-column label="问题类型" align="center" prop="problemType" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template #default="scope">
|
||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['trouble:problemmodify:edit']">修改</el-button>
|
||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['trouble:problemmodify:remove']">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNum"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改安全隐患整改对话框 -->
|
||||
<el-dialog :title="title" v-model="open" width="500px" append-to-body>
|
||||
<el-form ref="problemmodifyRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="租户ID" prop="comId">
|
||||
<el-input v-model="form.comId" placeholder="请输入租户ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="项目id" prop="projectId">
|
||||
<el-input v-model="form.projectId" placeholder="请输入项目id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="留痕图片" prop="marksPicture">
|
||||
<el-input v-model="form.marksPicture" placeholder="请输入留痕图片" />
|
||||
</el-form-item>
|
||||
<el-form-item label="留痕视频" prop="marksVideo">
|
||||
<el-input v-model="form.marksVideo" placeholder="请输入留痕视频" />
|
||||
</el-form-item>
|
||||
<el-form-item label="整改图片" prop="correctionPicture">
|
||||
<el-input v-model="form.correctionPicture" placeholder="请输入整改图片" />
|
||||
</el-form-item>
|
||||
<el-form-item label="拍摄位置" prop="problemArea">
|
||||
<el-input v-model="form.problemArea" placeholder="请输入拍摄位置" />
|
||||
</el-form-item>
|
||||
<el-form-item label="施工部位" prop="workParts">
|
||||
<el-input v-model="form.workParts" placeholder="请输入施工部位" />
|
||||
</el-form-item>
|
||||
<el-form-item label="整改要求" prop="changeInfo">
|
||||
<el-input v-model="form.changeInfo" placeholder="请输入整改要求" />
|
||||
</el-form-item>
|
||||
<el-form-item label="主送人姓名" prop="lordSent">
|
||||
<el-input v-model="form.lordSent" placeholder="请输入主送人姓名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="主送人手机号" prop="lordSentUser">
|
||||
<el-input v-model="form.lordSentUser" placeholder="请输入主送人手机号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="抄送人姓名" prop="copySend">
|
||||
<el-input v-model="form.copySend" placeholder="请输入抄送人姓名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="抄送人手机号" prop="copySendUser">
|
||||
<el-input v-model="form.copySendUser" placeholder="请输入抄送人手机号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="流程状态" prop="checkState">
|
||||
<el-input v-model="form.checkState" placeholder="请输入流程状态" />
|
||||
</el-form-item>
|
||||
<el-form-item label="整改定位" prop="nickedArea">
|
||||
<el-input v-model="form.nickedArea" placeholder="请输入整改定位" />
|
||||
</el-form-item>
|
||||
<el-form-item label="整改截至时间" prop="nickedTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.nickedTime"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="请选择整改截至时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="工序名称" prop="processName">
|
||||
<el-input v-model="form.processName" placeholder="请输入工序名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="工程名称" prop="projectName">
|
||||
<el-input v-model="form.projectName" placeholder="请输入工程名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="留痕说明" prop="nickedInfo">
|
||||
<el-input v-model="form.nickedInfo" placeholder="请输入留痕说明" />
|
||||
</el-form-item>
|
||||
<el-form-item label="审核人" prop="checkUser">
|
||||
<el-input v-model="form.checkUser" placeholder="请输入审核人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="审核人手机号" prop="checkUserPhone">
|
||||
<el-input v-model="form.checkUserPhone" placeholder="请输入审核人手机号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="智能公司展示的图片url" prop="smarkUrl">
|
||||
<el-input v-model="form.smarkUrl" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="删除状态" prop="isDel">
|
||||
<el-input v-model="form.isDel" placeholder="请输入删除状态" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createUser">
|
||||
<el-input v-model="form.createUser" placeholder="请输入创建人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="修改人" prop="updateUser">
|
||||
<el-input v-model="form.updateUser" placeholder="请输入修改人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="复检人" prop="recheckSend">
|
||||
<el-input v-model="form.recheckSend" placeholder="请输入复检人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="复检人手机号" prop="recheckSendUser">
|
||||
<el-input v-model="form.recheckSendUser" placeholder="请输入复检人手机号" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="Problemmodify">
|
||||
import { listProblemmodify, getProblemmodify, delProblemmodify, addProblemmodify, updateProblemmodify } from "@/api/trouble/problemmodify";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const problemmodifyList = ref([]);
|
||||
const open = ref(false);
|
||||
const loading = ref(true);
|
||||
const showSearch = ref(true);
|
||||
const ids = ref([]);
|
||||
const single = ref(true);
|
||||
const multiple = ref(true);
|
||||
const total = ref(0);
|
||||
const title = ref("");
|
||||
|
||||
const data = reactive({
|
||||
form: {},
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
comId: null,
|
||||
projectId: null,
|
||||
infoType: null,
|
||||
marksPicture: null,
|
||||
marksVideo: null,
|
||||
correctionPicture: null,
|
||||
problemArea: null,
|
||||
workParts: null,
|
||||
changeInfo: null,
|
||||
lordSent: null,
|
||||
lordSentUser: null,
|
||||
copySend: null,
|
||||
copySendUser: null,
|
||||
checkState: null,
|
||||
nickedArea: null,
|
||||
nickedTime: null,
|
||||
projectType: null,
|
||||
processName: null,
|
||||
projectName: null,
|
||||
nickedInfo: null,
|
||||
checkUser: null,
|
||||
checkUserPhone: null,
|
||||
smarkUrl: null,
|
||||
isDel: null,
|
||||
createUser: null,
|
||||
createTime: null,
|
||||
updateUser: null,
|
||||
updateTime: null,
|
||||
dangerType: null,
|
||||
recheckSend: null,
|
||||
recheckSendUser: null,
|
||||
roleType: null,
|
||||
problemType: null
|
||||
},
|
||||
rules: {
|
||||
comId: [
|
||||
{ required: true, message: "租户ID不能为空", trigger: "blur" }
|
||||
],
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
/** 查询安全隐患整改列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
listProblemmodify(queryParams.value).then(response => {
|
||||
problemmodifyList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
// 取消按钮
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
reset();
|
||||
}
|
||||
|
||||
// 表单重置
|
||||
function reset() {
|
||||
form.value = {
|
||||
id: null,
|
||||
comId: null,
|
||||
projectId: null,
|
||||
infoType: null,
|
||||
marksPicture: null,
|
||||
marksVideo: null,
|
||||
correctionPicture: null,
|
||||
problemArea: null,
|
||||
workParts: null,
|
||||
changeInfo: null,
|
||||
lordSent: null,
|
||||
lordSentUser: null,
|
||||
copySend: null,
|
||||
copySendUser: null,
|
||||
checkState: null,
|
||||
nickedArea: null,
|
||||
nickedTime: null,
|
||||
projectType: null,
|
||||
processName: null,
|
||||
projectName: null,
|
||||
nickedInfo: null,
|
||||
checkUser: null,
|
||||
checkUserPhone: null,
|
||||
smarkUrl: null,
|
||||
isDel: null,
|
||||
createUser: null,
|
||||
createTime: null,
|
||||
updateUser: null,
|
||||
updateTime: null,
|
||||
dangerType: null,
|
||||
recheckSend: null,
|
||||
recheckSendUser: null,
|
||||
roleType: null,
|
||||
problemType: null
|
||||
};
|
||||
proxy.resetForm("problemmodifyRef");
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
function handleQuery() {
|
||||
queryParams.value.pageNum = 1;
|
||||
getList();
|
||||
}
|
||||
|
||||
/** 重置按钮操作 */
|
||||
function resetQuery() {
|
||||
proxy.resetForm("queryRef");
|
||||
handleQuery();
|
||||
}
|
||||
|
||||
// 多选框选中数据
|
||||
function handleSelectionChange(selection) {
|
||||
ids.value = selection.map(item => item.id);
|
||||
single.value = selection.length != 1;
|
||||
multiple.value = !selection.length;
|
||||
}
|
||||
|
||||
/** 新增按钮操作 */
|
||||
function handleAdd() {
|
||||
reset();
|
||||
open.value = true;
|
||||
title.value = "添加安全隐患整改";
|
||||
}
|
||||
|
||||
/** 修改按钮操作 */
|
||||
function handleUpdate(row) {
|
||||
reset();
|
||||
const _id = row.id || ids.value
|
||||
getProblemmodify(_id).then(response => {
|
||||
form.value = response.data;
|
||||
open.value = true;
|
||||
title.value = "修改安全隐患整改";
|
||||
});
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["problemmodifyRef"].validate(valid => {
|
||||
if (valid) {
|
||||
if (form.value.id != null) {
|
||||
updateProblemmodify(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
} else {
|
||||
addProblemmodify(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("新增成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
function handleDelete(row) {
|
||||
const _ids = row.id || ids.value;
|
||||
proxy.$modal.confirm('是否确认删除安全隐患整改编号为"' + _ids + '"的数据项?').then(function() {
|
||||
return delProblemmodify(_ids);
|
||||
}).then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download('trouble/problemmodify/export', {
|
||||
...queryParams.value
|
||||
}, `problemmodify_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
|
@ -0,0 +1,612 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="租户ID" prop="comId">
|
||||
<el-input
|
||||
v-model="queryParams.comId"
|
||||
placeholder="请输入租户ID"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="项目id" prop="projectId">
|
||||
<el-input
|
||||
v-model="queryParams.projectId"
|
||||
placeholder="请输入项目id"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="留痕图片" prop="marksPicture">
|
||||
<el-input
|
||||
v-model="queryParams.marksPicture"
|
||||
placeholder="请输入留痕图片"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="留痕视频" prop="marksVideo">
|
||||
<el-input
|
||||
v-model="queryParams.marksVideo"
|
||||
placeholder="请输入留痕视频"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="拍摄位置" prop="problemArea">
|
||||
<el-input
|
||||
v-model="queryParams.problemArea"
|
||||
placeholder="请输入拍摄位置"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="施工部位" prop="workParts">
|
||||
<el-input
|
||||
v-model="queryParams.workParts"
|
||||
placeholder="请输入施工部位"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="整改要求" prop="changeInfo">
|
||||
<el-input
|
||||
v-model="queryParams.changeInfo"
|
||||
placeholder="请输入整改要求"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="主送人姓名" prop="lordSent">
|
||||
<el-input
|
||||
v-model="queryParams.lordSent"
|
||||
placeholder="请输入主送人姓名"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="主送人手机号" prop="lordSentUser">
|
||||
<el-input
|
||||
v-model="queryParams.lordSentUser"
|
||||
placeholder="请输入主送人手机号"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="抄送人姓名" prop="copySend">
|
||||
<el-input
|
||||
v-model="queryParams.copySend"
|
||||
placeholder="请输入抄送人姓名"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="抄送人手机号" prop="copySendUser">
|
||||
<el-input
|
||||
v-model="queryParams.copySendUser"
|
||||
placeholder="请输入抄送人手机号"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="流程状态" prop="checkState">
|
||||
<el-input
|
||||
v-model="queryParams.checkState"
|
||||
placeholder="请输入流程状态"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="整改定位" prop="nickedArea">
|
||||
<el-input
|
||||
v-model="queryParams.nickedArea"
|
||||
placeholder="请输入整改定位"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="整改截至时间" prop="nickedTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.nickedTime"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="请选择整改截至时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="工序名称" prop="processName">
|
||||
<el-input
|
||||
v-model="queryParams.processName"
|
||||
placeholder="请输入工序名称"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="工程名称" prop="projectName">
|
||||
<el-input
|
||||
v-model="queryParams.projectName"
|
||||
placeholder="请输入工程名称"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="留痕说明" prop="nickedInfo">
|
||||
<el-input
|
||||
v-model="queryParams.nickedInfo"
|
||||
placeholder="请输入留痕说明"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核人" prop="checkUser">
|
||||
<el-input
|
||||
v-model="queryParams.checkUser"
|
||||
placeholder="请输入审核人"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核人手机号" prop="checkUserPhone">
|
||||
<el-input
|
||||
v-model="queryParams.checkUserPhone"
|
||||
placeholder="请输入审核人手机号"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="删除状态" prop="isDel">
|
||||
<el-input
|
||||
v-model="queryParams.isDel"
|
||||
placeholder="请输入删除状态"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createUser">
|
||||
<el-input
|
||||
v-model="queryParams.createUser"
|
||||
placeholder="请输入创建人"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="创建时间" prop="createTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.createTime"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="请选择创建时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改人" prop="updateUser">
|
||||
<el-input
|
||||
v-model="queryParams.updateUser"
|
||||
placeholder="请输入修改人"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改时间" prop="updateTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.updateTime"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="请选择修改时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="复检人" prop="recheckSend">
|
||||
<el-input
|
||||
v-model="queryParams.recheckSend"
|
||||
placeholder="请输入复检人"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="复检人手机号" prop="recheckSendUser">
|
||||
<el-input
|
||||
v-model="queryParams.recheckSendUser"
|
||||
placeholder="请输入复检人手机号"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="Plus"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['trouble:problemmodifyDraft:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['trouble:problemmodifyDraft:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['trouble:problemmodifyDraft:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['trouble:problemmodifyDraft:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="problemmodifyDraftList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="${comment}" align="center" prop="id" />
|
||||
<el-table-column label="租户ID" align="center" prop="comId" />
|
||||
<el-table-column label="项目id" align="center" prop="projectId" />
|
||||
<el-table-column label="信息类型" align="center" prop="infoType" />
|
||||
<el-table-column label="留痕图片" align="center" prop="marksPicture" />
|
||||
<el-table-column label="留痕视频" align="center" prop="marksVideo" />
|
||||
<el-table-column label="拍摄位置" align="center" prop="problemArea" />
|
||||
<el-table-column label="施工部位" align="center" prop="workParts" />
|
||||
<el-table-column label="整改要求" align="center" prop="changeInfo" />
|
||||
<el-table-column label="主送人姓名" align="center" prop="lordSent" />
|
||||
<el-table-column label="主送人手机号" align="center" prop="lordSentUser" />
|
||||
<el-table-column label="抄送人姓名" align="center" prop="copySend" />
|
||||
<el-table-column label="抄送人手机号" align="center" prop="copySendUser" />
|
||||
<el-table-column label="流程状态" align="center" prop="checkState" />
|
||||
<el-table-column label="整改定位" align="center" prop="nickedArea" />
|
||||
<el-table-column label="整改截至时间" align="center" prop="nickedTime" width="180">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.nickedTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="工程类型" align="center" prop="projectType" />
|
||||
<el-table-column label="工序名称" align="center" prop="processName" />
|
||||
<el-table-column label="工程名称" align="center" prop="projectName" />
|
||||
<el-table-column label="留痕说明" align="center" prop="nickedInfo" />
|
||||
<el-table-column label="审核人" align="center" prop="checkUser" />
|
||||
<el-table-column label="审核人手机号" align="center" prop="checkUserPhone" />
|
||||
<el-table-column label="智能公司展示的图片url" align="center" prop="smarkUrl" />
|
||||
<el-table-column label="删除状态" align="center" prop="isDel" />
|
||||
<el-table-column label="创建人" align="center" prop="createUser" />
|
||||
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="修改人" align="center" prop="updateUser" />
|
||||
<el-table-column label="修改时间" align="center" prop="updateTime" width="180">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="隐患类型" align="center" prop="dangerType" />
|
||||
<el-table-column label="复检人" align="center" prop="recheckSend" />
|
||||
<el-table-column label="复检人手机号" align="center" prop="recheckSendUser" />
|
||||
<el-table-column label="角色类型" align="center" prop="roleType" />
|
||||
<el-table-column label="问题类型" align="center" prop="problemType" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template #default="scope">
|
||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['trouble:problemmodifyDraft:edit']">修改</el-button>
|
||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['trouble:problemmodifyDraft:remove']">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNum"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改安全问题草稿对话框 -->
|
||||
<el-dialog :title="title" v-model="open" width="500px" append-to-body>
|
||||
<el-form ref="problemmodifyDraftRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="租户ID" prop="comId">
|
||||
<el-input v-model="form.comId" placeholder="请输入租户ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="项目id" prop="projectId">
|
||||
<el-input v-model="form.projectId" placeholder="请输入项目id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="留痕图片" prop="marksPicture">
|
||||
<el-input v-model="form.marksPicture" placeholder="请输入留痕图片" />
|
||||
</el-form-item>
|
||||
<el-form-item label="留痕视频" prop="marksVideo">
|
||||
<el-input v-model="form.marksVideo" placeholder="请输入留痕视频" />
|
||||
</el-form-item>
|
||||
<el-form-item label="拍摄位置" prop="problemArea">
|
||||
<el-input v-model="form.problemArea" placeholder="请输入拍摄位置" />
|
||||
</el-form-item>
|
||||
<el-form-item label="施工部位" prop="workParts">
|
||||
<el-input v-model="form.workParts" placeholder="请输入施工部位" />
|
||||
</el-form-item>
|
||||
<el-form-item label="整改要求" prop="changeInfo">
|
||||
<el-input v-model="form.changeInfo" placeholder="请输入整改要求" />
|
||||
</el-form-item>
|
||||
<el-form-item label="主送人姓名" prop="lordSent">
|
||||
<el-input v-model="form.lordSent" placeholder="请输入主送人姓名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="主送人手机号" prop="lordSentUser">
|
||||
<el-input v-model="form.lordSentUser" placeholder="请输入主送人手机号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="抄送人姓名" prop="copySend">
|
||||
<el-input v-model="form.copySend" placeholder="请输入抄送人姓名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="抄送人手机号" prop="copySendUser">
|
||||
<el-input v-model="form.copySendUser" placeholder="请输入抄送人手机号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="流程状态" prop="checkState">
|
||||
<el-input v-model="form.checkState" placeholder="请输入流程状态" />
|
||||
</el-form-item>
|
||||
<el-form-item label="整改定位" prop="nickedArea">
|
||||
<el-input v-model="form.nickedArea" placeholder="请输入整改定位" />
|
||||
</el-form-item>
|
||||
<el-form-item label="整改截至时间" prop="nickedTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.nickedTime"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="请选择整改截至时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="工序名称" prop="processName">
|
||||
<el-input v-model="form.processName" placeholder="请输入工序名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="工程名称" prop="projectName">
|
||||
<el-input v-model="form.projectName" placeholder="请输入工程名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="留痕说明" prop="nickedInfo">
|
||||
<el-input v-model="form.nickedInfo" placeholder="请输入留痕说明" />
|
||||
</el-form-item>
|
||||
<el-form-item label="审核人" prop="checkUser">
|
||||
<el-input v-model="form.checkUser" placeholder="请输入审核人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="审核人手机号" prop="checkUserPhone">
|
||||
<el-input v-model="form.checkUserPhone" placeholder="请输入审核人手机号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="智能公司展示的图片url" prop="smarkUrl">
|
||||
<el-input v-model="form.smarkUrl" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="删除状态" prop="isDel">
|
||||
<el-input v-model="form.isDel" placeholder="请输入删除状态" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createUser">
|
||||
<el-input v-model="form.createUser" placeholder="请输入创建人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="修改人" prop="updateUser">
|
||||
<el-input v-model="form.updateUser" placeholder="请输入修改人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="复检人" prop="recheckSend">
|
||||
<el-input v-model="form.recheckSend" placeholder="请输入复检人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="复检人手机号" prop="recheckSendUser">
|
||||
<el-input v-model="form.recheckSendUser" placeholder="请输入复检人手机号" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<div class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="ProblemmodifyDraft">
|
||||
import { listProblemmodifyDraft, getProblemmodifyDraft, delProblemmodifyDraft, addProblemmodifyDraft, updateProblemmodifyDraft } from "@/api/trouble/problemmodifyDraft";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const problemmodifyDraftList = ref([]);
|
||||
const open = ref(false);
|
||||
const loading = ref(true);
|
||||
const showSearch = ref(true);
|
||||
const ids = ref([]);
|
||||
const single = ref(true);
|
||||
const multiple = ref(true);
|
||||
const total = ref(0);
|
||||
const title = ref("");
|
||||
|
||||
const data = reactive({
|
||||
form: {},
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
comId: null,
|
||||
projectId: null,
|
||||
infoType: null,
|
||||
marksPicture: null,
|
||||
marksVideo: null,
|
||||
problemArea: null,
|
||||
workParts: null,
|
||||
changeInfo: null,
|
||||
lordSent: null,
|
||||
lordSentUser: null,
|
||||
copySend: null,
|
||||
copySendUser: null,
|
||||
checkState: null,
|
||||
nickedArea: null,
|
||||
nickedTime: null,
|
||||
projectType: null,
|
||||
processName: null,
|
||||
projectName: null,
|
||||
nickedInfo: null,
|
||||
checkUser: null,
|
||||
checkUserPhone: null,
|
||||
smarkUrl: null,
|
||||
isDel: null,
|
||||
createUser: null,
|
||||
createTime: null,
|
||||
updateUser: null,
|
||||
updateTime: null,
|
||||
dangerType: null,
|
||||
recheckSend: null,
|
||||
recheckSendUser: null,
|
||||
roleType: null,
|
||||
problemType: null
|
||||
},
|
||||
rules: {
|
||||
comId: [
|
||||
{ required: true, message: "租户ID不能为空", trigger: "blur" }
|
||||
],
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
/** 查询安全问题草稿列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
listProblemmodifyDraft(queryParams.value).then(response => {
|
||||
problemmodifyDraftList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
// 取消按钮
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
reset();
|
||||
}
|
||||
|
||||
// 表单重置
|
||||
function reset() {
|
||||
form.value = {
|
||||
id: null,
|
||||
comId: null,
|
||||
projectId: null,
|
||||
infoType: null,
|
||||
marksPicture: null,
|
||||
marksVideo: null,
|
||||
problemArea: null,
|
||||
workParts: null,
|
||||
changeInfo: null,
|
||||
lordSent: null,
|
||||
lordSentUser: null,
|
||||
copySend: null,
|
||||
copySendUser: null,
|
||||
checkState: null,
|
||||
nickedArea: null,
|
||||
nickedTime: null,
|
||||
projectType: null,
|
||||
processName: null,
|
||||
projectName: null,
|
||||
nickedInfo: null,
|
||||
checkUser: null,
|
||||
checkUserPhone: null,
|
||||
smarkUrl: null,
|
||||
isDel: null,
|
||||
createUser: null,
|
||||
createTime: null,
|
||||
updateUser: null,
|
||||
updateTime: null,
|
||||
dangerType: null,
|
||||
recheckSend: null,
|
||||
recheckSendUser: null,
|
||||
roleType: null,
|
||||
problemType: null
|
||||
};
|
||||
proxy.resetForm("problemmodifyDraftRef");
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
function handleQuery() {
|
||||
queryParams.value.pageNum = 1;
|
||||
getList();
|
||||
}
|
||||
|
||||
/** 重置按钮操作 */
|
||||
function resetQuery() {
|
||||
proxy.resetForm("queryRef");
|
||||
handleQuery();
|
||||
}
|
||||
|
||||
// 多选框选中数据
|
||||
function handleSelectionChange(selection) {
|
||||
ids.value = selection.map(item => item.id);
|
||||
single.value = selection.length != 1;
|
||||
multiple.value = !selection.length;
|
||||
}
|
||||
|
||||
/** 新增按钮操作 */
|
||||
function handleAdd() {
|
||||
reset();
|
||||
open.value = true;
|
||||
title.value = "添加安全问题草稿";
|
||||
}
|
||||
|
||||
/** 修改按钮操作 */
|
||||
function handleUpdate(row) {
|
||||
reset();
|
||||
const _id = row.id || ids.value
|
||||
getProblemmodifyDraft(_id).then(response => {
|
||||
form.value = response.data;
|
||||
open.value = true;
|
||||
title.value = "修改安全问题草稿";
|
||||
});
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["problemmodifyDraftRef"].validate(valid => {
|
||||
if (valid) {
|
||||
if (form.value.id != null) {
|
||||
updateProblemmodifyDraft(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
} else {
|
||||
addProblemmodifyDraft(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("新增成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
function handleDelete(row) {
|
||||
const _ids = row.id || ids.value;
|
||||
proxy.$modal.confirm('是否确认删除安全问题草稿编号为"' + _ids + '"的数据项?').then(function() {
|
||||
return delProblemmodifyDraft(_ids);
|
||||
}).then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download('trouble/problemmodifyDraft/export', {
|
||||
...queryParams.value
|
||||
}, `problemmodifyDraft_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
Loading…
Reference in New Issue