安全穿透代码初始化
parent
95317eca42
commit
2287e013a1
|
|
@ -0,0 +1,184 @@
|
|||
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;
|
||||
/**
|
||||
* 检查数据对象 safe_penetration_check
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public class SafePenetrationCheck extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 项目ID */
|
||||
@Excel(name = "项目ID")
|
||||
private Long projectId;
|
||||
|
||||
/** 检查类型 1-横向检查 2-班前 3-班后 4-关键施工 */
|
||||
@Excel(name = "检查类型 1-横向检查 2-班前 3-班后 4-关键施工")
|
||||
private Long checkType;
|
||||
|
||||
/** 检查时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "检查时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date checkDate;
|
||||
|
||||
/** 检查部门 */
|
||||
@Excel(name = "检查部门")
|
||||
private Long deptId;
|
||||
|
||||
/** 被检查人 */
|
||||
@Excel(name = "被检查人")
|
||||
private Long checkedPerson;
|
||||
|
||||
/** 检查图片 */
|
||||
@Excel(name = "检查图片")
|
||||
private String checkedImgs;
|
||||
|
||||
/** 网格点 */
|
||||
@Excel(name = "网格点")
|
||||
private Long gridId;
|
||||
|
||||
/** 施工部位 */
|
||||
@Excel(name = "施工部位")
|
||||
private Long gridRangeId;
|
||||
|
||||
/** 检查意见 0-不同意 1-同意 */
|
||||
@Excel(name = "检查意见 0-不同意 1-同意")
|
||||
private Long inspectionOpinion;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Long state;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
public void setCheckType(Long checkType)
|
||||
{
|
||||
this.checkType = checkType;
|
||||
}
|
||||
|
||||
public Long getCheckType()
|
||||
{
|
||||
return checkType;
|
||||
}
|
||||
public void setCheckDate(Date checkDate)
|
||||
{
|
||||
this.checkDate = checkDate;
|
||||
}
|
||||
|
||||
public Date getCheckDate()
|
||||
{
|
||||
return checkDate;
|
||||
}
|
||||
public void setDeptId(Long deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public Long getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
public void setCheckedPerson(Long checkedPerson)
|
||||
{
|
||||
this.checkedPerson = checkedPerson;
|
||||
}
|
||||
|
||||
public Long getCheckedPerson()
|
||||
{
|
||||
return checkedPerson;
|
||||
}
|
||||
public void setCheckedImgs(String checkedImgs)
|
||||
{
|
||||
this.checkedImgs = checkedImgs;
|
||||
}
|
||||
|
||||
public String getCheckedImgs()
|
||||
{
|
||||
return checkedImgs;
|
||||
}
|
||||
public void setGridId(Long gridId)
|
||||
{
|
||||
this.gridId = gridId;
|
||||
}
|
||||
|
||||
public Long getGridId()
|
||||
{
|
||||
return gridId;
|
||||
}
|
||||
public void setGridRangeId(Long gridRangeId)
|
||||
{
|
||||
this.gridRangeId = gridRangeId;
|
||||
}
|
||||
|
||||
public Long getGridRangeId()
|
||||
{
|
||||
return gridRangeId;
|
||||
}
|
||||
public void setInspectionOpinion(Long inspectionOpinion)
|
||||
{
|
||||
this.inspectionOpinion = inspectionOpinion;
|
||||
}
|
||||
|
||||
public Long getInspectionOpinion()
|
||||
{
|
||||
return inspectionOpinion;
|
||||
}
|
||||
public void setState(Long state)
|
||||
{
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public Long getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("checkType", getCheckType())
|
||||
.append("checkDate", getCheckDate())
|
||||
.append("deptId", getDeptId())
|
||||
.append("checkedPerson", getCheckedPerson())
|
||||
.append("checkedImgs", getCheckedImgs())
|
||||
.append("gridId", getGridId())
|
||||
.append("gridRangeId", getGridRangeId())
|
||||
.append("inspectionOpinion", getInspectionOpinion())
|
||||
.append("state", getState())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,81 @@
|
|||
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;
|
||||
|
||||
/**
|
||||
* 检查数据项对象 safe_penetration_check_data
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public class SafePenetrationCheckData extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 检查ID */
|
||||
@Excel(name = "检查ID")
|
||||
private Long checkId;
|
||||
|
||||
/** 检查项ID */
|
||||
@Excel(name = "检查项ID")
|
||||
private Long itemId;
|
||||
|
||||
/** 是否通过 0-不通过 1-通过 */
|
||||
@Excel(name = "是否通过 0-不通过 1-通过")
|
||||
private Long isPass;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCheckId(Long checkId)
|
||||
{
|
||||
this.checkId = checkId;
|
||||
}
|
||||
|
||||
public Long getCheckId()
|
||||
{
|
||||
return checkId;
|
||||
}
|
||||
public void setItemId(Long itemId)
|
||||
{
|
||||
this.itemId = itemId;
|
||||
}
|
||||
|
||||
public Long getItemId()
|
||||
{
|
||||
return itemId;
|
||||
}
|
||||
public void setIsPass(Long isPass)
|
||||
{
|
||||
this.isPass = isPass;
|
||||
}
|
||||
|
||||
public Long getIsPass()
|
||||
{
|
||||
return isPass;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("checkId", getCheckId())
|
||||
.append("itemId", getItemId())
|
||||
.append("isPass", getIsPass())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,183 @@
|
|||
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;
|
||||
/**
|
||||
* 网格对象 safe_penetration_grid
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public class SafePenetrationGrid extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 项目ID */
|
||||
@Excel(name = "项目ID")
|
||||
private Long projectId;
|
||||
|
||||
/** 网格名称 */
|
||||
@Excel(name = "网格名称")
|
||||
private String gridName;
|
||||
|
||||
/** 网格号 */
|
||||
@Excel(name = "网格号")
|
||||
private Long gridNo;
|
||||
|
||||
/** 安监专务 */
|
||||
@Excel(name = "安监专务")
|
||||
private Long securityCheck;
|
||||
|
||||
/** 网格安全员 */
|
||||
@Excel(name = "网格安全员")
|
||||
private Long gridUser;
|
||||
|
||||
/** 网格长 */
|
||||
@Excel(name = "网格长")
|
||||
private Long gridLeader;
|
||||
|
||||
/** 应急联系人 */
|
||||
@Excel(name = "应急联系人")
|
||||
private Long emergencyContact;
|
||||
|
||||
/** 高峰期作业人员数 */
|
||||
@Excel(name = "高峰期作业人员数")
|
||||
private Long workerCount;
|
||||
|
||||
/** 排序 */
|
||||
@Excel(name = "排序")
|
||||
private Long sorted;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Long state;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
public void setGridName(String gridName)
|
||||
{
|
||||
this.gridName = gridName;
|
||||
}
|
||||
|
||||
public String getGridName()
|
||||
{
|
||||
return gridName;
|
||||
}
|
||||
public void setGridNo(Long gridNo)
|
||||
{
|
||||
this.gridNo = gridNo;
|
||||
}
|
||||
|
||||
public Long getGridNo()
|
||||
{
|
||||
return gridNo;
|
||||
}
|
||||
public void setSecurityCheck(Long securityCheck)
|
||||
{
|
||||
this.securityCheck = securityCheck;
|
||||
}
|
||||
|
||||
public Long getSecurityCheck()
|
||||
{
|
||||
return securityCheck;
|
||||
}
|
||||
public void setGridUser(Long gridUser)
|
||||
{
|
||||
this.gridUser = gridUser;
|
||||
}
|
||||
|
||||
public Long getGridUser()
|
||||
{
|
||||
return gridUser;
|
||||
}
|
||||
public void setGridLeader(Long gridLeader)
|
||||
{
|
||||
this.gridLeader = gridLeader;
|
||||
}
|
||||
|
||||
public Long getGridLeader()
|
||||
{
|
||||
return gridLeader;
|
||||
}
|
||||
public void setEmergencyContact(Long emergencyContact)
|
||||
{
|
||||
this.emergencyContact = emergencyContact;
|
||||
}
|
||||
|
||||
public Long getEmergencyContact()
|
||||
{
|
||||
return emergencyContact;
|
||||
}
|
||||
public void setWorkerCount(Long workerCount)
|
||||
{
|
||||
this.workerCount = workerCount;
|
||||
}
|
||||
|
||||
public Long getWorkerCount()
|
||||
{
|
||||
return workerCount;
|
||||
}
|
||||
public void setSorted(Long sorted)
|
||||
{
|
||||
this.sorted = sorted;
|
||||
}
|
||||
|
||||
public Long getSorted()
|
||||
{
|
||||
return sorted;
|
||||
}
|
||||
public void setState(Long state)
|
||||
{
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public Long getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("gridName", getGridName())
|
||||
.append("gridNo", getGridNo())
|
||||
.append("securityCheck", getSecurityCheck())
|
||||
.append("gridUser", getGridUser())
|
||||
.append("gridLeader", getGridLeader())
|
||||
.append("emergencyContact", getEmergencyContact())
|
||||
.append("workerCount", getWorkerCount())
|
||||
.append("sorted", getSorted())
|
||||
.append("state", getState())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,67 @@
|
|||
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;
|
||||
|
||||
/**
|
||||
* 网格-现场负责人对象 safe_penetration_grid_group
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public class SafePenetrationGridGroup extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 网格ID */
|
||||
@Excel(name = "网格ID")
|
||||
private Long gridId;
|
||||
|
||||
/** 施工员 */
|
||||
@Excel(name = "施工员")
|
||||
private Long groupId;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setGridId(Long gridId)
|
||||
{
|
||||
this.gridId = gridId;
|
||||
}
|
||||
|
||||
public Long getGridId()
|
||||
{
|
||||
return gridId;
|
||||
}
|
||||
public void setGroupId(Long groupId)
|
||||
{
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public Long getGroupId()
|
||||
{
|
||||
return groupId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("gridId", getGridId())
|
||||
.append("groupId", getGroupId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
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;
|
||||
/**
|
||||
* 网格-现场负责人对象 safe_penetration_grid_site_leader
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public class SafePenetrationGridSiteLeader extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 网格ID */
|
||||
@Excel(name = "网格ID")
|
||||
private Long gridId;
|
||||
|
||||
/** 施工员 */
|
||||
@Excel(name = "施工员")
|
||||
private Long userId;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setGridId(Long gridId)
|
||||
{
|
||||
this.gridId = gridId;
|
||||
}
|
||||
|
||||
public Long getGridId()
|
||||
{
|
||||
return gridId;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("gridId", getGridId())
|
||||
.append("userId", getUserId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,67 @@
|
|||
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;
|
||||
|
||||
/**
|
||||
* 网格-施工员对象 safe_penetration_grid_worker
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public class SafePenetrationGridWorker extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 网格ID */
|
||||
@Excel(name = "网格ID")
|
||||
private Long gridId;
|
||||
|
||||
/** 施工员 */
|
||||
@Excel(name = "施工员")
|
||||
private Long userId;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setGridId(Long gridId)
|
||||
{
|
||||
this.gridId = gridId;
|
||||
}
|
||||
|
||||
public Long getGridId()
|
||||
{
|
||||
return gridId;
|
||||
}
|
||||
public void setUserId(Long userId)
|
||||
{
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Long getUserId()
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("gridId", getGridId())
|
||||
.append("userId", getUserId())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,178 @@
|
|||
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;
|
||||
/**
|
||||
* 网格管理配置项对象 safe_penetration_item
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public class SafePenetrationItem extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 项目ID */
|
||||
@Excel(name = "项目ID")
|
||||
private Long projectId;
|
||||
|
||||
/** 父部门id */
|
||||
@Excel(name = "父部门id")
|
||||
private Long parentId;
|
||||
|
||||
/** 条目类型0-条目 1-分类 2-事故 */
|
||||
@Excel(name = "条目类型0-条目 1-分类 2-事故")
|
||||
private Long itemType;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String itemDesc;
|
||||
|
||||
/** 条目类目 1-横向检查 2-纵向检查 3-跟班作业 */
|
||||
@Excel(name = "条目类目 1-横向检查 2-纵向检查 3-跟班作业")
|
||||
private Long itemCatetory;
|
||||
|
||||
/** 外部id */
|
||||
@Excel(name = "外部id")
|
||||
private Long itemKey;
|
||||
|
||||
/** 风险因素 */
|
||||
@Excel(name = "风险因素")
|
||||
private String riskFactor;
|
||||
|
||||
/** 风险等级 1.低风险 2一般风险 3.较大风险 */
|
||||
@Excel(name = "风险等级 1.低风险 2一般风险 3.较大风险")
|
||||
private Long riskLevel;
|
||||
|
||||
/** 控制措施 */
|
||||
@Excel(name = "控制措施")
|
||||
private String controlMeasure;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Long sorted;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
public void setParentId(Long parentId)
|
||||
{
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public Long getParentId()
|
||||
{
|
||||
return parentId;
|
||||
}
|
||||
public void setItemType(Long itemType)
|
||||
{
|
||||
this.itemType = itemType;
|
||||
}
|
||||
|
||||
public Long getItemType()
|
||||
{
|
||||
return itemType;
|
||||
}
|
||||
public void setItemDesc(String itemDesc)
|
||||
{
|
||||
this.itemDesc = itemDesc;
|
||||
}
|
||||
|
||||
public String getItemDesc()
|
||||
{
|
||||
return itemDesc;
|
||||
}
|
||||
public void setItemCatetory(Long itemCatetory)
|
||||
{
|
||||
this.itemCatetory = itemCatetory;
|
||||
}
|
||||
|
||||
public Long getItemCatetory()
|
||||
{
|
||||
return itemCatetory;
|
||||
}
|
||||
public void setItemKey(Long itemKey)
|
||||
{
|
||||
this.itemKey = itemKey;
|
||||
}
|
||||
|
||||
public Long getItemKey()
|
||||
{
|
||||
return itemKey;
|
||||
}
|
||||
public void setRiskFactor(String riskFactor)
|
||||
{
|
||||
this.riskFactor = riskFactor;
|
||||
}
|
||||
|
||||
public String getRiskFactor()
|
||||
{
|
||||
return riskFactor;
|
||||
}
|
||||
public void setRiskLevel(Long riskLevel)
|
||||
{
|
||||
this.riskLevel = riskLevel;
|
||||
}
|
||||
|
||||
public Long getRiskLevel()
|
||||
{
|
||||
return riskLevel;
|
||||
}
|
||||
public void setControlMeasure(String controlMeasure)
|
||||
{
|
||||
this.controlMeasure = controlMeasure;
|
||||
}
|
||||
|
||||
public String getControlMeasure()
|
||||
{
|
||||
return controlMeasure;
|
||||
}
|
||||
public void setSorted(Long sorted)
|
||||
{
|
||||
this.sorted = sorted;
|
||||
}
|
||||
|
||||
public Long getSorted()
|
||||
{
|
||||
return sorted;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("parentId", getParentId())
|
||||
.append("itemType", getItemType())
|
||||
.append("itemDesc", getItemDesc())
|
||||
.append("itemCatetory", getItemCatetory())
|
||||
.append("itemKey", getItemKey())
|
||||
.append("riskFactor", getRiskFactor())
|
||||
.append("riskLevel", getRiskLevel())
|
||||
.append("controlMeasure", getControlMeasure())
|
||||
.append("sorted", getSorted())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,151 @@
|
|||
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;
|
||||
|
||||
/**
|
||||
* 网格-范围对象 safe_penetration_range
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public class SafePenetrationRange extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 网格ID */
|
||||
@Excel(name = "网格ID")
|
||||
private Long gridId;
|
||||
|
||||
/** 工程类型 */
|
||||
@Excel(name = "工程类型")
|
||||
private Long engineeringType;
|
||||
|
||||
/** 工点 */
|
||||
@Excel(name = "工点")
|
||||
private Long workspaceId;
|
||||
|
||||
/** 部位 0-上部结构 1-下部结构 */
|
||||
@Excel(name = "部位 0-上部结构 1-下部结构")
|
||||
private Long position;
|
||||
|
||||
/** 里程DK1-a */
|
||||
@Excel(name = "里程DK1-a")
|
||||
private Long dk1a;
|
||||
|
||||
/** 里程DK1-b */
|
||||
@Excel(name = "里程DK1-b")
|
||||
private Long dk1b;
|
||||
|
||||
/** 里程DK2-a */
|
||||
@Excel(name = "里程DK2-a")
|
||||
private Long dk2a;
|
||||
|
||||
/** 里程DK2-b */
|
||||
@Excel(name = "里程DK2-b")
|
||||
private Long dk2b;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setGridId(Long gridId)
|
||||
{
|
||||
this.gridId = gridId;
|
||||
}
|
||||
|
||||
public Long getGridId()
|
||||
{
|
||||
return gridId;
|
||||
}
|
||||
public void setEngineeringType(Long engineeringType)
|
||||
{
|
||||
this.engineeringType = engineeringType;
|
||||
}
|
||||
|
||||
public Long getEngineeringType()
|
||||
{
|
||||
return engineeringType;
|
||||
}
|
||||
public void setWorkspaceId(Long workspaceId)
|
||||
{
|
||||
this.workspaceId = workspaceId;
|
||||
}
|
||||
|
||||
public Long getWorkspaceId()
|
||||
{
|
||||
return workspaceId;
|
||||
}
|
||||
public void setPosition(Long position)
|
||||
{
|
||||
this.position = position;
|
||||
}
|
||||
|
||||
public Long getPosition()
|
||||
{
|
||||
return position;
|
||||
}
|
||||
public void setDk1a(Long dk1a)
|
||||
{
|
||||
this.dk1a = dk1a;
|
||||
}
|
||||
|
||||
public Long getDk1a()
|
||||
{
|
||||
return dk1a;
|
||||
}
|
||||
public void setDk1b(Long dk1b)
|
||||
{
|
||||
this.dk1b = dk1b;
|
||||
}
|
||||
|
||||
public Long getDk1b()
|
||||
{
|
||||
return dk1b;
|
||||
}
|
||||
public void setDk2a(Long dk2a)
|
||||
{
|
||||
this.dk2a = dk2a;
|
||||
}
|
||||
|
||||
public Long getDk2a()
|
||||
{
|
||||
return dk2a;
|
||||
}
|
||||
public void setDk2b(Long dk2b)
|
||||
{
|
||||
this.dk2b = dk2b;
|
||||
}
|
||||
|
||||
public Long getDk2b()
|
||||
{
|
||||
return dk2b;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("gridId", getGridId())
|
||||
.append("engineeringType", getEngineeringType())
|
||||
.append("workspaceId", getWorkspaceId())
|
||||
.append("position", getPosition())
|
||||
.append("dk1a", getDk1a())
|
||||
.append("dk1b", getDk1b())
|
||||
.append("dk2a", getDk2a())
|
||||
.append("dk2b", getDk2b())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,128 @@
|
|||
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;
|
||||
|
||||
/**
|
||||
* 工点对象 safe_penetration_workspace
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public class SafePenetrationWorkspace extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 项目ID */
|
||||
@Excel(name = "项目ID")
|
||||
private Long projectId;
|
||||
|
||||
/** 节点名称 */
|
||||
@Excel(name = "节点名称")
|
||||
private String nodeName;
|
||||
|
||||
/** 节点类型 */
|
||||
@Excel(name = "节点类型")
|
||||
private Long nodeType;
|
||||
|
||||
/** 工点类型 */
|
||||
@Excel(name = "工点类型")
|
||||
private Long workspaceType;
|
||||
|
||||
/** 排序 */
|
||||
@Excel(name = "排序")
|
||||
private Long sorted;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Long state;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
public void setNodeName(String nodeName)
|
||||
{
|
||||
this.nodeName = nodeName;
|
||||
}
|
||||
|
||||
public String getNodeName()
|
||||
{
|
||||
return nodeName;
|
||||
}
|
||||
public void setNodeType(Long nodeType)
|
||||
{
|
||||
this.nodeType = nodeType;
|
||||
}
|
||||
|
||||
public Long getNodeType()
|
||||
{
|
||||
return nodeType;
|
||||
}
|
||||
public void setWorkspaceType(Long workspaceType)
|
||||
{
|
||||
this.workspaceType = workspaceType;
|
||||
}
|
||||
|
||||
public Long getWorkspaceType()
|
||||
{
|
||||
return workspaceType;
|
||||
}
|
||||
public void setSorted(Long sorted)
|
||||
{
|
||||
this.sorted = sorted;
|
||||
}
|
||||
|
||||
public Long getSorted()
|
||||
{
|
||||
return sorted;
|
||||
}
|
||||
public void setState(Long state)
|
||||
{
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
public Long getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("nodeName", getNodeName())
|
||||
.append("nodeType", getNodeType())
|
||||
.append("workspaceType", getWorkspaceType())
|
||||
.append("sorted", getSorted())
|
||||
.append("state", getState())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationCheckData;
|
||||
|
||||
/**
|
||||
* 检查数据项Mapper接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface SafePenetrationCheckDataMapper
|
||||
{
|
||||
/**
|
||||
* 查询检查数据项
|
||||
*
|
||||
* @param id 检查数据项主键
|
||||
* @return 检查数据项
|
||||
*/
|
||||
public SafePenetrationCheckData selectSafePenetrationCheckDataById(Long id);
|
||||
|
||||
/**
|
||||
* 查询检查数据项列表
|
||||
*
|
||||
* @param safePenetrationCheckData 检查数据项
|
||||
* @return 检查数据项集合
|
||||
*/
|
||||
public List<SafePenetrationCheckData> selectSafePenetrationCheckDataList(SafePenetrationCheckData safePenetrationCheckData);
|
||||
|
||||
/**
|
||||
* 新增检查数据项
|
||||
*
|
||||
* @param safePenetrationCheckData 检查数据项
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationCheckData(SafePenetrationCheckData safePenetrationCheckData);
|
||||
|
||||
/**
|
||||
* 修改检查数据项
|
||||
*
|
||||
* @param safePenetrationCheckData 检查数据项
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationCheckData(SafePenetrationCheckData safePenetrationCheckData);
|
||||
|
||||
/**
|
||||
* 删除检查数据项
|
||||
*
|
||||
* @param id 检查数据项主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationCheckDataById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除检查数据项
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationCheckDataByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationCheck;
|
||||
|
||||
/**
|
||||
* 检查数据Mapper接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface SafePenetrationCheckMapper
|
||||
{
|
||||
/**
|
||||
* 查询检查数据
|
||||
*
|
||||
* @param id 检查数据主键
|
||||
* @return 检查数据
|
||||
*/
|
||||
public SafePenetrationCheck selectSafePenetrationCheckById(Long id);
|
||||
|
||||
/**
|
||||
* 查询检查数据列表
|
||||
*
|
||||
* @param safePenetrationCheck 检查数据
|
||||
* @return 检查数据集合
|
||||
*/
|
||||
public List<SafePenetrationCheck> selectSafePenetrationCheckList(SafePenetrationCheck safePenetrationCheck);
|
||||
|
||||
/**
|
||||
* 新增检查数据
|
||||
*
|
||||
* @param safePenetrationCheck 检查数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationCheck(SafePenetrationCheck safePenetrationCheck);
|
||||
|
||||
/**
|
||||
* 修改检查数据
|
||||
*
|
||||
* @param safePenetrationCheck 检查数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationCheck(SafePenetrationCheck safePenetrationCheck);
|
||||
|
||||
/**
|
||||
* 删除检查数据
|
||||
*
|
||||
* @param id 检查数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationCheckById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除检查数据
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationCheckByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationGridGroup;
|
||||
|
||||
/**
|
||||
* 网格-现场负责人Mapper接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface SafePenetrationGridGroupMapper
|
||||
{
|
||||
/**
|
||||
* 查询网格-现场负责人
|
||||
*
|
||||
* @param id 网格-现场负责人主键
|
||||
* @return 网格-现场负责人
|
||||
*/
|
||||
public SafePenetrationGridGroup selectSafePenetrationGridGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 查询网格-现场负责人列表
|
||||
*
|
||||
* @param safePenetrationGridGroup 网格-现场负责人
|
||||
* @return 网格-现场负责人集合
|
||||
*/
|
||||
public List<SafePenetrationGridGroup> selectSafePenetrationGridGroupList(SafePenetrationGridGroup safePenetrationGridGroup);
|
||||
|
||||
/**
|
||||
* 新增网格-现场负责人
|
||||
*
|
||||
* @param safePenetrationGridGroup 网格-现场负责人
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationGridGroup(SafePenetrationGridGroup safePenetrationGridGroup);
|
||||
|
||||
/**
|
||||
* 修改网格-现场负责人
|
||||
*
|
||||
* @param safePenetrationGridGroup 网格-现场负责人
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationGridGroup(SafePenetrationGridGroup safePenetrationGridGroup);
|
||||
|
||||
/**
|
||||
* 删除网格-现场负责人
|
||||
*
|
||||
* @param id 网格-现场负责人主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationGridGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除网格-现场负责人
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationGridGroupByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationGrid;
|
||||
|
||||
/**
|
||||
* 网格Mapper接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface SafePenetrationGridMapper
|
||||
{
|
||||
/**
|
||||
* 查询网格
|
||||
*
|
||||
* @param id 网格主键
|
||||
* @return 网格
|
||||
*/
|
||||
public SafePenetrationGrid selectSafePenetrationGridById(Long id);
|
||||
|
||||
/**
|
||||
* 查询网格列表
|
||||
*
|
||||
* @param safePenetrationGrid 网格
|
||||
* @return 网格集合
|
||||
*/
|
||||
public List<SafePenetrationGrid> selectSafePenetrationGridList(SafePenetrationGrid safePenetrationGrid);
|
||||
|
||||
/**
|
||||
* 新增网格
|
||||
*
|
||||
* @param safePenetrationGrid 网格
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationGrid(SafePenetrationGrid safePenetrationGrid);
|
||||
|
||||
/**
|
||||
* 修改网格
|
||||
*
|
||||
* @param safePenetrationGrid 网格
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationGrid(SafePenetrationGrid safePenetrationGrid);
|
||||
|
||||
/**
|
||||
* 删除网格
|
||||
*
|
||||
* @param id 网格主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationGridById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除网格
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationGridByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationGridSiteLeader;
|
||||
|
||||
/**
|
||||
* 网格-现场负责人Mapper接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface SafePenetrationGridSiteLeaderMapper
|
||||
{
|
||||
/**
|
||||
* 查询网格-现场负责人
|
||||
*
|
||||
* @param id 网格-现场负责人主键
|
||||
* @return 网格-现场负责人
|
||||
*/
|
||||
public SafePenetrationGridSiteLeader selectSafePenetrationGridSiteLeaderById(Long id);
|
||||
|
||||
/**
|
||||
* 查询网格-现场负责人列表
|
||||
*
|
||||
* @param safePenetrationGridSiteLeader 网格-现场负责人
|
||||
* @return 网格-现场负责人集合
|
||||
*/
|
||||
public List<SafePenetrationGridSiteLeader> selectSafePenetrationGridSiteLeaderList(SafePenetrationGridSiteLeader safePenetrationGridSiteLeader);
|
||||
|
||||
/**
|
||||
* 新增网格-现场负责人
|
||||
*
|
||||
* @param safePenetrationGridSiteLeader 网格-现场负责人
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationGridSiteLeader(SafePenetrationGridSiteLeader safePenetrationGridSiteLeader);
|
||||
|
||||
/**
|
||||
* 修改网格-现场负责人
|
||||
*
|
||||
* @param safePenetrationGridSiteLeader 网格-现场负责人
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationGridSiteLeader(SafePenetrationGridSiteLeader safePenetrationGridSiteLeader);
|
||||
|
||||
/**
|
||||
* 删除网格-现场负责人
|
||||
*
|
||||
* @param id 网格-现场负责人主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationGridSiteLeaderById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除网格-现场负责人
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationGridSiteLeaderByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationGridWorker;
|
||||
|
||||
/**
|
||||
* 网格-施工员Mapper接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface SafePenetrationGridWorkerMapper
|
||||
{
|
||||
/**
|
||||
* 查询网格-施工员
|
||||
*
|
||||
* @param id 网格-施工员主键
|
||||
* @return 网格-施工员
|
||||
*/
|
||||
public SafePenetrationGridWorker selectSafePenetrationGridWorkerById(Long id);
|
||||
|
||||
/**
|
||||
* 查询网格-施工员列表
|
||||
*
|
||||
* @param safePenetrationGridWorker 网格-施工员
|
||||
* @return 网格-施工员集合
|
||||
*/
|
||||
public List<SafePenetrationGridWorker> selectSafePenetrationGridWorkerList(SafePenetrationGridWorker safePenetrationGridWorker);
|
||||
|
||||
/**
|
||||
* 新增网格-施工员
|
||||
*
|
||||
* @param safePenetrationGridWorker 网格-施工员
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationGridWorker(SafePenetrationGridWorker safePenetrationGridWorker);
|
||||
|
||||
/**
|
||||
* 修改网格-施工员
|
||||
*
|
||||
* @param safePenetrationGridWorker 网格-施工员
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationGridWorker(SafePenetrationGridWorker safePenetrationGridWorker);
|
||||
|
||||
/**
|
||||
* 删除网格-施工员
|
||||
*
|
||||
* @param id 网格-施工员主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationGridWorkerById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除网格-施工员
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationGridWorkerByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationItem;
|
||||
|
||||
/**
|
||||
* 网格管理配置项Mapper接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface SafePenetrationItemMapper
|
||||
{
|
||||
/**
|
||||
* 查询网格管理配置项
|
||||
*
|
||||
* @param id 网格管理配置项主键
|
||||
* @return 网格管理配置项
|
||||
*/
|
||||
public SafePenetrationItem selectSafePenetrationItemById(Long id);
|
||||
|
||||
/**
|
||||
* 查询网格管理配置项列表
|
||||
*
|
||||
* @param safePenetrationItem 网格管理配置项
|
||||
* @return 网格管理配置项集合
|
||||
*/
|
||||
public List<SafePenetrationItem> selectSafePenetrationItemList(SafePenetrationItem safePenetrationItem);
|
||||
|
||||
/**
|
||||
* 新增网格管理配置项
|
||||
*
|
||||
* @param safePenetrationItem 网格管理配置项
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationItem(SafePenetrationItem safePenetrationItem);
|
||||
|
||||
/**
|
||||
* 修改网格管理配置项
|
||||
*
|
||||
* @param safePenetrationItem 网格管理配置项
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationItem(SafePenetrationItem safePenetrationItem);
|
||||
|
||||
/**
|
||||
* 删除网格管理配置项
|
||||
*
|
||||
* @param id 网格管理配置项主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationItemById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除网格管理配置项
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationItemByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationRange;
|
||||
|
||||
/**
|
||||
* 网格-范围Mapper接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface SafePenetrationRangeMapper
|
||||
{
|
||||
/**
|
||||
* 查询网格-范围
|
||||
*
|
||||
* @param id 网格-范围主键
|
||||
* @return 网格-范围
|
||||
*/
|
||||
public SafePenetrationRange selectSafePenetrationRangeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询网格-范围列表
|
||||
*
|
||||
* @param safePenetrationRange 网格-范围
|
||||
* @return 网格-范围集合
|
||||
*/
|
||||
public List<SafePenetrationRange> selectSafePenetrationRangeList(SafePenetrationRange safePenetrationRange);
|
||||
|
||||
/**
|
||||
* 新增网格-范围
|
||||
*
|
||||
* @param safePenetrationRange 网格-范围
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationRange(SafePenetrationRange safePenetrationRange);
|
||||
|
||||
/**
|
||||
* 修改网格-范围
|
||||
*
|
||||
* @param safePenetrationRange 网格-范围
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationRange(SafePenetrationRange safePenetrationRange);
|
||||
|
||||
/**
|
||||
* 删除网格-范围
|
||||
*
|
||||
* @param id 网格-范围主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationRangeById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除网格-范围
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationRangeByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationWorkspace;
|
||||
|
||||
/**
|
||||
* 工点Mapper接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface SafePenetrationWorkspaceMapper
|
||||
{
|
||||
/**
|
||||
* 查询工点
|
||||
*
|
||||
* @param id 工点主键
|
||||
* @return 工点
|
||||
*/
|
||||
public SafePenetrationWorkspace selectSafePenetrationWorkspaceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询工点列表
|
||||
*
|
||||
* @param safePenetrationWorkspace 工点
|
||||
* @return 工点集合
|
||||
*/
|
||||
public List<SafePenetrationWorkspace> selectSafePenetrationWorkspaceList(SafePenetrationWorkspace safePenetrationWorkspace);
|
||||
|
||||
/**
|
||||
* 新增工点
|
||||
*
|
||||
* @param safePenetrationWorkspace 工点
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationWorkspace(SafePenetrationWorkspace safePenetrationWorkspace);
|
||||
|
||||
/**
|
||||
* 修改工点
|
||||
*
|
||||
* @param safePenetrationWorkspace 工点
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationWorkspace(SafePenetrationWorkspace safePenetrationWorkspace);
|
||||
|
||||
/**
|
||||
* 删除工点
|
||||
*
|
||||
* @param id 工点主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationWorkspaceById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除工点
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationWorkspaceByIds(Long[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
<?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.SafePenetrationCheckDataMapper">
|
||||
|
||||
<resultMap type="SafePenetrationCheckData" id="SafePenetrationCheckDataResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="checkId" column="check_id" />
|
||||
<result property="itemId" column="item_id" />
|
||||
<result property="isPass" column="is_pass" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSafePenetrationCheckDataVo">
|
||||
select id, check_id, item_id, is_pass from safe_penetration_check_data
|
||||
</sql>
|
||||
|
||||
<select id="selectSafePenetrationCheckDataList" parameterType="SafePenetrationCheckData" resultMap="SafePenetrationCheckDataResult">
|
||||
<include refid="selectSafePenetrationCheckDataVo"/>
|
||||
<where>
|
||||
<if test="checkId != null "> and check_id = #{checkId}</if>
|
||||
<if test="itemId != null "> and item_id = #{itemId}</if>
|
||||
<if test="isPass != null "> and is_pass = #{isPass}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSafePenetrationCheckDataById" parameterType="Long" resultMap="SafePenetrationCheckDataResult">
|
||||
<include refid="selectSafePenetrationCheckDataVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSafePenetrationCheckData" parameterType="SafePenetrationCheckData" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into safe_penetration_check_data
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="checkId != null">check_id,</if>
|
||||
<if test="itemId != null">item_id,</if>
|
||||
<if test="isPass != null">is_pass,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="checkId != null">#{checkId},</if>
|
||||
<if test="itemId != null">#{itemId},</if>
|
||||
<if test="isPass != null">#{isPass},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSafePenetrationCheckData" parameterType="SafePenetrationCheckData">
|
||||
update safe_penetration_check_data
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="checkId != null">check_id = #{checkId},</if>
|
||||
<if test="itemId != null">item_id = #{itemId},</if>
|
||||
<if test="isPass != null">is_pass = #{isPass},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSafePenetrationCheckDataById" parameterType="Long">
|
||||
delete from safe_penetration_check_data where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSafePenetrationCheckDataByIds" parameterType="String">
|
||||
delete from safe_penetration_check_data where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,121 @@
|
|||
<?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.SafePenetrationCheckMapper">
|
||||
|
||||
<resultMap type="SafePenetrationCheck" id="SafePenetrationCheckResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="projectId" column="project_id" />
|
||||
<result property="checkType" column="check_type" />
|
||||
<result property="checkDate" column="check_date" />
|
||||
<result property="deptId" column="dept_id" />
|
||||
<result property="checkedPerson" column="checked_person" />
|
||||
<result property="checkedImgs" column="checked_imgs" />
|
||||
<result property="gridId" column="grid_id" />
|
||||
<result property="gridRangeId" column="grid_range_id" />
|
||||
<result property="inspectionOpinion" column="inspection_opinion" />
|
||||
<result property="state" column="state" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSafePenetrationCheckVo">
|
||||
select id, project_id, check_type, check_date, dept_id, checked_person, checked_imgs, grid_id, grid_range_id, inspection_opinion, state, remark, create_by, create_time, update_by, update_time from safe_penetration_check
|
||||
</sql>
|
||||
|
||||
<select id="selectSafePenetrationCheckList" parameterType="SafePenetrationCheck" resultMap="SafePenetrationCheckResult">
|
||||
<include refid="selectSafePenetrationCheckVo"/>
|
||||
<where>
|
||||
<if test="projectId != null "> and project_id = #{projectId}</if>
|
||||
<if test="checkType != null "> and check_type = #{checkType}</if>
|
||||
<if test="checkDate != null "> and check_date = #{checkDate}</if>
|
||||
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
||||
<if test="checkedPerson != null "> and checked_person = #{checkedPerson}</if>
|
||||
<if test="checkedImgs != null and checkedImgs != ''"> and checked_imgs = #{checkedImgs}</if>
|
||||
<if test="gridId != null "> and grid_id = #{gridId}</if>
|
||||
<if test="gridRangeId != null "> and grid_range_id = #{gridRangeId}</if>
|
||||
<if test="inspectionOpinion != null "> and inspection_opinion = #{inspectionOpinion}</if>
|
||||
<if test="state != null "> and state = #{state}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSafePenetrationCheckById" parameterType="Long" resultMap="SafePenetrationCheckResult">
|
||||
<include refid="selectSafePenetrationCheckVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSafePenetrationCheck" parameterType="SafePenetrationCheck" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into safe_penetration_check
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="projectId != null">project_id,</if>
|
||||
<if test="checkType != null">check_type,</if>
|
||||
<if test="checkDate != null">check_date,</if>
|
||||
<if test="deptId != null">dept_id,</if>
|
||||
<if test="checkedPerson != null">checked_person,</if>
|
||||
<if test="checkedImgs != null">checked_imgs,</if>
|
||||
<if test="gridId != null">grid_id,</if>
|
||||
<if test="gridRangeId != null">grid_range_id,</if>
|
||||
<if test="inspectionOpinion != null">inspection_opinion,</if>
|
||||
<if test="state != null">state,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="projectId != null">#{projectId},</if>
|
||||
<if test="checkType != null">#{checkType},</if>
|
||||
<if test="checkDate != null">#{checkDate},</if>
|
||||
<if test="deptId != null">#{deptId},</if>
|
||||
<if test="checkedPerson != null">#{checkedPerson},</if>
|
||||
<if test="checkedImgs != null">#{checkedImgs},</if>
|
||||
<if test="gridId != null">#{gridId},</if>
|
||||
<if test="gridRangeId != null">#{gridRangeId},</if>
|
||||
<if test="inspectionOpinion != null">#{inspectionOpinion},</if>
|
||||
<if test="state != null">#{state},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSafePenetrationCheck" parameterType="SafePenetrationCheck">
|
||||
update safe_penetration_check
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="projectId != null">project_id = #{projectId},</if>
|
||||
<if test="checkType != null">check_type = #{checkType},</if>
|
||||
<if test="checkDate != null">check_date = #{checkDate},</if>
|
||||
<if test="deptId != null">dept_id = #{deptId},</if>
|
||||
<if test="checkedPerson != null">checked_person = #{checkedPerson},</if>
|
||||
<if test="checkedImgs != null">checked_imgs = #{checkedImgs},</if>
|
||||
<if test="gridId != null">grid_id = #{gridId},</if>
|
||||
<if test="gridRangeId != null">grid_range_id = #{gridRangeId},</if>
|
||||
<if test="inspectionOpinion != null">inspection_opinion = #{inspectionOpinion},</if>
|
||||
<if test="state != null">state = #{state},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSafePenetrationCheckById" parameterType="Long">
|
||||
delete from safe_penetration_check where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSafePenetrationCheckByIds" parameterType="String">
|
||||
delete from safe_penetration_check where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
<?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.SafePenetrationGridGroupMapper">
|
||||
|
||||
<resultMap type="SafePenetrationGridGroup" id="SafePenetrationGridGroupResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="gridId" column="grid_id" />
|
||||
<result property="groupId" column="group_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSafePenetrationGridGroupVo">
|
||||
select id, grid_id, group_id from safe_penetration_grid_group
|
||||
</sql>
|
||||
|
||||
<select id="selectSafePenetrationGridGroupList" parameterType="SafePenetrationGridGroup" resultMap="SafePenetrationGridGroupResult">
|
||||
<include refid="selectSafePenetrationGridGroupVo"/>
|
||||
<where>
|
||||
<if test="gridId != null "> and grid_id = #{gridId}</if>
|
||||
<if test="groupId != null "> and group_id = #{groupId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSafePenetrationGridGroupById" parameterType="Long" resultMap="SafePenetrationGridGroupResult">
|
||||
<include refid="selectSafePenetrationGridGroupVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSafePenetrationGridGroup" parameterType="SafePenetrationGridGroup" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into safe_penetration_grid_group
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="gridId != null">grid_id,</if>
|
||||
<if test="groupId != null">group_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="gridId != null">#{gridId},</if>
|
||||
<if test="groupId != null">#{groupId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSafePenetrationGridGroup" parameterType="SafePenetrationGridGroup">
|
||||
update safe_penetration_grid_group
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="gridId != null">grid_id = #{gridId},</if>
|
||||
<if test="groupId != null">group_id = #{groupId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSafePenetrationGridGroupById" parameterType="Long">
|
||||
delete from safe_penetration_grid_group where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSafePenetrationGridGroupByIds" parameterType="String">
|
||||
delete from safe_penetration_grid_group where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,121 @@
|
|||
<?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.SafePenetrationGridMapper">
|
||||
|
||||
<resultMap type="SafePenetrationGrid" id="SafePenetrationGridResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="projectId" column="project_id" />
|
||||
<result property="gridName" column="grid_name" />
|
||||
<result property="gridNo" column="grid_no" />
|
||||
<result property="securityCheck" column="security_check" />
|
||||
<result property="gridUser" column="grid_user" />
|
||||
<result property="gridLeader" column="grid_leader" />
|
||||
<result property="emergencyContact" column="emergency_contact" />
|
||||
<result property="workerCount" column="worker_count" />
|
||||
<result property="sorted" column="sorted" />
|
||||
<result property="state" column="state" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSafePenetrationGridVo">
|
||||
select id, project_id, grid_name, grid_no, security_check, grid_user, grid_leader, emergency_contact, worker_count, sorted, state, remark, create_by, create_time, update_by, update_time from safe_penetration_grid
|
||||
</sql>
|
||||
|
||||
<select id="selectSafePenetrationGridList" parameterType="SafePenetrationGrid" resultMap="SafePenetrationGridResult">
|
||||
<include refid="selectSafePenetrationGridVo"/>
|
||||
<where>
|
||||
<if test="projectId != null "> and project_id = #{projectId}</if>
|
||||
<if test="gridName != null and gridName != ''"> and grid_name like concat('%', #{gridName}, '%')</if>
|
||||
<if test="gridNo != null "> and grid_no = #{gridNo}</if>
|
||||
<if test="securityCheck != null "> and security_check = #{securityCheck}</if>
|
||||
<if test="gridUser != null "> and grid_user = #{gridUser}</if>
|
||||
<if test="gridLeader != null "> and grid_leader = #{gridLeader}</if>
|
||||
<if test="emergencyContact != null "> and emergency_contact = #{emergencyContact}</if>
|
||||
<if test="workerCount != null "> and worker_count = #{workerCount}</if>
|
||||
<if test="sorted != null "> and sorted = #{sorted}</if>
|
||||
<if test="state != null "> and state = #{state}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSafePenetrationGridById" parameterType="Long" resultMap="SafePenetrationGridResult">
|
||||
<include refid="selectSafePenetrationGridVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSafePenetrationGrid" parameterType="SafePenetrationGrid" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into safe_penetration_grid
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="projectId != null">project_id,</if>
|
||||
<if test="gridName != null">grid_name,</if>
|
||||
<if test="gridNo != null">grid_no,</if>
|
||||
<if test="securityCheck != null">security_check,</if>
|
||||
<if test="gridUser != null">grid_user,</if>
|
||||
<if test="gridLeader != null">grid_leader,</if>
|
||||
<if test="emergencyContact != null">emergency_contact,</if>
|
||||
<if test="workerCount != null">worker_count,</if>
|
||||
<if test="sorted != null">sorted,</if>
|
||||
<if test="state != null">state,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="projectId != null">#{projectId},</if>
|
||||
<if test="gridName != null">#{gridName},</if>
|
||||
<if test="gridNo != null">#{gridNo},</if>
|
||||
<if test="securityCheck != null">#{securityCheck},</if>
|
||||
<if test="gridUser != null">#{gridUser},</if>
|
||||
<if test="gridLeader != null">#{gridLeader},</if>
|
||||
<if test="emergencyContact != null">#{emergencyContact},</if>
|
||||
<if test="workerCount != null">#{workerCount},</if>
|
||||
<if test="sorted != null">#{sorted},</if>
|
||||
<if test="state != null">#{state},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSafePenetrationGrid" parameterType="SafePenetrationGrid">
|
||||
update safe_penetration_grid
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="projectId != null">project_id = #{projectId},</if>
|
||||
<if test="gridName != null">grid_name = #{gridName},</if>
|
||||
<if test="gridNo != null">grid_no = #{gridNo},</if>
|
||||
<if test="securityCheck != null">security_check = #{securityCheck},</if>
|
||||
<if test="gridUser != null">grid_user = #{gridUser},</if>
|
||||
<if test="gridLeader != null">grid_leader = #{gridLeader},</if>
|
||||
<if test="emergencyContact != null">emergency_contact = #{emergencyContact},</if>
|
||||
<if test="workerCount != null">worker_count = #{workerCount},</if>
|
||||
<if test="sorted != null">sorted = #{sorted},</if>
|
||||
<if test="state != null">state = #{state},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSafePenetrationGridById" parameterType="Long">
|
||||
delete from safe_penetration_grid where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSafePenetrationGridByIds" parameterType="String">
|
||||
delete from safe_penetration_grid where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
<?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.SafePenetrationGridSiteLeaderMapper">
|
||||
|
||||
<resultMap type="SafePenetrationGridSiteLeader" id="SafePenetrationGridSiteLeaderResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="gridId" column="grid_id" />
|
||||
<result property="userId" column="user_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSafePenetrationGridSiteLeaderVo">
|
||||
select id, grid_id, user_id from safe_penetration_grid_site_leader
|
||||
</sql>
|
||||
|
||||
<select id="selectSafePenetrationGridSiteLeaderList" parameterType="SafePenetrationGridSiteLeader" resultMap="SafePenetrationGridSiteLeaderResult">
|
||||
<include refid="selectSafePenetrationGridSiteLeaderVo"/>
|
||||
<where>
|
||||
<if test="gridId != null "> and grid_id = #{gridId}</if>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSafePenetrationGridSiteLeaderById" parameterType="Long" resultMap="SafePenetrationGridSiteLeaderResult">
|
||||
<include refid="selectSafePenetrationGridSiteLeaderVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSafePenetrationGridSiteLeader" parameterType="SafePenetrationGridSiteLeader" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into safe_penetration_grid_site_leader
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="gridId != null">grid_id,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="gridId != null">#{gridId},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSafePenetrationGridSiteLeader" parameterType="SafePenetrationGridSiteLeader">
|
||||
update safe_penetration_grid_site_leader
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="gridId != null">grid_id = #{gridId},</if>
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSafePenetrationGridSiteLeaderById" parameterType="Long">
|
||||
delete from safe_penetration_grid_site_leader where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSafePenetrationGridSiteLeaderByIds" parameterType="String">
|
||||
delete from safe_penetration_grid_site_leader where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
<?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.SafePenetrationGridWorkerMapper">
|
||||
|
||||
<resultMap type="SafePenetrationGridWorker" id="SafePenetrationGridWorkerResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="gridId" column="grid_id" />
|
||||
<result property="userId" column="user_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSafePenetrationGridWorkerVo">
|
||||
select id, grid_id, user_id from safe_penetration_grid_worker
|
||||
</sql>
|
||||
|
||||
<select id="selectSafePenetrationGridWorkerList" parameterType="SafePenetrationGridWorker" resultMap="SafePenetrationGridWorkerResult">
|
||||
<include refid="selectSafePenetrationGridWorkerVo"/>
|
||||
<where>
|
||||
<if test="gridId != null "> and grid_id = #{gridId}</if>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSafePenetrationGridWorkerById" parameterType="Long" resultMap="SafePenetrationGridWorkerResult">
|
||||
<include refid="selectSafePenetrationGridWorkerVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSafePenetrationGridWorker" parameterType="SafePenetrationGridWorker" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into safe_penetration_grid_worker
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="gridId != null">grid_id,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="gridId != null">#{gridId},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSafePenetrationGridWorker" parameterType="SafePenetrationGridWorker">
|
||||
update safe_penetration_grid_worker
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="gridId != null">grid_id = #{gridId},</if>
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSafePenetrationGridWorkerById" parameterType="Long">
|
||||
delete from safe_penetration_grid_worker where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSafePenetrationGridWorkerByIds" parameterType="String">
|
||||
delete from safe_penetration_grid_worker where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,101 @@
|
|||
<?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.SafePenetrationItemMapper">
|
||||
|
||||
<resultMap type="SafePenetrationItem" id="SafePenetrationItemResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="projectId" column="project_id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="itemType" column="item_type" />
|
||||
<result property="itemDesc" column="item_desc" />
|
||||
<result property="itemCatetory" column="item_catetory" />
|
||||
<result property="itemKey" column="item_key" />
|
||||
<result property="riskFactor" column="risk_factor" />
|
||||
<result property="riskLevel" column="risk_level" />
|
||||
<result property="controlMeasure" column="control_measure" />
|
||||
<result property="sorted" column="sorted" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSafePenetrationItemVo">
|
||||
select id, project_id, parent_id, item_type, item_desc, item_catetory, item_key, risk_factor, risk_level, control_measure, sorted from safe_penetration_item
|
||||
</sql>
|
||||
|
||||
<select id="selectSafePenetrationItemList" parameterType="SafePenetrationItem" resultMap="SafePenetrationItemResult">
|
||||
<include refid="selectSafePenetrationItemVo"/>
|
||||
<where>
|
||||
<if test="projectId != null "> and project_id = #{projectId}</if>
|
||||
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
||||
<if test="itemType != null "> and item_type = #{itemType}</if>
|
||||
<if test="itemDesc != null and itemDesc != ''"> and item_desc = #{itemDesc}</if>
|
||||
<if test="itemCatetory != null "> and item_catetory = #{itemCatetory}</if>
|
||||
<if test="itemKey != null "> and item_key = #{itemKey}</if>
|
||||
<if test="riskFactor != null and riskFactor != ''"> and risk_factor = #{riskFactor}</if>
|
||||
<if test="riskLevel != null "> and risk_level = #{riskLevel}</if>
|
||||
<if test="controlMeasure != null and controlMeasure != ''"> and control_measure = #{controlMeasure}</if>
|
||||
<if test="sorted != null "> and sorted = #{sorted}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSafePenetrationItemById" parameterType="Long" resultMap="SafePenetrationItemResult">
|
||||
<include refid="selectSafePenetrationItemVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSafePenetrationItem" parameterType="SafePenetrationItem" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into safe_penetration_item
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="projectId != null">project_id,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="itemType != null">item_type,</if>
|
||||
<if test="itemDesc != null">item_desc,</if>
|
||||
<if test="itemCatetory != null">item_catetory,</if>
|
||||
<if test="itemKey != null">item_key,</if>
|
||||
<if test="riskFactor != null">risk_factor,</if>
|
||||
<if test="riskLevel != null">risk_level,</if>
|
||||
<if test="controlMeasure != null">control_measure,</if>
|
||||
<if test="sorted != null">sorted,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="projectId != null">#{projectId},</if>
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
<if test="itemType != null">#{itemType},</if>
|
||||
<if test="itemDesc != null">#{itemDesc},</if>
|
||||
<if test="itemCatetory != null">#{itemCatetory},</if>
|
||||
<if test="itemKey != null">#{itemKey},</if>
|
||||
<if test="riskFactor != null">#{riskFactor},</if>
|
||||
<if test="riskLevel != null">#{riskLevel},</if>
|
||||
<if test="controlMeasure != null">#{controlMeasure},</if>
|
||||
<if test="sorted != null">#{sorted},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSafePenetrationItem" parameterType="SafePenetrationItem">
|
||||
update safe_penetration_item
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="projectId != null">project_id = #{projectId},</if>
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="itemType != null">item_type = #{itemType},</if>
|
||||
<if test="itemDesc != null">item_desc = #{itemDesc},</if>
|
||||
<if test="itemCatetory != null">item_catetory = #{itemCatetory},</if>
|
||||
<if test="itemKey != null">item_key = #{itemKey},</if>
|
||||
<if test="riskFactor != null">risk_factor = #{riskFactor},</if>
|
||||
<if test="riskLevel != null">risk_level = #{riskLevel},</if>
|
||||
<if test="controlMeasure != null">control_measure = #{controlMeasure},</if>
|
||||
<if test="sorted != null">sorted = #{sorted},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSafePenetrationItemById" parameterType="Long">
|
||||
delete from safe_penetration_item where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSafePenetrationItemByIds" parameterType="String">
|
||||
delete from safe_penetration_item 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.SafePenetrationRangeMapper">
|
||||
|
||||
<resultMap type="SafePenetrationRange" id="SafePenetrationRangeResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="gridId" column="grid_id" />
|
||||
<result property="engineeringType" column="engineering_type" />
|
||||
<result property="workspaceId" column="workspace_id" />
|
||||
<result property="position" column="position" />
|
||||
<result property="dk1a" column="dk1a" />
|
||||
<result property="dk1b" column="dk1b" />
|
||||
<result property="dk2a" column="dk2a" />
|
||||
<result property="dk2b" column="dk2b" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSafePenetrationRangeVo">
|
||||
select id, grid_id, engineering_type, workspace_id, position, dk1a, dk1b, dk2a, dk2b from safe_penetration_range
|
||||
</sql>
|
||||
|
||||
<select id="selectSafePenetrationRangeList" parameterType="SafePenetrationRange" resultMap="SafePenetrationRangeResult">
|
||||
<include refid="selectSafePenetrationRangeVo"/>
|
||||
<where>
|
||||
<if test="gridId != null "> and grid_id = #{gridId}</if>
|
||||
<if test="engineeringType != null "> and engineering_type = #{engineeringType}</if>
|
||||
<if test="workspaceId != null "> and workspace_id = #{workspaceId}</if>
|
||||
<if test="position != null "> and position = #{position}</if>
|
||||
<if test="dk1a != null "> and dk1a = #{dk1a}</if>
|
||||
<if test="dk1b != null "> and dk1b = #{dk1b}</if>
|
||||
<if test="dk2a != null "> and dk2a = #{dk2a}</if>
|
||||
<if test="dk2b != null "> and dk2b = #{dk2b}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSafePenetrationRangeById" parameterType="Long" resultMap="SafePenetrationRangeResult">
|
||||
<include refid="selectSafePenetrationRangeVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSafePenetrationRange" parameterType="SafePenetrationRange" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into safe_penetration_range
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="gridId != null">grid_id,</if>
|
||||
<if test="engineeringType != null">engineering_type,</if>
|
||||
<if test="workspaceId != null">workspace_id,</if>
|
||||
<if test="position != null">position,</if>
|
||||
<if test="dk1a != null">dk1a,</if>
|
||||
<if test="dk1b != null">dk1b,</if>
|
||||
<if test="dk2a != null">dk2a,</if>
|
||||
<if test="dk2b != null">dk2b,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="gridId != null">#{gridId},</if>
|
||||
<if test="engineeringType != null">#{engineeringType},</if>
|
||||
<if test="workspaceId != null">#{workspaceId},</if>
|
||||
<if test="position != null">#{position},</if>
|
||||
<if test="dk1a != null">#{dk1a},</if>
|
||||
<if test="dk1b != null">#{dk1b},</if>
|
||||
<if test="dk2a != null">#{dk2a},</if>
|
||||
<if test="dk2b != null">#{dk2b},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSafePenetrationRange" parameterType="SafePenetrationRange">
|
||||
update safe_penetration_range
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="gridId != null">grid_id = #{gridId},</if>
|
||||
<if test="engineeringType != null">engineering_type = #{engineeringType},</if>
|
||||
<if test="workspaceId != null">workspace_id = #{workspaceId},</if>
|
||||
<if test="position != null">position = #{position},</if>
|
||||
<if test="dk1a != null">dk1a = #{dk1a},</if>
|
||||
<if test="dk1b != null">dk1b = #{dk1b},</if>
|
||||
<if test="dk2a != null">dk2a = #{dk2a},</if>
|
||||
<if test="dk2b != null">dk2b = #{dk2b},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSafePenetrationRangeById" parameterType="Long">
|
||||
delete from safe_penetration_range where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSafePenetrationRangeByIds" parameterType="String">
|
||||
delete from safe_penetration_range where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,101 @@
|
|||
<?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.SafePenetrationWorkspaceMapper">
|
||||
|
||||
<resultMap type="SafePenetrationWorkspace" id="SafePenetrationWorkspaceResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="projectId" column="project_id" />
|
||||
<result property="nodeName" column="node_name" />
|
||||
<result property="nodeType" column="node_type" />
|
||||
<result property="workspaceType" column="workspace_type" />
|
||||
<result property="sorted" column="sorted" />
|
||||
<result property="state" column="state" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSafePenetrationWorkspaceVo">
|
||||
select id, project_id, node_name, node_type, workspace_type, sorted, state, remark, create_by, create_time, update_by, update_time from safe_penetration_workspace
|
||||
</sql>
|
||||
|
||||
<select id="selectSafePenetrationWorkspaceList" parameterType="SafePenetrationWorkspace" resultMap="SafePenetrationWorkspaceResult">
|
||||
<include refid="selectSafePenetrationWorkspaceVo"/>
|
||||
<where>
|
||||
<if test="projectId != null "> and project_id = #{projectId}</if>
|
||||
<if test="nodeName != null and nodeName != ''"> and node_name like concat('%', #{nodeName}, '%')</if>
|
||||
<if test="nodeType != null "> and node_type = #{nodeType}</if>
|
||||
<if test="workspaceType != null "> and workspace_type = #{workspaceType}</if>
|
||||
<if test="sorted != null "> and sorted = #{sorted}</if>
|
||||
<if test="state != null "> and state = #{state}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSafePenetrationWorkspaceById" parameterType="Long" resultMap="SafePenetrationWorkspaceResult">
|
||||
<include refid="selectSafePenetrationWorkspaceVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertSafePenetrationWorkspace" parameterType="SafePenetrationWorkspace" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into safe_penetration_workspace
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="projectId != null">project_id,</if>
|
||||
<if test="nodeName != null">node_name,</if>
|
||||
<if test="nodeType != null">node_type,</if>
|
||||
<if test="workspaceType != null">workspace_type,</if>
|
||||
<if test="sorted != null">sorted,</if>
|
||||
<if test="state != null">state,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="projectId != null">#{projectId},</if>
|
||||
<if test="nodeName != null">#{nodeName},</if>
|
||||
<if test="nodeType != null">#{nodeType},</if>
|
||||
<if test="workspaceType != null">#{workspaceType},</if>
|
||||
<if test="sorted != null">#{sorted},</if>
|
||||
<if test="state != null">#{state},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSafePenetrationWorkspace" parameterType="SafePenetrationWorkspace">
|
||||
update safe_penetration_workspace
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="projectId != null">project_id = #{projectId},</if>
|
||||
<if test="nodeName != null">node_name = #{nodeName},</if>
|
||||
<if test="nodeType != null">node_type = #{nodeType},</if>
|
||||
<if test="workspaceType != null">workspace_type = #{workspaceType},</if>
|
||||
<if test="sorted != null">sorted = #{sorted},</if>
|
||||
<if test="state != null">state = #{state},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSafePenetrationWorkspaceById" parameterType="Long">
|
||||
delete from safe_penetration_workspace where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSafePenetrationWorkspaceByIds" parameterType="String">
|
||||
delete from safe_penetration_workspace where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,109 @@
|
|||
package com.yanzhu.manage.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
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;
|
||||
import com.yanzhu.manage.domain.SafePenetrationCheck;
|
||||
import com.yanzhu.manage.service.ISafePenetrationCheckService;
|
||||
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.manage.domain.SafePenetrationRange;
|
||||
import com.yanzhu.manage.service.ISafePenetrationRangeService;
|
||||
|
||||
/**
|
||||
* 检查数据Controller
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/safePenetrationCheck")
|
||||
public class SafePenetrationCheckController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISafePenetrationCheckService safePenetrationCheckService;
|
||||
|
||||
/**
|
||||
* 查询检查数据列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationCheck:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SafePenetrationCheck safePenetrationCheck)
|
||||
{
|
||||
startPage();
|
||||
List<SafePenetrationCheck> list = safePenetrationCheckService.selectSafePenetrationCheckList(safePenetrationCheck);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出检查数据列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationCheck:export")
|
||||
@Log(title = "检查数据", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SafePenetrationCheck safePenetrationCheck)
|
||||
{
|
||||
List<SafePenetrationCheck> list = safePenetrationCheckService.selectSafePenetrationCheckList(safePenetrationCheck);
|
||||
ExcelUtil<SafePenetrationCheck> util = new ExcelUtil<SafePenetrationCheck>(SafePenetrationCheck.class);
|
||||
util.exportExcel(response, list, "检查数据数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取检查数据详细信息
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationCheck:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(safePenetrationCheckService.selectSafePenetrationCheckById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检查数据
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationCheck:add")
|
||||
@Log(title = "检查数据", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SafePenetrationCheck safePenetrationCheck)
|
||||
{
|
||||
return toAjax(safePenetrationCheckService.insertSafePenetrationCheck(safePenetrationCheck));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检查数据
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationCheck:edit")
|
||||
@Log(title = "检查数据", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SafePenetrationCheck safePenetrationCheck)
|
||||
{
|
||||
return toAjax(safePenetrationCheckService.updateSafePenetrationCheck(safePenetrationCheck));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检查数据
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationCheck:remove")
|
||||
@Log(title = "检查数据", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(safePenetrationCheckService.deleteSafePenetrationCheckByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,109 @@
|
|||
package com.yanzhu.manage.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
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;
|
||||
import com.yanzhu.manage.domain.SafePenetrationCheckData;
|
||||
import com.yanzhu.manage.service.ISafePenetrationCheckDataService;
|
||||
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.manage.domain.SafePenetrationRange;
|
||||
import com.yanzhu.manage.service.ISafePenetrationRangeService;
|
||||
|
||||
/**
|
||||
* 检查数据项Controller
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/safePenetrationCheckData")
|
||||
public class SafePenetrationCheckDataController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISafePenetrationCheckDataService safePenetrationCheckDataService;
|
||||
|
||||
/**
|
||||
* 查询检查数据项列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationCheckData:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SafePenetrationCheckData safePenetrationCheckData)
|
||||
{
|
||||
startPage();
|
||||
List<SafePenetrationCheckData> list = safePenetrationCheckDataService.selectSafePenetrationCheckDataList(safePenetrationCheckData);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出检查数据项列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationCheckData:export")
|
||||
@Log(title = "检查数据项", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SafePenetrationCheckData safePenetrationCheckData)
|
||||
{
|
||||
List<SafePenetrationCheckData> list = safePenetrationCheckDataService.selectSafePenetrationCheckDataList(safePenetrationCheckData);
|
||||
ExcelUtil<SafePenetrationCheckData> util = new ExcelUtil<SafePenetrationCheckData>(SafePenetrationCheckData.class);
|
||||
util.exportExcel(response, list, "检查数据项数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取检查数据项详细信息
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationCheckData:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(safePenetrationCheckDataService.selectSafePenetrationCheckDataById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检查数据项
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationCheckData:add")
|
||||
@Log(title = "检查数据项", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SafePenetrationCheckData safePenetrationCheckData)
|
||||
{
|
||||
return toAjax(safePenetrationCheckDataService.insertSafePenetrationCheckData(safePenetrationCheckData));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检查数据项
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationCheckData:edit")
|
||||
@Log(title = "检查数据项", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SafePenetrationCheckData safePenetrationCheckData)
|
||||
{
|
||||
return toAjax(safePenetrationCheckDataService.updateSafePenetrationCheckData(safePenetrationCheckData));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检查数据项
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationCheckData:remove")
|
||||
@Log(title = "检查数据项", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(safePenetrationCheckDataService.deleteSafePenetrationCheckDataByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
package com.yanzhu.manage.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
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;
|
||||
import com.yanzhu.manage.domain.SafePenetrationGrid;
|
||||
import com.yanzhu.manage.service.ISafePenetrationGridService;
|
||||
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.manage.domain.SafePenetrationRange;
|
||||
import com.yanzhu.manage.service.ISafePenetrationRangeService;
|
||||
/**
|
||||
* 网格Controller
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/safePenetrationGrid")
|
||||
public class SafePenetrationGridController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISafePenetrationGridService safePenetrationGridService;
|
||||
|
||||
/**
|
||||
* 查询网格列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGrid:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SafePenetrationGrid safePenetrationGrid)
|
||||
{
|
||||
startPage();
|
||||
List<SafePenetrationGrid> list = safePenetrationGridService.selectSafePenetrationGridList(safePenetrationGrid);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出网格列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGrid:export")
|
||||
@Log(title = "网格", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SafePenetrationGrid safePenetrationGrid)
|
||||
{
|
||||
List<SafePenetrationGrid> list = safePenetrationGridService.selectSafePenetrationGridList(safePenetrationGrid);
|
||||
ExcelUtil<SafePenetrationGrid> util = new ExcelUtil<SafePenetrationGrid>(SafePenetrationGrid.class);
|
||||
util.exportExcel(response, list, "网格数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取网格详细信息
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGrid:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(safePenetrationGridService.selectSafePenetrationGridById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增网格
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGrid:add")
|
||||
@Log(title = "网格", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SafePenetrationGrid safePenetrationGrid)
|
||||
{
|
||||
return toAjax(safePenetrationGridService.insertSafePenetrationGrid(safePenetrationGrid));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改网格
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGrid:edit")
|
||||
@Log(title = "网格", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SafePenetrationGrid safePenetrationGrid)
|
||||
{
|
||||
return toAjax(safePenetrationGridService.updateSafePenetrationGrid(safePenetrationGrid));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除网格
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGrid:remove")
|
||||
@Log(title = "网格", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(safePenetrationGridService.deleteSafePenetrationGridByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,109 @@
|
|||
package com.yanzhu.manage.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
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;
|
||||
import com.yanzhu.manage.domain.SafePenetrationGridGroup;
|
||||
import com.yanzhu.manage.service.ISafePenetrationGridGroupService;
|
||||
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.manage.domain.SafePenetrationRange;
|
||||
import com.yanzhu.manage.service.ISafePenetrationRangeService;
|
||||
|
||||
/**
|
||||
* 网格-现场负责人Controller
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/safePenetrationGridGroup")
|
||||
public class SafePenetrationGridGroupController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISafePenetrationGridGroupService safePenetrationGridGroupService;
|
||||
|
||||
/**
|
||||
* 查询网格-现场负责人列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridGroup:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SafePenetrationGridGroup safePenetrationGridGroup)
|
||||
{
|
||||
startPage();
|
||||
List<SafePenetrationGridGroup> list = safePenetrationGridGroupService.selectSafePenetrationGridGroupList(safePenetrationGridGroup);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出网格-现场负责人列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridGroup:export")
|
||||
@Log(title = "网格-现场负责人", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SafePenetrationGridGroup safePenetrationGridGroup)
|
||||
{
|
||||
List<SafePenetrationGridGroup> list = safePenetrationGridGroupService.selectSafePenetrationGridGroupList(safePenetrationGridGroup);
|
||||
ExcelUtil<SafePenetrationGridGroup> util = new ExcelUtil<SafePenetrationGridGroup>(SafePenetrationGridGroup.class);
|
||||
util.exportExcel(response, list, "网格-现场负责人数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取网格-现场负责人详细信息
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridGroup:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(safePenetrationGridGroupService.selectSafePenetrationGridGroupById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增网格-现场负责人
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridGroup:add")
|
||||
@Log(title = "网格-现场负责人", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SafePenetrationGridGroup safePenetrationGridGroup)
|
||||
{
|
||||
return toAjax(safePenetrationGridGroupService.insertSafePenetrationGridGroup(safePenetrationGridGroup));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改网格-现场负责人
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridGroup:edit")
|
||||
@Log(title = "网格-现场负责人", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SafePenetrationGridGroup safePenetrationGridGroup)
|
||||
{
|
||||
return toAjax(safePenetrationGridGroupService.updateSafePenetrationGridGroup(safePenetrationGridGroup));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除网格-现场负责人
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridGroup:remove")
|
||||
@Log(title = "网格-现场负责人", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(safePenetrationGridGroupService.deleteSafePenetrationGridGroupByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,109 @@
|
|||
package com.yanzhu.manage.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
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;
|
||||
import com.yanzhu.manage.domain.SafePenetrationGridSiteLeader;
|
||||
import com.yanzhu.manage.service.ISafePenetrationGridSiteLeaderService;
|
||||
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.manage.domain.SafePenetrationRange;
|
||||
import com.yanzhu.manage.service.ISafePenetrationRangeService;
|
||||
|
||||
/**
|
||||
* 网格-现场负责人Controller
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/safePenetrationGridSiteLeader")
|
||||
public class SafePenetrationGridSiteLeaderController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISafePenetrationGridSiteLeaderService safePenetrationGridSiteLeaderService;
|
||||
|
||||
/**
|
||||
* 查询网格-现场负责人列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridSiteLeader:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SafePenetrationGridSiteLeader safePenetrationGridSiteLeader)
|
||||
{
|
||||
startPage();
|
||||
List<SafePenetrationGridSiteLeader> list = safePenetrationGridSiteLeaderService.selectSafePenetrationGridSiteLeaderList(safePenetrationGridSiteLeader);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出网格-现场负责人列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridSiteLeader:export")
|
||||
@Log(title = "网格-现场负责人", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SafePenetrationGridSiteLeader safePenetrationGridSiteLeader)
|
||||
{
|
||||
List<SafePenetrationGridSiteLeader> list = safePenetrationGridSiteLeaderService.selectSafePenetrationGridSiteLeaderList(safePenetrationGridSiteLeader);
|
||||
ExcelUtil<SafePenetrationGridSiteLeader> util = new ExcelUtil<SafePenetrationGridSiteLeader>(SafePenetrationGridSiteLeader.class);
|
||||
util.exportExcel(response, list, "网格-现场负责人数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取网格-现场负责人详细信息
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridSiteLeader:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(safePenetrationGridSiteLeaderService.selectSafePenetrationGridSiteLeaderById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增网格-现场负责人
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridSiteLeader:add")
|
||||
@Log(title = "网格-现场负责人", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SafePenetrationGridSiteLeader safePenetrationGridSiteLeader)
|
||||
{
|
||||
return toAjax(safePenetrationGridSiteLeaderService.insertSafePenetrationGridSiteLeader(safePenetrationGridSiteLeader));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改网格-现场负责人
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridSiteLeader:edit")
|
||||
@Log(title = "网格-现场负责人", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SafePenetrationGridSiteLeader safePenetrationGridSiteLeader)
|
||||
{
|
||||
return toAjax(safePenetrationGridSiteLeaderService.updateSafePenetrationGridSiteLeader(safePenetrationGridSiteLeader));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除网格-现场负责人
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridSiteLeader:remove")
|
||||
@Log(title = "网格-现场负责人", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(safePenetrationGridSiteLeaderService.deleteSafePenetrationGridSiteLeaderByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
package com.yanzhu.manage.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
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;
|
||||
import com.yanzhu.manage.domain.SafePenetrationGridWorker;
|
||||
import com.yanzhu.manage.service.ISafePenetrationGridWorkerService;
|
||||
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.manage.domain.SafePenetrationRange;
|
||||
import com.yanzhu.manage.service.ISafePenetrationRangeService;
|
||||
/**
|
||||
* 网格-施工员Controller
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/safePenetrationGridWorker")
|
||||
public class SafePenetrationGridWorkerController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISafePenetrationGridWorkerService safePenetrationGridWorkerService;
|
||||
|
||||
/**
|
||||
* 查询网格-施工员列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridWorker:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SafePenetrationGridWorker safePenetrationGridWorker)
|
||||
{
|
||||
startPage();
|
||||
List<SafePenetrationGridWorker> list = safePenetrationGridWorkerService.selectSafePenetrationGridWorkerList(safePenetrationGridWorker);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出网格-施工员列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridWorker:export")
|
||||
@Log(title = "网格-施工员", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SafePenetrationGridWorker safePenetrationGridWorker)
|
||||
{
|
||||
List<SafePenetrationGridWorker> list = safePenetrationGridWorkerService.selectSafePenetrationGridWorkerList(safePenetrationGridWorker);
|
||||
ExcelUtil<SafePenetrationGridWorker> util = new ExcelUtil<SafePenetrationGridWorker>(SafePenetrationGridWorker.class);
|
||||
util.exportExcel(response, list, "网格-施工员数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取网格-施工员详细信息
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridWorker:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(safePenetrationGridWorkerService.selectSafePenetrationGridWorkerById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增网格-施工员
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridWorker:add")
|
||||
@Log(title = "网格-施工员", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SafePenetrationGridWorker safePenetrationGridWorker)
|
||||
{
|
||||
return toAjax(safePenetrationGridWorkerService.insertSafePenetrationGridWorker(safePenetrationGridWorker));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改网格-施工员
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridWorker:edit")
|
||||
@Log(title = "网格-施工员", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SafePenetrationGridWorker safePenetrationGridWorker)
|
||||
{
|
||||
return toAjax(safePenetrationGridWorkerService.updateSafePenetrationGridWorker(safePenetrationGridWorker));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除网格-施工员
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationGridWorker:remove")
|
||||
@Log(title = "网格-施工员", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(safePenetrationGridWorkerService.deleteSafePenetrationGridWorkerByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,109 @@
|
|||
package com.yanzhu.manage.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
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;
|
||||
import com.yanzhu.manage.domain.SafePenetrationItem;
|
||||
import com.yanzhu.manage.service.ISafePenetrationItemService;
|
||||
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.manage.domain.SafePenetrationRange;
|
||||
import com.yanzhu.manage.service.ISafePenetrationRangeService;
|
||||
|
||||
/**
|
||||
* 网格管理配置项Controller
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/safePenetrationItem")
|
||||
public class SafePenetrationItemController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISafePenetrationItemService safePenetrationItemService;
|
||||
|
||||
/**
|
||||
* 查询网格管理配置项列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationItem:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SafePenetrationItem safePenetrationItem)
|
||||
{
|
||||
startPage();
|
||||
List<SafePenetrationItem> list = safePenetrationItemService.selectSafePenetrationItemList(safePenetrationItem);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出网格管理配置项列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationItem:export")
|
||||
@Log(title = "网格管理配置项", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SafePenetrationItem safePenetrationItem)
|
||||
{
|
||||
List<SafePenetrationItem> list = safePenetrationItemService.selectSafePenetrationItemList(safePenetrationItem);
|
||||
ExcelUtil<SafePenetrationItem> util = new ExcelUtil<SafePenetrationItem>(SafePenetrationItem.class);
|
||||
util.exportExcel(response, list, "网格管理配置项数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取网格管理配置项详细信息
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationItem:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(safePenetrationItemService.selectSafePenetrationItemById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增网格管理配置项
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationItem:add")
|
||||
@Log(title = "网格管理配置项", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SafePenetrationItem safePenetrationItem)
|
||||
{
|
||||
return toAjax(safePenetrationItemService.insertSafePenetrationItem(safePenetrationItem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改网格管理配置项
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationItem:edit")
|
||||
@Log(title = "网格管理配置项", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SafePenetrationItem safePenetrationItem)
|
||||
{
|
||||
return toAjax(safePenetrationItemService.updateSafePenetrationItem(safePenetrationItem));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除网格管理配置项
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationItem:remove")
|
||||
@Log(title = "网格管理配置项", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(safePenetrationItemService.deleteSafePenetrationItemByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
package com.yanzhu.manage.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
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;
|
||||
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.manage.domain.SafePenetrationRange;
|
||||
import com.yanzhu.manage.service.ISafePenetrationRangeService;
|
||||
|
||||
|
||||
/**
|
||||
* 网格-范围Controller
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/safePenetrationRange")
|
||||
public class SafePenetrationRangeController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISafePenetrationRangeService safePenetrationRangeService;
|
||||
|
||||
/**
|
||||
* 查询网格-范围列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationRange:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SafePenetrationRange safePenetrationRange)
|
||||
{
|
||||
startPage();
|
||||
List<SafePenetrationRange> list = safePenetrationRangeService.selectSafePenetrationRangeList(safePenetrationRange);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出网格-范围列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationRange:export")
|
||||
@Log(title = "网格-范围", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SafePenetrationRange safePenetrationRange)
|
||||
{
|
||||
List<SafePenetrationRange> list = safePenetrationRangeService.selectSafePenetrationRangeList(safePenetrationRange);
|
||||
ExcelUtil<SafePenetrationRange> util = new ExcelUtil<SafePenetrationRange>(SafePenetrationRange.class);
|
||||
util.exportExcel(response, list, "网格-范围数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取网格-范围详细信息
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationRange:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(safePenetrationRangeService.selectSafePenetrationRangeById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增网格-范围
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationRange:add")
|
||||
@Log(title = "网格-范围", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SafePenetrationRange safePenetrationRange)
|
||||
{
|
||||
return toAjax(safePenetrationRangeService.insertSafePenetrationRange(safePenetrationRange));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改网格-范围
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationRange:edit")
|
||||
@Log(title = "网格-范围", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SafePenetrationRange safePenetrationRange)
|
||||
{
|
||||
return toAjax(safePenetrationRangeService.updateSafePenetrationRange(safePenetrationRange));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除网格-范围
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationRange:remove")
|
||||
@Log(title = "网格-范围", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(safePenetrationRangeService.deleteSafePenetrationRangeByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,109 @@
|
|||
package com.yanzhu.manage.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
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;
|
||||
import com.yanzhu.manage.domain.SafePenetrationWorkspace;
|
||||
import com.yanzhu.manage.service.ISafePenetrationWorkspaceService;
|
||||
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.manage.domain.SafePenetrationRange;
|
||||
import com.yanzhu.manage.service.ISafePenetrationRangeService;
|
||||
|
||||
/**
|
||||
* 工点Controller
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/safePenetrationWorkspace")
|
||||
public class SafePenetrationWorkspaceController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISafePenetrationWorkspaceService safePenetrationWorkspaceService;
|
||||
|
||||
/**
|
||||
* 查询工点列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationWorkspace:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SafePenetrationWorkspace safePenetrationWorkspace)
|
||||
{
|
||||
startPage();
|
||||
List<SafePenetrationWorkspace> list = safePenetrationWorkspaceService.selectSafePenetrationWorkspaceList(safePenetrationWorkspace);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出工点列表
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationWorkspace:export")
|
||||
@Log(title = "工点", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SafePenetrationWorkspace safePenetrationWorkspace)
|
||||
{
|
||||
List<SafePenetrationWorkspace> list = safePenetrationWorkspaceService.selectSafePenetrationWorkspaceList(safePenetrationWorkspace);
|
||||
ExcelUtil<SafePenetrationWorkspace> util = new ExcelUtil<SafePenetrationWorkspace>(SafePenetrationWorkspace.class);
|
||||
util.exportExcel(response, list, "工点数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取工点详细信息
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationWorkspace:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(safePenetrationWorkspaceService.selectSafePenetrationWorkspaceById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增工点
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationWorkspace:add")
|
||||
@Log(title = "工点", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SafePenetrationWorkspace safePenetrationWorkspace)
|
||||
{
|
||||
return toAjax(safePenetrationWorkspaceService.insertSafePenetrationWorkspace(safePenetrationWorkspace));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改工点
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationWorkspace:edit")
|
||||
@Log(title = "工点", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SafePenetrationWorkspace safePenetrationWorkspace)
|
||||
{
|
||||
return toAjax(safePenetrationWorkspaceService.updateSafePenetrationWorkspace(safePenetrationWorkspace));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除工点
|
||||
*/
|
||||
@RequiresPermissions("manage:safePenetrationWorkspace:remove")
|
||||
@Log(title = "工点", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(safePenetrationWorkspaceService.deleteSafePenetrationWorkspaceByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationCheckData;
|
||||
|
||||
/**
|
||||
* 检查数据项Service接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface ISafePenetrationCheckDataService
|
||||
{
|
||||
/**
|
||||
* 查询检查数据项
|
||||
*
|
||||
* @param id 检查数据项主键
|
||||
* @return 检查数据项
|
||||
*/
|
||||
public SafePenetrationCheckData selectSafePenetrationCheckDataById(Long id);
|
||||
|
||||
/**
|
||||
* 查询检查数据项列表
|
||||
*
|
||||
* @param safePenetrationCheckData 检查数据项
|
||||
* @return 检查数据项集合
|
||||
*/
|
||||
public List<SafePenetrationCheckData> selectSafePenetrationCheckDataList(SafePenetrationCheckData safePenetrationCheckData);
|
||||
|
||||
/**
|
||||
* 新增检查数据项
|
||||
*
|
||||
* @param safePenetrationCheckData 检查数据项
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationCheckData(SafePenetrationCheckData safePenetrationCheckData);
|
||||
|
||||
/**
|
||||
* 修改检查数据项
|
||||
*
|
||||
* @param safePenetrationCheckData 检查数据项
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationCheckData(SafePenetrationCheckData safePenetrationCheckData);
|
||||
|
||||
/**
|
||||
* 批量删除检查数据项
|
||||
*
|
||||
* @param ids 需要删除的检查数据项主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationCheckDataByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除检查数据项信息
|
||||
*
|
||||
* @param id 检查数据项主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationCheckDataById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationCheck;
|
||||
|
||||
/**
|
||||
* 检查数据Service接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface ISafePenetrationCheckService
|
||||
{
|
||||
/**
|
||||
* 查询检查数据
|
||||
*
|
||||
* @param id 检查数据主键
|
||||
* @return 检查数据
|
||||
*/
|
||||
public SafePenetrationCheck selectSafePenetrationCheckById(Long id);
|
||||
|
||||
/**
|
||||
* 查询检查数据列表
|
||||
*
|
||||
* @param safePenetrationCheck 检查数据
|
||||
* @return 检查数据集合
|
||||
*/
|
||||
public List<SafePenetrationCheck> selectSafePenetrationCheckList(SafePenetrationCheck safePenetrationCheck);
|
||||
|
||||
/**
|
||||
* 新增检查数据
|
||||
*
|
||||
* @param safePenetrationCheck 检查数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationCheck(SafePenetrationCheck safePenetrationCheck);
|
||||
|
||||
/**
|
||||
* 修改检查数据
|
||||
*
|
||||
* @param safePenetrationCheck 检查数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationCheck(SafePenetrationCheck safePenetrationCheck);
|
||||
|
||||
/**
|
||||
* 批量删除检查数据
|
||||
*
|
||||
* @param ids 需要删除的检查数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationCheckByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除检查数据信息
|
||||
*
|
||||
* @param id 检查数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationCheckById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationGridGroup;
|
||||
|
||||
/**
|
||||
* 网格-现场负责人Service接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface ISafePenetrationGridGroupService
|
||||
{
|
||||
/**
|
||||
* 查询网格-现场负责人
|
||||
*
|
||||
* @param id 网格-现场负责人主键
|
||||
* @return 网格-现场负责人
|
||||
*/
|
||||
public SafePenetrationGridGroup selectSafePenetrationGridGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 查询网格-现场负责人列表
|
||||
*
|
||||
* @param safePenetrationGridGroup 网格-现场负责人
|
||||
* @return 网格-现场负责人集合
|
||||
*/
|
||||
public List<SafePenetrationGridGroup> selectSafePenetrationGridGroupList(SafePenetrationGridGroup safePenetrationGridGroup);
|
||||
|
||||
/**
|
||||
* 新增网格-现场负责人
|
||||
*
|
||||
* @param safePenetrationGridGroup 网格-现场负责人
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationGridGroup(SafePenetrationGridGroup safePenetrationGridGroup);
|
||||
|
||||
/**
|
||||
* 修改网格-现场负责人
|
||||
*
|
||||
* @param safePenetrationGridGroup 网格-现场负责人
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationGridGroup(SafePenetrationGridGroup safePenetrationGridGroup);
|
||||
|
||||
/**
|
||||
* 批量删除网格-现场负责人
|
||||
*
|
||||
* @param ids 需要删除的网格-现场负责人主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationGridGroupByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除网格-现场负责人信息
|
||||
*
|
||||
* @param id 网格-现场负责人主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationGridGroupById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationGrid;
|
||||
|
||||
/**
|
||||
* 网格Service接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface ISafePenetrationGridService
|
||||
{
|
||||
/**
|
||||
* 查询网格
|
||||
*
|
||||
* @param id 网格主键
|
||||
* @return 网格
|
||||
*/
|
||||
public SafePenetrationGrid selectSafePenetrationGridById(Long id);
|
||||
|
||||
/**
|
||||
* 查询网格列表
|
||||
*
|
||||
* @param safePenetrationGrid 网格
|
||||
* @return 网格集合
|
||||
*/
|
||||
public List<SafePenetrationGrid> selectSafePenetrationGridList(SafePenetrationGrid safePenetrationGrid);
|
||||
|
||||
/**
|
||||
* 新增网格
|
||||
*
|
||||
* @param safePenetrationGrid 网格
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationGrid(SafePenetrationGrid safePenetrationGrid);
|
||||
|
||||
/**
|
||||
* 修改网格
|
||||
*
|
||||
* @param safePenetrationGrid 网格
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationGrid(SafePenetrationGrid safePenetrationGrid);
|
||||
|
||||
/**
|
||||
* 批量删除网格
|
||||
*
|
||||
* @param ids 需要删除的网格主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationGridByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除网格信息
|
||||
*
|
||||
* @param id 网格主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationGridById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationGridSiteLeader;
|
||||
|
||||
/**
|
||||
* 网格-现场负责人Service接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface ISafePenetrationGridSiteLeaderService
|
||||
{
|
||||
/**
|
||||
* 查询网格-现场负责人
|
||||
*
|
||||
* @param id 网格-现场负责人主键
|
||||
* @return 网格-现场负责人
|
||||
*/
|
||||
public SafePenetrationGridSiteLeader selectSafePenetrationGridSiteLeaderById(Long id);
|
||||
|
||||
/**
|
||||
* 查询网格-现场负责人列表
|
||||
*
|
||||
* @param safePenetrationGridSiteLeader 网格-现场负责人
|
||||
* @return 网格-现场负责人集合
|
||||
*/
|
||||
public List<SafePenetrationGridSiteLeader> selectSafePenetrationGridSiteLeaderList(SafePenetrationGridSiteLeader safePenetrationGridSiteLeader);
|
||||
|
||||
/**
|
||||
* 新增网格-现场负责人
|
||||
*
|
||||
* @param safePenetrationGridSiteLeader 网格-现场负责人
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationGridSiteLeader(SafePenetrationGridSiteLeader safePenetrationGridSiteLeader);
|
||||
|
||||
/**
|
||||
* 修改网格-现场负责人
|
||||
*
|
||||
* @param safePenetrationGridSiteLeader 网格-现场负责人
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationGridSiteLeader(SafePenetrationGridSiteLeader safePenetrationGridSiteLeader);
|
||||
|
||||
/**
|
||||
* 批量删除网格-现场负责人
|
||||
*
|
||||
* @param ids 需要删除的网格-现场负责人主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationGridSiteLeaderByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除网格-现场负责人信息
|
||||
*
|
||||
* @param id 网格-现场负责人主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationGridSiteLeaderById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationGridWorker;
|
||||
|
||||
/**
|
||||
* 网格-施工员Service接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface ISafePenetrationGridWorkerService
|
||||
{
|
||||
/**
|
||||
* 查询网格-施工员
|
||||
*
|
||||
* @param id 网格-施工员主键
|
||||
* @return 网格-施工员
|
||||
*/
|
||||
public SafePenetrationGridWorker selectSafePenetrationGridWorkerById(Long id);
|
||||
|
||||
/**
|
||||
* 查询网格-施工员列表
|
||||
*
|
||||
* @param safePenetrationGridWorker 网格-施工员
|
||||
* @return 网格-施工员集合
|
||||
*/
|
||||
public List<SafePenetrationGridWorker> selectSafePenetrationGridWorkerList(SafePenetrationGridWorker safePenetrationGridWorker);
|
||||
|
||||
/**
|
||||
* 新增网格-施工员
|
||||
*
|
||||
* @param safePenetrationGridWorker 网格-施工员
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationGridWorker(SafePenetrationGridWorker safePenetrationGridWorker);
|
||||
|
||||
/**
|
||||
* 修改网格-施工员
|
||||
*
|
||||
* @param safePenetrationGridWorker 网格-施工员
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationGridWorker(SafePenetrationGridWorker safePenetrationGridWorker);
|
||||
|
||||
/**
|
||||
* 批量删除网格-施工员
|
||||
*
|
||||
* @param ids 需要删除的网格-施工员主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationGridWorkerByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除网格-施工员信息
|
||||
*
|
||||
* @param id 网格-施工员主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationGridWorkerById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationItem;
|
||||
|
||||
/**
|
||||
* 网格管理配置项Service接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface ISafePenetrationItemService
|
||||
{
|
||||
/**
|
||||
* 查询网格管理配置项
|
||||
*
|
||||
* @param id 网格管理配置项主键
|
||||
* @return 网格管理配置项
|
||||
*/
|
||||
public SafePenetrationItem selectSafePenetrationItemById(Long id);
|
||||
|
||||
/**
|
||||
* 查询网格管理配置项列表
|
||||
*
|
||||
* @param safePenetrationItem 网格管理配置项
|
||||
* @return 网格管理配置项集合
|
||||
*/
|
||||
public List<SafePenetrationItem> selectSafePenetrationItemList(SafePenetrationItem safePenetrationItem);
|
||||
|
||||
/**
|
||||
* 新增网格管理配置项
|
||||
*
|
||||
* @param safePenetrationItem 网格管理配置项
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationItem(SafePenetrationItem safePenetrationItem);
|
||||
|
||||
/**
|
||||
* 修改网格管理配置项
|
||||
*
|
||||
* @param safePenetrationItem 网格管理配置项
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationItem(SafePenetrationItem safePenetrationItem);
|
||||
|
||||
/**
|
||||
* 批量删除网格管理配置项
|
||||
*
|
||||
* @param ids 需要删除的网格管理配置项主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationItemByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除网格管理配置项信息
|
||||
*
|
||||
* @param id 网格管理配置项主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationItemById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationRange;
|
||||
|
||||
/**
|
||||
* 网格-范围Service接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface ISafePenetrationRangeService
|
||||
{
|
||||
/**
|
||||
* 查询网格-范围
|
||||
*
|
||||
* @param id 网格-范围主键
|
||||
* @return 网格-范围
|
||||
*/
|
||||
public SafePenetrationRange selectSafePenetrationRangeById(Long id);
|
||||
|
||||
/**
|
||||
* 查询网格-范围列表
|
||||
*
|
||||
* @param safePenetrationRange 网格-范围
|
||||
* @return 网格-范围集合
|
||||
*/
|
||||
public List<SafePenetrationRange> selectSafePenetrationRangeList(SafePenetrationRange safePenetrationRange);
|
||||
|
||||
/**
|
||||
* 新增网格-范围
|
||||
*
|
||||
* @param safePenetrationRange 网格-范围
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationRange(SafePenetrationRange safePenetrationRange);
|
||||
|
||||
/**
|
||||
* 修改网格-范围
|
||||
*
|
||||
* @param safePenetrationRange 网格-范围
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationRange(SafePenetrationRange safePenetrationRange);
|
||||
|
||||
/**
|
||||
* 批量删除网格-范围
|
||||
*
|
||||
* @param ids 需要删除的网格-范围主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationRangeByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除网格-范围信息
|
||||
*
|
||||
* @param id 网格-范围主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationRangeById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.SafePenetrationWorkspace;
|
||||
|
||||
/**
|
||||
* 工点Service接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
public interface ISafePenetrationWorkspaceService
|
||||
{
|
||||
/**
|
||||
* 查询工点
|
||||
*
|
||||
* @param id 工点主键
|
||||
* @return 工点
|
||||
*/
|
||||
public SafePenetrationWorkspace selectSafePenetrationWorkspaceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询工点列表
|
||||
*
|
||||
* @param safePenetrationWorkspace 工点
|
||||
* @return 工点集合
|
||||
*/
|
||||
public List<SafePenetrationWorkspace> selectSafePenetrationWorkspaceList(SafePenetrationWorkspace safePenetrationWorkspace);
|
||||
|
||||
/**
|
||||
* 新增工点
|
||||
*
|
||||
* @param safePenetrationWorkspace 工点
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSafePenetrationWorkspace(SafePenetrationWorkspace safePenetrationWorkspace);
|
||||
|
||||
/**
|
||||
* 修改工点
|
||||
*
|
||||
* @param safePenetrationWorkspace 工点
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSafePenetrationWorkspace(SafePenetrationWorkspace safePenetrationWorkspace);
|
||||
|
||||
/**
|
||||
* 批量删除工点
|
||||
*
|
||||
* @param ids 需要删除的工点主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationWorkspaceByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除工点信息
|
||||
*
|
||||
* @param id 工点主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSafePenetrationWorkspaceById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.yanzhu.manage.mapper.SafePenetrationCheckDataMapper;
|
||||
import com.yanzhu.manage.domain.SafePenetrationCheckData;
|
||||
import com.yanzhu.manage.service.ISafePenetrationCheckDataService;
|
||||
|
||||
/**
|
||||
* 检查数据项Service业务层处理
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@Service
|
||||
public class SafePenetrationCheckDataServiceImpl implements ISafePenetrationCheckDataService
|
||||
{
|
||||
@Autowired
|
||||
private SafePenetrationCheckDataMapper safePenetrationCheckDataMapper;
|
||||
|
||||
/**
|
||||
* 查询检查数据项
|
||||
*
|
||||
* @param id 检查数据项主键
|
||||
* @return 检查数据项
|
||||
*/
|
||||
@Override
|
||||
public SafePenetrationCheckData selectSafePenetrationCheckDataById(Long id)
|
||||
{
|
||||
return safePenetrationCheckDataMapper.selectSafePenetrationCheckDataById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询检查数据项列表
|
||||
*
|
||||
* @param safePenetrationCheckData 检查数据项
|
||||
* @return 检查数据项
|
||||
*/
|
||||
@Override
|
||||
public List<SafePenetrationCheckData> selectSafePenetrationCheckDataList(SafePenetrationCheckData safePenetrationCheckData)
|
||||
{
|
||||
return safePenetrationCheckDataMapper.selectSafePenetrationCheckDataList(safePenetrationCheckData);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检查数据项
|
||||
*
|
||||
* @param safePenetrationCheckData 检查数据项
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSafePenetrationCheckData(SafePenetrationCheckData safePenetrationCheckData)
|
||||
{
|
||||
return safePenetrationCheckDataMapper.insertSafePenetrationCheckData(safePenetrationCheckData);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检查数据项
|
||||
*
|
||||
* @param safePenetrationCheckData 检查数据项
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSafePenetrationCheckData(SafePenetrationCheckData safePenetrationCheckData)
|
||||
{
|
||||
return safePenetrationCheckDataMapper.updateSafePenetrationCheckData(safePenetrationCheckData);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除检查数据项
|
||||
*
|
||||
* @param ids 需要删除的检查数据项主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationCheckDataByIds(Long[] ids)
|
||||
{
|
||||
return safePenetrationCheckDataMapper.deleteSafePenetrationCheckDataByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检查数据项信息
|
||||
*
|
||||
* @param id 检查数据项主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationCheckDataById(Long id)
|
||||
{
|
||||
return safePenetrationCheckDataMapper.deleteSafePenetrationCheckDataById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.yanzhu.common.core.context.SecurityContextHolder;
|
||||
import com.yanzhu.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.yanzhu.manage.mapper.SafePenetrationCheckMapper;
|
||||
import com.yanzhu.manage.domain.SafePenetrationCheck;
|
||||
import com.yanzhu.manage.service.ISafePenetrationCheckService;
|
||||
|
||||
/**
|
||||
* 检查数据Service业务层处理
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@Service
|
||||
public class SafePenetrationCheckServiceImpl implements ISafePenetrationCheckService
|
||||
{
|
||||
@Autowired
|
||||
private SafePenetrationCheckMapper safePenetrationCheckMapper;
|
||||
|
||||
/**
|
||||
* 查询检查数据
|
||||
*
|
||||
* @param id 检查数据主键
|
||||
* @return 检查数据
|
||||
*/
|
||||
@Override
|
||||
public SafePenetrationCheck selectSafePenetrationCheckById(Long id)
|
||||
{
|
||||
return safePenetrationCheckMapper.selectSafePenetrationCheckById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询检查数据列表
|
||||
*
|
||||
* @param safePenetrationCheck 检查数据
|
||||
* @return 检查数据
|
||||
*/
|
||||
@Override
|
||||
public List<SafePenetrationCheck> selectSafePenetrationCheckList(SafePenetrationCheck safePenetrationCheck)
|
||||
{
|
||||
return safePenetrationCheckMapper.selectSafePenetrationCheckList(safePenetrationCheck);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增检查数据
|
||||
*
|
||||
* @param safePenetrationCheck 检查数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSafePenetrationCheck(SafePenetrationCheck safePenetrationCheck)
|
||||
{
|
||||
safePenetrationCheck.setCreateBy(SecurityContextHolder.getUserName());
|
||||
safePenetrationCheck.setCreateTime(DateUtils.getNowDate());
|
||||
return safePenetrationCheckMapper.insertSafePenetrationCheck(safePenetrationCheck);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改检查数据
|
||||
*
|
||||
* @param safePenetrationCheck 检查数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSafePenetrationCheck(SafePenetrationCheck safePenetrationCheck)
|
||||
{
|
||||
safePenetrationCheck.setUpdateBy(SecurityContextHolder.getUserName());
|
||||
safePenetrationCheck.setUpdateTime(DateUtils.getNowDate());
|
||||
return safePenetrationCheckMapper.updateSafePenetrationCheck(safePenetrationCheck);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除检查数据
|
||||
*
|
||||
* @param ids 需要删除的检查数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationCheckByIds(Long[] ids)
|
||||
{
|
||||
return safePenetrationCheckMapper.deleteSafePenetrationCheckByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检查数据信息
|
||||
*
|
||||
* @param id 检查数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationCheckById(Long id)
|
||||
{
|
||||
return safePenetrationCheckMapper.deleteSafePenetrationCheckById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.yanzhu.manage.mapper.SafePenetrationGridGroupMapper;
|
||||
import com.yanzhu.manage.domain.SafePenetrationGridGroup;
|
||||
import com.yanzhu.manage.service.ISafePenetrationGridGroupService;
|
||||
|
||||
/**
|
||||
* 网格-现场负责人Service业务层处理
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@Service
|
||||
public class SafePenetrationGridGroupServiceImpl implements ISafePenetrationGridGroupService
|
||||
{
|
||||
@Autowired
|
||||
private SafePenetrationGridGroupMapper safePenetrationGridGroupMapper;
|
||||
|
||||
/**
|
||||
* 查询网格-现场负责人
|
||||
*
|
||||
* @param id 网格-现场负责人主键
|
||||
* @return 网格-现场负责人
|
||||
*/
|
||||
@Override
|
||||
public SafePenetrationGridGroup selectSafePenetrationGridGroupById(Long id)
|
||||
{
|
||||
return safePenetrationGridGroupMapper.selectSafePenetrationGridGroupById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询网格-现场负责人列表
|
||||
*
|
||||
* @param safePenetrationGridGroup 网格-现场负责人
|
||||
* @return 网格-现场负责人
|
||||
*/
|
||||
@Override
|
||||
public List<SafePenetrationGridGroup> selectSafePenetrationGridGroupList(SafePenetrationGridGroup safePenetrationGridGroup)
|
||||
{
|
||||
return safePenetrationGridGroupMapper.selectSafePenetrationGridGroupList(safePenetrationGridGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增网格-现场负责人
|
||||
*
|
||||
* @param safePenetrationGridGroup 网格-现场负责人
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSafePenetrationGridGroup(SafePenetrationGridGroup safePenetrationGridGroup)
|
||||
{
|
||||
return safePenetrationGridGroupMapper.insertSafePenetrationGridGroup(safePenetrationGridGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改网格-现场负责人
|
||||
*
|
||||
* @param safePenetrationGridGroup 网格-现场负责人
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSafePenetrationGridGroup(SafePenetrationGridGroup safePenetrationGridGroup)
|
||||
{
|
||||
return safePenetrationGridGroupMapper.updateSafePenetrationGridGroup(safePenetrationGridGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除网格-现场负责人
|
||||
*
|
||||
* @param ids 需要删除的网格-现场负责人主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationGridGroupByIds(Long[] ids)
|
||||
{
|
||||
return safePenetrationGridGroupMapper.deleteSafePenetrationGridGroupByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除网格-现场负责人信息
|
||||
*
|
||||
* @param id 网格-现场负责人主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationGridGroupById(Long id)
|
||||
{
|
||||
return safePenetrationGridGroupMapper.deleteSafePenetrationGridGroupById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.yanzhu.common.core.context.SecurityContextHolder;
|
||||
import com.yanzhu.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.yanzhu.manage.mapper.SafePenetrationGridMapper;
|
||||
import com.yanzhu.manage.domain.SafePenetrationGrid;
|
||||
import com.yanzhu.manage.service.ISafePenetrationGridService;
|
||||
|
||||
/**
|
||||
* 网格Service业务层处理
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@Service
|
||||
public class SafePenetrationGridServiceImpl implements ISafePenetrationGridService
|
||||
{
|
||||
@Autowired
|
||||
private SafePenetrationGridMapper safePenetrationGridMapper;
|
||||
|
||||
/**
|
||||
* 查询网格
|
||||
*
|
||||
* @param id 网格主键
|
||||
* @return 网格
|
||||
*/
|
||||
@Override
|
||||
public SafePenetrationGrid selectSafePenetrationGridById(Long id)
|
||||
{
|
||||
return safePenetrationGridMapper.selectSafePenetrationGridById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询网格列表
|
||||
*
|
||||
* @param safePenetrationGrid 网格
|
||||
* @return 网格
|
||||
*/
|
||||
@Override
|
||||
public List<SafePenetrationGrid> selectSafePenetrationGridList(SafePenetrationGrid safePenetrationGrid)
|
||||
{
|
||||
return safePenetrationGridMapper.selectSafePenetrationGridList(safePenetrationGrid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增网格
|
||||
*
|
||||
* @param safePenetrationGrid 网格
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSafePenetrationGrid(SafePenetrationGrid safePenetrationGrid)
|
||||
{
|
||||
safePenetrationGrid.setCreateBy(SecurityContextHolder.getUserName());
|
||||
safePenetrationGrid.setCreateTime(DateUtils.getNowDate());
|
||||
return safePenetrationGridMapper.insertSafePenetrationGrid(safePenetrationGrid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改网格
|
||||
*
|
||||
* @param safePenetrationGrid 网格
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSafePenetrationGrid(SafePenetrationGrid safePenetrationGrid)
|
||||
{
|
||||
safePenetrationGrid.setUpdateBy(SecurityContextHolder.getUserName());
|
||||
safePenetrationGrid.setUpdateTime(DateUtils.getNowDate());
|
||||
return safePenetrationGridMapper.updateSafePenetrationGrid(safePenetrationGrid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除网格
|
||||
*
|
||||
* @param ids 需要删除的网格主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationGridByIds(Long[] ids)
|
||||
{
|
||||
return safePenetrationGridMapper.deleteSafePenetrationGridByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除网格信息
|
||||
*
|
||||
* @param id 网格主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationGridById(Long id)
|
||||
{
|
||||
return safePenetrationGridMapper.deleteSafePenetrationGridById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.yanzhu.manage.mapper.SafePenetrationGridSiteLeaderMapper;
|
||||
import com.yanzhu.manage.domain.SafePenetrationGridSiteLeader;
|
||||
import com.yanzhu.manage.service.ISafePenetrationGridSiteLeaderService;
|
||||
|
||||
/**
|
||||
* 网格-现场负责人Service业务层处理
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@Service
|
||||
public class SafePenetrationGridSiteLeaderServiceImpl implements ISafePenetrationGridSiteLeaderService
|
||||
{
|
||||
@Autowired
|
||||
private SafePenetrationGridSiteLeaderMapper safePenetrationGridSiteLeaderMapper;
|
||||
|
||||
/**
|
||||
* 查询网格-现场负责人
|
||||
*
|
||||
* @param id 网格-现场负责人主键
|
||||
* @return 网格-现场负责人
|
||||
*/
|
||||
@Override
|
||||
public SafePenetrationGridSiteLeader selectSafePenetrationGridSiteLeaderById(Long id)
|
||||
{
|
||||
return safePenetrationGridSiteLeaderMapper.selectSafePenetrationGridSiteLeaderById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询网格-现场负责人列表
|
||||
*
|
||||
* @param safePenetrationGridSiteLeader 网格-现场负责人
|
||||
* @return 网格-现场负责人
|
||||
*/
|
||||
@Override
|
||||
public List<SafePenetrationGridSiteLeader> selectSafePenetrationGridSiteLeaderList(SafePenetrationGridSiteLeader safePenetrationGridSiteLeader)
|
||||
{
|
||||
return safePenetrationGridSiteLeaderMapper.selectSafePenetrationGridSiteLeaderList(safePenetrationGridSiteLeader);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增网格-现场负责人
|
||||
*
|
||||
* @param safePenetrationGridSiteLeader 网格-现场负责人
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSafePenetrationGridSiteLeader(SafePenetrationGridSiteLeader safePenetrationGridSiteLeader)
|
||||
{
|
||||
return safePenetrationGridSiteLeaderMapper.insertSafePenetrationGridSiteLeader(safePenetrationGridSiteLeader);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改网格-现场负责人
|
||||
*
|
||||
* @param safePenetrationGridSiteLeader 网格-现场负责人
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSafePenetrationGridSiteLeader(SafePenetrationGridSiteLeader safePenetrationGridSiteLeader)
|
||||
{
|
||||
return safePenetrationGridSiteLeaderMapper.updateSafePenetrationGridSiteLeader(safePenetrationGridSiteLeader);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除网格-现场负责人
|
||||
*
|
||||
* @param ids 需要删除的网格-现场负责人主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationGridSiteLeaderByIds(Long[] ids)
|
||||
{
|
||||
return safePenetrationGridSiteLeaderMapper.deleteSafePenetrationGridSiteLeaderByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除网格-现场负责人信息
|
||||
*
|
||||
* @param id 网格-现场负责人主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationGridSiteLeaderById(Long id)
|
||||
{
|
||||
return safePenetrationGridSiteLeaderMapper.deleteSafePenetrationGridSiteLeaderById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.yanzhu.manage.mapper.SafePenetrationGridWorkerMapper;
|
||||
import com.yanzhu.manage.domain.SafePenetrationGridWorker;
|
||||
import com.yanzhu.manage.service.ISafePenetrationGridWorkerService;
|
||||
|
||||
/**
|
||||
* 网格-施工员Service业务层处理
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@Service
|
||||
public class SafePenetrationGridWorkerServiceImpl implements ISafePenetrationGridWorkerService
|
||||
{
|
||||
@Autowired
|
||||
private SafePenetrationGridWorkerMapper safePenetrationGridWorkerMapper;
|
||||
|
||||
/**
|
||||
* 查询网格-施工员
|
||||
*
|
||||
* @param id 网格-施工员主键
|
||||
* @return 网格-施工员
|
||||
*/
|
||||
@Override
|
||||
public SafePenetrationGridWorker selectSafePenetrationGridWorkerById(Long id)
|
||||
{
|
||||
return safePenetrationGridWorkerMapper.selectSafePenetrationGridWorkerById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询网格-施工员列表
|
||||
*
|
||||
* @param safePenetrationGridWorker 网格-施工员
|
||||
* @return 网格-施工员
|
||||
*/
|
||||
@Override
|
||||
public List<SafePenetrationGridWorker> selectSafePenetrationGridWorkerList(SafePenetrationGridWorker safePenetrationGridWorker)
|
||||
{
|
||||
return safePenetrationGridWorkerMapper.selectSafePenetrationGridWorkerList(safePenetrationGridWorker);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增网格-施工员
|
||||
*
|
||||
* @param safePenetrationGridWorker 网格-施工员
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSafePenetrationGridWorker(SafePenetrationGridWorker safePenetrationGridWorker)
|
||||
{
|
||||
return safePenetrationGridWorkerMapper.insertSafePenetrationGridWorker(safePenetrationGridWorker);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改网格-施工员
|
||||
*
|
||||
* @param safePenetrationGridWorker 网格-施工员
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSafePenetrationGridWorker(SafePenetrationGridWorker safePenetrationGridWorker)
|
||||
{
|
||||
return safePenetrationGridWorkerMapper.updateSafePenetrationGridWorker(safePenetrationGridWorker);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除网格-施工员
|
||||
*
|
||||
* @param ids 需要删除的网格-施工员主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationGridWorkerByIds(Long[] ids)
|
||||
{
|
||||
return safePenetrationGridWorkerMapper.deleteSafePenetrationGridWorkerByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除网格-施工员信息
|
||||
*
|
||||
* @param id 网格-施工员主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationGridWorkerById(Long id)
|
||||
{
|
||||
return safePenetrationGridWorkerMapper.deleteSafePenetrationGridWorkerById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.yanzhu.manage.mapper.SafePenetrationItemMapper;
|
||||
import com.yanzhu.manage.domain.SafePenetrationItem;
|
||||
import com.yanzhu.manage.service.ISafePenetrationItemService;
|
||||
|
||||
/**
|
||||
* 网格管理配置项Service业务层处理
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@Service
|
||||
public class SafePenetrationItemServiceImpl implements ISafePenetrationItemService
|
||||
{
|
||||
@Autowired
|
||||
private SafePenetrationItemMapper safePenetrationItemMapper;
|
||||
|
||||
/**
|
||||
* 查询网格管理配置项
|
||||
*
|
||||
* @param id 网格管理配置项主键
|
||||
* @return 网格管理配置项
|
||||
*/
|
||||
@Override
|
||||
public SafePenetrationItem selectSafePenetrationItemById(Long id)
|
||||
{
|
||||
return safePenetrationItemMapper.selectSafePenetrationItemById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询网格管理配置项列表
|
||||
*
|
||||
* @param safePenetrationItem 网格管理配置项
|
||||
* @return 网格管理配置项
|
||||
*/
|
||||
@Override
|
||||
public List<SafePenetrationItem> selectSafePenetrationItemList(SafePenetrationItem safePenetrationItem)
|
||||
{
|
||||
return safePenetrationItemMapper.selectSafePenetrationItemList(safePenetrationItem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增网格管理配置项
|
||||
*
|
||||
* @param safePenetrationItem 网格管理配置项
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSafePenetrationItem(SafePenetrationItem safePenetrationItem)
|
||||
{
|
||||
return safePenetrationItemMapper.insertSafePenetrationItem(safePenetrationItem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改网格管理配置项
|
||||
*
|
||||
* @param safePenetrationItem 网格管理配置项
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSafePenetrationItem(SafePenetrationItem safePenetrationItem)
|
||||
{
|
||||
return safePenetrationItemMapper.updateSafePenetrationItem(safePenetrationItem);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除网格管理配置项
|
||||
*
|
||||
* @param ids 需要删除的网格管理配置项主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationItemByIds(Long[] ids)
|
||||
{
|
||||
return safePenetrationItemMapper.deleteSafePenetrationItemByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除网格管理配置项信息
|
||||
*
|
||||
* @param id 网格管理配置项主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationItemById(Long id)
|
||||
{
|
||||
return safePenetrationItemMapper.deleteSafePenetrationItemById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,93 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.yanzhu.manage.mapper.SafePenetrationRangeMapper;
|
||||
import com.yanzhu.manage.domain.SafePenetrationRange;
|
||||
import com.yanzhu.manage.service.ISafePenetrationRangeService;
|
||||
|
||||
/**
|
||||
* 网格-范围Service业务层处理
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@Service
|
||||
public class SafePenetrationRangeServiceImpl implements ISafePenetrationRangeService
|
||||
{
|
||||
@Autowired
|
||||
private SafePenetrationRangeMapper safePenetrationRangeMapper;
|
||||
|
||||
/**
|
||||
* 查询网格-范围
|
||||
*
|
||||
* @param id 网格-范围主键
|
||||
* @return 网格-范围
|
||||
*/
|
||||
@Override
|
||||
public SafePenetrationRange selectSafePenetrationRangeById(Long id)
|
||||
{
|
||||
return safePenetrationRangeMapper.selectSafePenetrationRangeById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询网格-范围列表
|
||||
*
|
||||
* @param safePenetrationRange 网格-范围
|
||||
* @return 网格-范围
|
||||
*/
|
||||
@Override
|
||||
public List<SafePenetrationRange> selectSafePenetrationRangeList(SafePenetrationRange safePenetrationRange)
|
||||
{
|
||||
return safePenetrationRangeMapper.selectSafePenetrationRangeList(safePenetrationRange);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增网格-范围
|
||||
*
|
||||
* @param safePenetrationRange 网格-范围
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSafePenetrationRange(SafePenetrationRange safePenetrationRange)
|
||||
{
|
||||
return safePenetrationRangeMapper.insertSafePenetrationRange(safePenetrationRange);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改网格-范围
|
||||
*
|
||||
* @param safePenetrationRange 网格-范围
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSafePenetrationRange(SafePenetrationRange safePenetrationRange)
|
||||
{
|
||||
return safePenetrationRangeMapper.updateSafePenetrationRange(safePenetrationRange);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除网格-范围
|
||||
*
|
||||
* @param ids 需要删除的网格-范围主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationRangeByIds(Long[] ids)
|
||||
{
|
||||
return safePenetrationRangeMapper.deleteSafePenetrationRangeByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除网格-范围信息
|
||||
*
|
||||
* @param id 网格-范围主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationRangeById(Long id)
|
||||
{
|
||||
return safePenetrationRangeMapper.deleteSafePenetrationRangeById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.yanzhu.common.core.context.SecurityContextHolder;
|
||||
import com.yanzhu.common.core.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.yanzhu.manage.mapper.SafePenetrationWorkspaceMapper;
|
||||
import com.yanzhu.manage.domain.SafePenetrationWorkspace;
|
||||
import com.yanzhu.manage.service.ISafePenetrationWorkspaceService;
|
||||
|
||||
/**
|
||||
* 工点Service业务层处理
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2026-04-10
|
||||
*/
|
||||
@Service
|
||||
public class SafePenetrationWorkspaceServiceImpl implements ISafePenetrationWorkspaceService
|
||||
{
|
||||
@Autowired
|
||||
private SafePenetrationWorkspaceMapper safePenetrationWorkspaceMapper;
|
||||
|
||||
/**
|
||||
* 查询工点
|
||||
*
|
||||
* @param id 工点主键
|
||||
* @return 工点
|
||||
*/
|
||||
@Override
|
||||
public SafePenetrationWorkspace selectSafePenetrationWorkspaceById(Long id)
|
||||
{
|
||||
return safePenetrationWorkspaceMapper.selectSafePenetrationWorkspaceById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询工点列表
|
||||
*
|
||||
* @param safePenetrationWorkspace 工点
|
||||
* @return 工点
|
||||
*/
|
||||
@Override
|
||||
public List<SafePenetrationWorkspace> selectSafePenetrationWorkspaceList(SafePenetrationWorkspace safePenetrationWorkspace)
|
||||
{
|
||||
return safePenetrationWorkspaceMapper.selectSafePenetrationWorkspaceList(safePenetrationWorkspace);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增工点
|
||||
*
|
||||
* @param safePenetrationWorkspace 工点
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSafePenetrationWorkspace(SafePenetrationWorkspace safePenetrationWorkspace)
|
||||
{
|
||||
safePenetrationWorkspace.setCreateBy(SecurityContextHolder.getUserName());
|
||||
safePenetrationWorkspace.setCreateTime(DateUtils.getNowDate());
|
||||
return safePenetrationWorkspaceMapper.insertSafePenetrationWorkspace(safePenetrationWorkspace);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改工点
|
||||
*
|
||||
* @param safePenetrationWorkspace 工点
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSafePenetrationWorkspace(SafePenetrationWorkspace safePenetrationWorkspace)
|
||||
{
|
||||
safePenetrationWorkspace.setUpdateBy(SecurityContextHolder.getUserName());
|
||||
safePenetrationWorkspace.setUpdateTime(DateUtils.getNowDate());
|
||||
return safePenetrationWorkspaceMapper.updateSafePenetrationWorkspace(safePenetrationWorkspace);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除工点
|
||||
*
|
||||
* @param ids 需要删除的工点主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationWorkspaceByIds(Long[] ids)
|
||||
{
|
||||
return safePenetrationWorkspaceMapper.deleteSafePenetrationWorkspaceByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除工点信息
|
||||
*
|
||||
* @param id 工点主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSafePenetrationWorkspaceById(Long id)
|
||||
{
|
||||
return safePenetrationWorkspaceMapper.deleteSafePenetrationWorkspaceById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询检查数据列表
|
||||
export function listSafePenetrationCheck(query) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationCheck/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询检查数据详细
|
||||
export function getSafePenetrationCheck(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationCheck/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增检查数据
|
||||
export function addSafePenetrationCheck(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationCheck',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改检查数据
|
||||
export function updateSafePenetrationCheck(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationCheck',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除检查数据
|
||||
export function delSafePenetrationCheck(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationCheck/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询检查数据项列表
|
||||
export function listSafePenetrationCheckData(query) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationCheckData/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询检查数据项详细
|
||||
export function getSafePenetrationCheckData(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationCheckData/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增检查数据项
|
||||
export function addSafePenetrationCheckData(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationCheckData',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改检查数据项
|
||||
export function updateSafePenetrationCheckData(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationCheckData',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除检查数据项
|
||||
export function delSafePenetrationCheckData(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationCheckData/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询网格列表
|
||||
export function listSafePenetrationGrid(query) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGrid/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询网格详细
|
||||
export function getSafePenetrationGrid(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGrid/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增网格
|
||||
export function addSafePenetrationGrid(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGrid',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改网格
|
||||
export function updateSafePenetrationGrid(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGrid',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除网格
|
||||
export function delSafePenetrationGrid(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGrid/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询网格-现场负责人列表
|
||||
export function listSafePenetrationGridGroup(query) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGridGroup/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询网格-现场负责人详细
|
||||
export function getSafePenetrationGridGroup(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGridGroup/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增网格-现场负责人
|
||||
export function addSafePenetrationGridGroup(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGridGroup',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改网格-现场负责人
|
||||
export function updateSafePenetrationGridGroup(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGridGroup',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除网格-现场负责人
|
||||
export function delSafePenetrationGridGroup(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGridGroup/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询网格-现场负责人列表
|
||||
export function listSafePenetrationGridSiteLeader(query) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGridSiteLeader/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询网格-现场负责人详细
|
||||
export function getSafePenetrationGridSiteLeader(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGridSiteLeader/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增网格-现场负责人
|
||||
export function addSafePenetrationGridSiteLeader(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGridSiteLeader',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改网格-现场负责人
|
||||
export function updateSafePenetrationGridSiteLeader(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGridSiteLeader',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除网格-现场负责人
|
||||
export function delSafePenetrationGridSiteLeader(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGridSiteLeader/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询网格-施工员列表
|
||||
export function listSafePenetrationGridWorker(query) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGridWorker/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询网格-施工员详细
|
||||
export function getSafePenetrationGridWorker(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGridWorker/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增网格-施工员
|
||||
export function addSafePenetrationGridWorker(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGridWorker',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改网格-施工员
|
||||
export function updateSafePenetrationGridWorker(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGridWorker',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除网格-施工员
|
||||
export function delSafePenetrationGridWorker(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationGridWorker/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询网格管理配置项列表
|
||||
export function listSafePenetrationItem(query) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationItem/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询网格管理配置项详细
|
||||
export function getSafePenetrationItem(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationItem/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增网格管理配置项
|
||||
export function addSafePenetrationItem(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationItem',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改网格管理配置项
|
||||
export function updateSafePenetrationItem(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationItem',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除网格管理配置项
|
||||
export function delSafePenetrationItem(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationItem/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询网格-范围列表
|
||||
export function listSafePenetrationRange(query) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationRange/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询网格-范围详细
|
||||
export function getSafePenetrationRange(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationRange/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增网格-范围
|
||||
export function addSafePenetrationRange(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationRange',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改网格-范围
|
||||
export function updateSafePenetrationRange(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationRange',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除网格-范围
|
||||
export function delSafePenetrationRange(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationRange/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询工点列表
|
||||
export function listSafePenetrationWorkspace(query) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationWorkspace/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询工点详细
|
||||
export function getSafePenetrationWorkspace(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationWorkspace/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增工点
|
||||
export function addSafePenetrationWorkspace(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationWorkspace',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改工点
|
||||
export function updateSafePenetrationWorkspace(data) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationWorkspace',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除工点
|
||||
export function delSafePenetrationWorkspace(id) {
|
||||
return request({
|
||||
url: '/manage/safePenetrationWorkspace/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,352 @@
|
|||
<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="projectId">
|
||||
<el-input
|
||||
v-model="queryParams.projectId"
|
||||
placeholder="请输入项目ID"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="检查时间" prop="checkDate">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.checkDate"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="请选择检查时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="检查部门" prop="deptId">
|
||||
<el-input
|
||||
v-model="queryParams.deptId"
|
||||
placeholder="请输入检查部门"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="被检查人" prop="checkedPerson">
|
||||
<el-input
|
||||
v-model="queryParams.checkedPerson"
|
||||
placeholder="请输入被检查人"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="网格点" prop="gridId">
|
||||
<el-input
|
||||
v-model="queryParams.gridId"
|
||||
placeholder="请输入网格点"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="施工部位" prop="gridRangeId">
|
||||
<el-input
|
||||
v-model="queryParams.gridRangeId"
|
||||
placeholder="请输入施工部位"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="检查意见 0-不同意 1-同意" prop="inspectionOpinion">
|
||||
<el-input
|
||||
v-model="queryParams.inspectionOpinion"
|
||||
placeholder="请输入检查意见 0-不同意 1-同意"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="${comment}" prop="state">
|
||||
<el-input
|
||||
v-model="queryParams.state"
|
||||
placeholder="请输入${comment}"
|
||||
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="['manage:safePenetrationCheck:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['manage:safePenetrationCheck:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['manage:safePenetrationCheck:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['manage:safePenetrationCheck:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="safePenetrationCheckList" @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="projectId" />
|
||||
<el-table-column label="检查类型 1-横向检查 2-班前 3-班后 4-关键施工" align="center" prop="checkType" />
|
||||
<el-table-column label="检查时间" align="center" prop="checkDate" width="180">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.checkDate, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="检查部门" align="center" prop="deptId" />
|
||||
<el-table-column label="被检查人" align="center" prop="checkedPerson" />
|
||||
<el-table-column label="检查图片" align="center" prop="checkedImgs" />
|
||||
<el-table-column label="网格点" align="center" prop="gridId" />
|
||||
<el-table-column label="施工部位" align="center" prop="gridRangeId" />
|
||||
<el-table-column label="检查意见 0-不同意 1-同意" align="center" prop="inspectionOpinion" />
|
||||
<el-table-column label="${comment}" align="center" prop="state" />
|
||||
<el-table-column label="${comment}" align="center" prop="remark" />
|
||||
<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="['manage:safePenetrationCheck:edit']">修改</el-button>
|
||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['manage:safePenetrationCheck: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="safePenetrationCheckRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="项目ID" prop="projectId">
|
||||
<el-input v-model="form.projectId" placeholder="请输入项目ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="检查时间" prop="checkDate">
|
||||
<el-date-picker clearable
|
||||
v-model="form.checkDate"
|
||||
type="date"
|
||||
value-format="YYYY-MM-DD"
|
||||
placeholder="请选择检查时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="检查部门" prop="deptId">
|
||||
<el-input v-model="form.deptId" placeholder="请输入检查部门" />
|
||||
</el-form-item>
|
||||
<el-form-item label="被检查人" prop="checkedPerson">
|
||||
<el-input v-model="form.checkedPerson" placeholder="请输入被检查人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="检查图片" prop="checkedImgs">
|
||||
<el-input v-model="form.checkedImgs" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="网格点" prop="gridId">
|
||||
<el-input v-model="form.gridId" placeholder="请输入网格点" />
|
||||
</el-form-item>
|
||||
<el-form-item label="施工部位" prop="gridRangeId">
|
||||
<el-input v-model="form.gridRangeId" placeholder="请输入施工部位" />
|
||||
</el-form-item>
|
||||
<el-form-item label="检查意见 0-不同意 1-同意" prop="inspectionOpinion">
|
||||
<el-input v-model="form.inspectionOpinion" placeholder="请输入检查意见 0-不同意 1-同意" />
|
||||
</el-form-item>
|
||||
<el-form-item label="${comment}" prop="state">
|
||||
<el-input v-model="form.state" placeholder="请输入${comment}" />
|
||||
</el-form-item>
|
||||
<el-form-item label="${comment}" prop="remark">
|
||||
<el-input v-model="form.remark" placeholder="请输入${comment}" />
|
||||
</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="SafePenetrationCheck">
|
||||
import { listSafePenetrationCheck, getSafePenetrationCheck, delSafePenetrationCheck, addSafePenetrationCheck, updateSafePenetrationCheck } from "@/api/manage/safePenetrationCheck";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const safePenetrationCheckList = 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,
|
||||
projectId: null,
|
||||
checkType: null,
|
||||
checkDate: null,
|
||||
deptId: null,
|
||||
checkedPerson: null,
|
||||
checkedImgs: null,
|
||||
gridId: null,
|
||||
gridRangeId: null,
|
||||
inspectionOpinion: null,
|
||||
state: null,
|
||||
},
|
||||
rules: {
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
/** 查询检查数据列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
listSafePenetrationCheck(queryParams.value).then(response => {
|
||||
safePenetrationCheckList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
// 取消按钮
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
reset();
|
||||
}
|
||||
|
||||
// 表单重置
|
||||
function reset() {
|
||||
form.value = {
|
||||
id: null,
|
||||
projectId: null,
|
||||
checkType: null,
|
||||
checkDate: null,
|
||||
deptId: null,
|
||||
checkedPerson: null,
|
||||
checkedImgs: null,
|
||||
gridId: null,
|
||||
gridRangeId: null,
|
||||
inspectionOpinion: null,
|
||||
state: null,
|
||||
remark: null,
|
||||
createBy: null,
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
updateTime: null
|
||||
};
|
||||
proxy.resetForm("safePenetrationCheckRef");
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
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
|
||||
getSafePenetrationCheck(_id).then(response => {
|
||||
form.value = response.data;
|
||||
open.value = true;
|
||||
title.value = "修改检查数据";
|
||||
});
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["safePenetrationCheckRef"].validate(valid => {
|
||||
if (valid) {
|
||||
if (form.value.id != null) {
|
||||
updateSafePenetrationCheck(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
} else {
|
||||
addSafePenetrationCheck(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 delSafePenetrationCheck(_ids);
|
||||
}).then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download('manage/safePenetrationCheck/export', {
|
||||
...queryParams.value
|
||||
}, `safePenetrationCheck_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
||||
|
|
@ -0,0 +1,255 @@
|
|||
<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="checkId">
|
||||
<el-input
|
||||
v-model="queryParams.checkId"
|
||||
placeholder="请输入检查ID"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="检查项ID" prop="itemId">
|
||||
<el-input
|
||||
v-model="queryParams.itemId"
|
||||
placeholder="请输入检查项ID"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否通过 0-不通过 1-通过" prop="isPass">
|
||||
<el-input
|
||||
v-model="queryParams.isPass"
|
||||
placeholder="请输入是否通过 0-不通过 1-通过"
|
||||
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="['manage:safePenetrationCheckData:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['manage:safePenetrationCheckData:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['manage:safePenetrationCheckData:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['manage:safePenetrationCheckData:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="safePenetrationCheckDataList" @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="checkId" />
|
||||
<el-table-column label="检查项ID" align="center" prop="itemId" />
|
||||
<el-table-column label="是否通过 0-不通过 1-通过" align="center" prop="isPass" />
|
||||
<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="['manage:safePenetrationCheckData:edit']">修改</el-button>
|
||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['manage:safePenetrationCheckData: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="safePenetrationCheckDataRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="检查ID" prop="checkId">
|
||||
<el-input v-model="form.checkId" placeholder="请输入检查ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="检查项ID" prop="itemId">
|
||||
<el-input v-model="form.itemId" placeholder="请输入检查项ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="是否通过 0-不通过 1-通过" prop="isPass">
|
||||
<el-input v-model="form.isPass" placeholder="请输入是否通过 0-不通过 1-通过" />
|
||||
</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="SafePenetrationCheckData">
|
||||
import { listSafePenetrationCheckData, getSafePenetrationCheckData, delSafePenetrationCheckData, addSafePenetrationCheckData, updateSafePenetrationCheckData } from "@/api/manage/safePenetrationCheckData";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const safePenetrationCheckDataList = 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,
|
||||
checkId: null,
|
||||
itemId: null,
|
||||
isPass: null
|
||||
},
|
||||
rules: {
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
/** 查询检查数据项列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
listSafePenetrationCheckData(queryParams.value).then(response => {
|
||||
safePenetrationCheckDataList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
// 取消按钮
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
reset();
|
||||
}
|
||||
|
||||
// 表单重置
|
||||
function reset() {
|
||||
form.value = {
|
||||
id: null,
|
||||
checkId: null,
|
||||
itemId: null,
|
||||
isPass: null
|
||||
};
|
||||
proxy.resetForm("safePenetrationCheckDataRef");
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
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
|
||||
getSafePenetrationCheckData(_id).then(response => {
|
||||
form.value = response.data;
|
||||
open.value = true;
|
||||
title.value = "修改检查数据项";
|
||||
});
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["safePenetrationCheckDataRef"].validate(valid => {
|
||||
if (valid) {
|
||||
if (form.value.id != null) {
|
||||
updateSafePenetrationCheckData(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
} else {
|
||||
addSafePenetrationCheckData(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 delSafePenetrationCheckData(_ids);
|
||||
}).then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download('manage/safePenetrationCheckData/export', {
|
||||
...queryParams.value
|
||||
}, `safePenetrationCheckData_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
||||
|
|
@ -0,0 +1,365 @@
|
|||
<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="projectId">
|
||||
<el-input
|
||||
v-model="queryParams.projectId"
|
||||
placeholder="请输入项目ID"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="网格名称" prop="gridName">
|
||||
<el-input
|
||||
v-model="queryParams.gridName"
|
||||
placeholder="请输入网格名称"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="网格号" prop="gridNo">
|
||||
<el-input
|
||||
v-model="queryParams.gridNo"
|
||||
placeholder="请输入网格号"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="安监专务" prop="securityCheck">
|
||||
<el-input
|
||||
v-model="queryParams.securityCheck"
|
||||
placeholder="请输入安监专务"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="网格安全员" prop="gridUser">
|
||||
<el-input
|
||||
v-model="queryParams.gridUser"
|
||||
placeholder="请输入网格安全员"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="网格长" prop="gridLeader">
|
||||
<el-input
|
||||
v-model="queryParams.gridLeader"
|
||||
placeholder="请输入网格长"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="应急联系人" prop="emergencyContact">
|
||||
<el-input
|
||||
v-model="queryParams.emergencyContact"
|
||||
placeholder="请输入应急联系人"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="高峰期作业人员数" prop="workerCount">
|
||||
<el-input
|
||||
v-model="queryParams.workerCount"
|
||||
placeholder="请输入高峰期作业人员数"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="排序" prop="sorted">
|
||||
<el-input
|
||||
v-model="queryParams.sorted"
|
||||
placeholder="请输入排序"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="${comment}" prop="state">
|
||||
<el-input
|
||||
v-model="queryParams.state"
|
||||
placeholder="请输入${comment}"
|
||||
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="['manage:safePenetrationGrid:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['manage:safePenetrationGrid:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['manage:safePenetrationGrid:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['manage:safePenetrationGrid:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="safePenetrationGridList" @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="projectId" />
|
||||
<el-table-column label="网格名称" align="center" prop="gridName" />
|
||||
<el-table-column label="网格号" align="center" prop="gridNo" />
|
||||
<el-table-column label="安监专务" align="center" prop="securityCheck" />
|
||||
<el-table-column label="网格安全员" align="center" prop="gridUser" />
|
||||
<el-table-column label="网格长" align="center" prop="gridLeader" />
|
||||
<el-table-column label="应急联系人" align="center" prop="emergencyContact" />
|
||||
<el-table-column label="高峰期作业人员数" align="center" prop="workerCount" />
|
||||
<el-table-column label="排序" align="center" prop="sorted" />
|
||||
<el-table-column label="${comment}" align="center" prop="state" />
|
||||
<el-table-column label="${comment}" align="center" prop="remark" />
|
||||
<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="['manage:safePenetrationGrid:edit']">修改</el-button>
|
||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['manage:safePenetrationGrid: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="safePenetrationGridRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="项目ID" prop="projectId">
|
||||
<el-input v-model="form.projectId" placeholder="请输入项目ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="网格名称" prop="gridName">
|
||||
<el-input v-model="form.gridName" placeholder="请输入网格名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="网格号" prop="gridNo">
|
||||
<el-input v-model="form.gridNo" placeholder="请输入网格号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="安监专务" prop="securityCheck">
|
||||
<el-input v-model="form.securityCheck" placeholder="请输入安监专务" />
|
||||
</el-form-item>
|
||||
<el-form-item label="网格安全员" prop="gridUser">
|
||||
<el-input v-model="form.gridUser" placeholder="请输入网格安全员" />
|
||||
</el-form-item>
|
||||
<el-form-item label="网格长" prop="gridLeader">
|
||||
<el-input v-model="form.gridLeader" placeholder="请输入网格长" />
|
||||
</el-form-item>
|
||||
<el-form-item label="应急联系人" prop="emergencyContact">
|
||||
<el-input v-model="form.emergencyContact" placeholder="请输入应急联系人" />
|
||||
</el-form-item>
|
||||
<el-form-item label="高峰期作业人员数" prop="workerCount">
|
||||
<el-input v-model="form.workerCount" placeholder="请输入高峰期作业人员数" />
|
||||
</el-form-item>
|
||||
<el-form-item label="排序" prop="sorted">
|
||||
<el-input v-model="form.sorted" placeholder="请输入排序" />
|
||||
</el-form-item>
|
||||
<el-form-item label="${comment}" prop="state">
|
||||
<el-input v-model="form.state" placeholder="请输入${comment}" />
|
||||
</el-form-item>
|
||||
<el-form-item label="${comment}" prop="remark">
|
||||
<el-input v-model="form.remark" placeholder="请输入${comment}" />
|
||||
</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="SafePenetrationGrid">
|
||||
import { listSafePenetrationGrid, getSafePenetrationGrid, delSafePenetrationGrid, addSafePenetrationGrid, updateSafePenetrationGrid } from "@/api/manage/safePenetrationGrid";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const safePenetrationGridList = 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,
|
||||
projectId: null,
|
||||
gridName: null,
|
||||
gridNo: null,
|
||||
securityCheck: null,
|
||||
gridUser: null,
|
||||
gridLeader: null,
|
||||
emergencyContact: null,
|
||||
workerCount: null,
|
||||
sorted: null,
|
||||
state: null,
|
||||
},
|
||||
rules: {
|
||||
sorted: [
|
||||
{ required: true, message: "排序不能为空", trigger: "blur" }
|
||||
],
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
/** 查询网格列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
listSafePenetrationGrid(queryParams.value).then(response => {
|
||||
safePenetrationGridList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
// 取消按钮
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
reset();
|
||||
}
|
||||
|
||||
// 表单重置
|
||||
function reset() {
|
||||
form.value = {
|
||||
id: null,
|
||||
projectId: null,
|
||||
gridName: null,
|
||||
gridNo: null,
|
||||
securityCheck: null,
|
||||
gridUser: null,
|
||||
gridLeader: null,
|
||||
emergencyContact: null,
|
||||
workerCount: null,
|
||||
sorted: null,
|
||||
state: null,
|
||||
remark: null,
|
||||
createBy: null,
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
updateTime: null
|
||||
};
|
||||
proxy.resetForm("safePenetrationGridRef");
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
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
|
||||
getSafePenetrationGrid(_id).then(response => {
|
||||
form.value = response.data;
|
||||
open.value = true;
|
||||
title.value = "修改网格";
|
||||
});
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["safePenetrationGridRef"].validate(valid => {
|
||||
if (valid) {
|
||||
if (form.value.id != null) {
|
||||
updateSafePenetrationGrid(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
} else {
|
||||
addSafePenetrationGrid(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 delSafePenetrationGrid(_ids);
|
||||
}).then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download('manage/safePenetrationGrid/export', {
|
||||
...queryParams.value
|
||||
}, `safePenetrationGrid_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
||||
|
|
@ -0,0 +1,241 @@
|
|||
<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="gridId">
|
||||
<el-input
|
||||
v-model="queryParams.gridId"
|
||||
placeholder="请输入网格ID"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="施工员" prop="groupId">
|
||||
<el-input
|
||||
v-model="queryParams.groupId"
|
||||
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="['manage:safePenetrationGridGroup:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['manage:safePenetrationGridGroup:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['manage:safePenetrationGridGroup:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['manage:safePenetrationGridGroup:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="safePenetrationGridGroupList" @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="gridId" />
|
||||
<el-table-column label="施工员" align="center" prop="groupId" />
|
||||
<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="['manage:safePenetrationGridGroup:edit']">修改</el-button>
|
||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['manage:safePenetrationGridGroup: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="safePenetrationGridGroupRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="网格ID" prop="gridId">
|
||||
<el-input v-model="form.gridId" placeholder="请输入网格ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="施工员" prop="groupId">
|
||||
<el-input v-model="form.groupId" 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="SafePenetrationGridGroup">
|
||||
import { listSafePenetrationGridGroup, getSafePenetrationGridGroup, delSafePenetrationGridGroup, addSafePenetrationGridGroup, updateSafePenetrationGridGroup } from "@/api/manage/safePenetrationGridGroup";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const safePenetrationGridGroupList = 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,
|
||||
gridId: null,
|
||||
groupId: null
|
||||
},
|
||||
rules: {
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
/** 查询网格-现场负责人列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
listSafePenetrationGridGroup(queryParams.value).then(response => {
|
||||
safePenetrationGridGroupList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
// 取消按钮
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
reset();
|
||||
}
|
||||
|
||||
// 表单重置
|
||||
function reset() {
|
||||
form.value = {
|
||||
id: null,
|
||||
gridId: null,
|
||||
groupId: null
|
||||
};
|
||||
proxy.resetForm("safePenetrationGridGroupRef");
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
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
|
||||
getSafePenetrationGridGroup(_id).then(response => {
|
||||
form.value = response.data;
|
||||
open.value = true;
|
||||
title.value = "修改网格-现场负责人";
|
||||
});
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["safePenetrationGridGroupRef"].validate(valid => {
|
||||
if (valid) {
|
||||
if (form.value.id != null) {
|
||||
updateSafePenetrationGridGroup(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
} else {
|
||||
addSafePenetrationGridGroup(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 delSafePenetrationGridGroup(_ids);
|
||||
}).then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download('manage/safePenetrationGridGroup/export', {
|
||||
...queryParams.value
|
||||
}, `safePenetrationGridGroup_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
||||
|
|
@ -0,0 +1,241 @@
|
|||
<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="gridId">
|
||||
<el-input
|
||||
v-model="queryParams.gridId"
|
||||
placeholder="请输入网格ID"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="施工员" prop="userId">
|
||||
<el-input
|
||||
v-model="queryParams.userId"
|
||||
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="['manage:safePenetrationGridSiteLeader:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['manage:safePenetrationGridSiteLeader:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['manage:safePenetrationGridSiteLeader:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['manage:safePenetrationGridSiteLeader:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="safePenetrationGridSiteLeaderList" @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="gridId" />
|
||||
<el-table-column label="施工员" align="center" prop="userId" />
|
||||
<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="['manage:safePenetrationGridSiteLeader:edit']">修改</el-button>
|
||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['manage:safePenetrationGridSiteLeader: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="safePenetrationGridSiteLeaderRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="网格ID" prop="gridId">
|
||||
<el-input v-model="form.gridId" placeholder="请输入网格ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="施工员" prop="userId">
|
||||
<el-input v-model="form.userId" 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="SafePenetrationGridSiteLeader">
|
||||
import { listSafePenetrationGridSiteLeader, getSafePenetrationGridSiteLeader, delSafePenetrationGridSiteLeader, addSafePenetrationGridSiteLeader, updateSafePenetrationGridSiteLeader } from "@/api/manage/safePenetrationGridSiteLeader";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const safePenetrationGridSiteLeaderList = 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,
|
||||
gridId: null,
|
||||
userId: null
|
||||
},
|
||||
rules: {
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
/** 查询网格-现场负责人列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
listSafePenetrationGridSiteLeader(queryParams.value).then(response => {
|
||||
safePenetrationGridSiteLeaderList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
// 取消按钮
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
reset();
|
||||
}
|
||||
|
||||
// 表单重置
|
||||
function reset() {
|
||||
form.value = {
|
||||
id: null,
|
||||
gridId: null,
|
||||
userId: null
|
||||
};
|
||||
proxy.resetForm("safePenetrationGridSiteLeaderRef");
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
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
|
||||
getSafePenetrationGridSiteLeader(_id).then(response => {
|
||||
form.value = response.data;
|
||||
open.value = true;
|
||||
title.value = "修改网格-现场负责人";
|
||||
});
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["safePenetrationGridSiteLeaderRef"].validate(valid => {
|
||||
if (valid) {
|
||||
if (form.value.id != null) {
|
||||
updateSafePenetrationGridSiteLeader(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
} else {
|
||||
addSafePenetrationGridSiteLeader(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 delSafePenetrationGridSiteLeader(_ids);
|
||||
}).then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download('manage/safePenetrationGridSiteLeader/export', {
|
||||
...queryParams.value
|
||||
}, `safePenetrationGridSiteLeader_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
||||
|
|
@ -0,0 +1,241 @@
|
|||
<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="gridId">
|
||||
<el-input
|
||||
v-model="queryParams.gridId"
|
||||
placeholder="请输入网格ID"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="施工员" prop="userId">
|
||||
<el-input
|
||||
v-model="queryParams.userId"
|
||||
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="['manage:safePenetrationGridWorker:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['manage:safePenetrationGridWorker:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['manage:safePenetrationGridWorker:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['manage:safePenetrationGridWorker:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="safePenetrationGridWorkerList" @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="gridId" />
|
||||
<el-table-column label="施工员" align="center" prop="userId" />
|
||||
<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="['manage:safePenetrationGridWorker:edit']">修改</el-button>
|
||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['manage:safePenetrationGridWorker: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="safePenetrationGridWorkerRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="网格ID" prop="gridId">
|
||||
<el-input v-model="form.gridId" placeholder="请输入网格ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="施工员" prop="userId">
|
||||
<el-input v-model="form.userId" 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="SafePenetrationGridWorker">
|
||||
import { listSafePenetrationGridWorker, getSafePenetrationGridWorker, delSafePenetrationGridWorker, addSafePenetrationGridWorker, updateSafePenetrationGridWorker } from "@/api/manage/safePenetrationGridWorker";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const safePenetrationGridWorkerList = 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,
|
||||
gridId: null,
|
||||
userId: null
|
||||
},
|
||||
rules: {
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
/** 查询网格-施工员列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
listSafePenetrationGridWorker(queryParams.value).then(response => {
|
||||
safePenetrationGridWorkerList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
// 取消按钮
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
reset();
|
||||
}
|
||||
|
||||
// 表单重置
|
||||
function reset() {
|
||||
form.value = {
|
||||
id: null,
|
||||
gridId: null,
|
||||
userId: null
|
||||
};
|
||||
proxy.resetForm("safePenetrationGridWorkerRef");
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
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
|
||||
getSafePenetrationGridWorker(_id).then(response => {
|
||||
form.value = response.data;
|
||||
open.value = true;
|
||||
title.value = "修改网格-施工员";
|
||||
});
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["safePenetrationGridWorkerRef"].validate(valid => {
|
||||
if (valid) {
|
||||
if (form.value.id != null) {
|
||||
updateSafePenetrationGridWorker(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
} else {
|
||||
addSafePenetrationGridWorker(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 delSafePenetrationGridWorker(_ids);
|
||||
}).then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download('manage/safePenetrationGridWorker/export', {
|
||||
...queryParams.value
|
||||
}, `safePenetrationGridWorker_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
||||
|
|
@ -0,0 +1,326 @@
|
|||
<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="projectId">
|
||||
<el-input
|
||||
v-model="queryParams.projectId"
|
||||
placeholder="请输入项目ID"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="父部门id" prop="parentId">
|
||||
<el-input
|
||||
v-model="queryParams.parentId"
|
||||
placeholder="请输入父部门id"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="${comment}" prop="itemDesc">
|
||||
<el-input
|
||||
v-model="queryParams.itemDesc"
|
||||
placeholder="请输入${comment}"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="条目类目 1-横向检查 2-纵向检查 3-跟班作业" prop="itemCatetory">
|
||||
<el-input
|
||||
v-model="queryParams.itemCatetory"
|
||||
placeholder="请输入条目类目 1-横向检查 2-纵向检查 3-跟班作业"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="外部id" prop="itemKey">
|
||||
<el-input
|
||||
v-model="queryParams.itemKey"
|
||||
placeholder="请输入外部id"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="风险等级 1.低风险 2一般风险 3.较大风险" prop="riskLevel">
|
||||
<el-input
|
||||
v-model="queryParams.riskLevel"
|
||||
placeholder="请输入风险等级 1.低风险 2一般风险 3.较大风险"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="${comment}" prop="sorted">
|
||||
<el-input
|
||||
v-model="queryParams.sorted"
|
||||
placeholder="请输入${comment}"
|
||||
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="['manage:safePenetrationItem:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['manage:safePenetrationItem:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['manage:safePenetrationItem:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['manage:safePenetrationItem:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="safePenetrationItemList" @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="projectId" />
|
||||
<el-table-column label="父部门id" align="center" prop="parentId" />
|
||||
<el-table-column label="条目类型0-条目 1-分类 2-事故" align="center" prop="itemType" />
|
||||
<el-table-column label="${comment}" align="center" prop="itemDesc" />
|
||||
<el-table-column label="条目类目 1-横向检查 2-纵向检查 3-跟班作业" align="center" prop="itemCatetory" />
|
||||
<el-table-column label="外部id" align="center" prop="itemKey" />
|
||||
<el-table-column label="风险因素" align="center" prop="riskFactor" />
|
||||
<el-table-column label="风险等级 1.低风险 2一般风险 3.较大风险" align="center" prop="riskLevel" />
|
||||
<el-table-column label="控制措施" align="center" prop="controlMeasure" />
|
||||
<el-table-column label="${comment}" align="center" prop="sorted" />
|
||||
<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="['manage:safePenetrationItem:edit']">修改</el-button>
|
||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['manage:safePenetrationItem: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="safePenetrationItemRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="项目ID" prop="projectId">
|
||||
<el-input v-model="form.projectId" placeholder="请输入项目ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="父部门id" prop="parentId">
|
||||
<el-input v-model="form.parentId" placeholder="请输入父部门id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="${comment}" prop="itemDesc">
|
||||
<el-input v-model="form.itemDesc" placeholder="请输入${comment}" />
|
||||
</el-form-item>
|
||||
<el-form-item label="条目类目 1-横向检查 2-纵向检查 3-跟班作业" prop="itemCatetory">
|
||||
<el-input v-model="form.itemCatetory" placeholder="请输入条目类目 1-横向检查 2-纵向检查 3-跟班作业" />
|
||||
</el-form-item>
|
||||
<el-form-item label="外部id" prop="itemKey">
|
||||
<el-input v-model="form.itemKey" placeholder="请输入外部id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="风险因素" prop="riskFactor">
|
||||
<el-input v-model="form.riskFactor" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="风险等级 1.低风险 2一般风险 3.较大风险" prop="riskLevel">
|
||||
<el-input v-model="form.riskLevel" placeholder="请输入风险等级 1.低风险 2一般风险 3.较大风险" />
|
||||
</el-form-item>
|
||||
<el-form-item label="控制措施" prop="controlMeasure">
|
||||
<el-input v-model="form.controlMeasure" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="${comment}" prop="sorted">
|
||||
<el-input v-model="form.sorted" placeholder="请输入${comment}" />
|
||||
</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="SafePenetrationItem">
|
||||
import { listSafePenetrationItem, getSafePenetrationItem, delSafePenetrationItem, addSafePenetrationItem, updateSafePenetrationItem } from "@/api/manage/safePenetrationItem";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const safePenetrationItemList = 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,
|
||||
projectId: null,
|
||||
parentId: null,
|
||||
itemType: null,
|
||||
itemDesc: null,
|
||||
itemCatetory: null,
|
||||
itemKey: null,
|
||||
riskFactor: null,
|
||||
riskLevel: null,
|
||||
controlMeasure: null,
|
||||
sorted: null
|
||||
},
|
||||
rules: {
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
/** 查询网格管理配置项列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
listSafePenetrationItem(queryParams.value).then(response => {
|
||||
safePenetrationItemList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
// 取消按钮
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
reset();
|
||||
}
|
||||
|
||||
// 表单重置
|
||||
function reset() {
|
||||
form.value = {
|
||||
id: null,
|
||||
projectId: null,
|
||||
parentId: null,
|
||||
itemType: null,
|
||||
itemDesc: null,
|
||||
itemCatetory: null,
|
||||
itemKey: null,
|
||||
riskFactor: null,
|
||||
riskLevel: null,
|
||||
controlMeasure: null,
|
||||
sorted: null
|
||||
};
|
||||
proxy.resetForm("safePenetrationItemRef");
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
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
|
||||
getSafePenetrationItem(_id).then(response => {
|
||||
form.value = response.data;
|
||||
open.value = true;
|
||||
title.value = "修改网格管理配置项";
|
||||
});
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["safePenetrationItemRef"].validate(valid => {
|
||||
if (valid) {
|
||||
if (form.value.id != null) {
|
||||
updateSafePenetrationItem(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
} else {
|
||||
addSafePenetrationItem(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 delSafePenetrationItem(_ids);
|
||||
}).then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download('manage/safePenetrationItem/export', {
|
||||
...queryParams.value
|
||||
}, `safePenetrationItem_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
||||
|
|
@ -0,0 +1,314 @@
|
|||
<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="gridId">
|
||||
<el-input
|
||||
v-model="queryParams.gridId"
|
||||
placeholder="请输入网格ID"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="工点" prop="workspaceId">
|
||||
<el-input
|
||||
v-model="queryParams.workspaceId"
|
||||
placeholder="请输入工点"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="部位 0-上部结构 1-下部结构" prop="position">
|
||||
<el-input
|
||||
v-model="queryParams.position"
|
||||
placeholder="请输入部位 0-上部结构 1-下部结构"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="里程DK1-a" prop="dk1a">
|
||||
<el-input
|
||||
v-model="queryParams.dk1a"
|
||||
placeholder="请输入里程DK1-a"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="里程DK1-b" prop="dk1b">
|
||||
<el-input
|
||||
v-model="queryParams.dk1b"
|
||||
placeholder="请输入里程DK1-b"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="里程DK2-a" prop="dk2a">
|
||||
<el-input
|
||||
v-model="queryParams.dk2a"
|
||||
placeholder="请输入里程DK2-a"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="里程DK2-b" prop="dk2b">
|
||||
<el-input
|
||||
v-model="queryParams.dk2b"
|
||||
placeholder="请输入里程DK2-b"
|
||||
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="['manage:safePenetrationRange:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['manage:safePenetrationRange:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['manage:safePenetrationRange:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['manage:safePenetrationRange:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="safePenetrationRangeList" @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="gridId" />
|
||||
<el-table-column label="工程类型" align="center" prop="engineeringType" />
|
||||
<el-table-column label="工点" align="center" prop="workspaceId" />
|
||||
<el-table-column label="部位 0-上部结构 1-下部结构" align="center" prop="position" />
|
||||
<el-table-column label="里程DK1-a" align="center" prop="dk1a" />
|
||||
<el-table-column label="里程DK1-b" align="center" prop="dk1b" />
|
||||
<el-table-column label="里程DK2-a" align="center" prop="dk2a" />
|
||||
<el-table-column label="里程DK2-b" align="center" prop="dk2b" />
|
||||
<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="['manage:safePenetrationRange:edit']">修改</el-button>
|
||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['manage:safePenetrationRange: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="safePenetrationRangeRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="网格ID" prop="gridId">
|
||||
<el-input v-model="form.gridId" placeholder="请输入网格ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="工点" prop="workspaceId">
|
||||
<el-input v-model="form.workspaceId" placeholder="请输入工点" />
|
||||
</el-form-item>
|
||||
<el-form-item label="部位 0-上部结构 1-下部结构" prop="position">
|
||||
<el-input v-model="form.position" placeholder="请输入部位 0-上部结构 1-下部结构" />
|
||||
</el-form-item>
|
||||
<el-form-item label="里程DK1-a" prop="dk1a">
|
||||
<el-input v-model="form.dk1a" placeholder="请输入里程DK1-a" />
|
||||
</el-form-item>
|
||||
<el-form-item label="里程DK1-b" prop="dk1b">
|
||||
<el-input v-model="form.dk1b" placeholder="请输入里程DK1-b" />
|
||||
</el-form-item>
|
||||
<el-form-item label="里程DK2-a" prop="dk2a">
|
||||
<el-input v-model="form.dk2a" placeholder="请输入里程DK2-a" />
|
||||
</el-form-item>
|
||||
<el-form-item label="里程DK2-b" prop="dk2b">
|
||||
<el-input v-model="form.dk2b" placeholder="请输入里程DK2-b" />
|
||||
</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="SafePenetrationRange">
|
||||
import { listSafePenetrationRange, getSafePenetrationRange, delSafePenetrationRange, addSafePenetrationRange, updateSafePenetrationRange } from "@/api/manage/safePenetrationRange";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const safePenetrationRangeList = 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,
|
||||
gridId: null,
|
||||
engineeringType: null,
|
||||
workspaceId: null,
|
||||
position: null,
|
||||
dk1a: null,
|
||||
dk1b: null,
|
||||
dk2a: null,
|
||||
dk2b: null
|
||||
},
|
||||
rules: {
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
/** 查询网格-范围列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
listSafePenetrationRange(queryParams.value).then(response => {
|
||||
safePenetrationRangeList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
// 取消按钮
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
reset();
|
||||
}
|
||||
|
||||
// 表单重置
|
||||
function reset() {
|
||||
form.value = {
|
||||
id: null,
|
||||
gridId: null,
|
||||
engineeringType: null,
|
||||
workspaceId: null,
|
||||
position: null,
|
||||
dk1a: null,
|
||||
dk1b: null,
|
||||
dk2a: null,
|
||||
dk2b: null
|
||||
};
|
||||
proxy.resetForm("safePenetrationRangeRef");
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
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
|
||||
getSafePenetrationRange(_id).then(response => {
|
||||
form.value = response.data;
|
||||
open.value = true;
|
||||
title.value = "修改网格-范围";
|
||||
});
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["safePenetrationRangeRef"].validate(valid => {
|
||||
if (valid) {
|
||||
if (form.value.id != null) {
|
||||
updateSafePenetrationRange(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
} else {
|
||||
addSafePenetrationRange(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 delSafePenetrationRange(_ids);
|
||||
}).then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download('manage/safePenetrationRange/export', {
|
||||
...queryParams.value
|
||||
}, `safePenetrationRange_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
||||
|
|
@ -0,0 +1,287 @@
|
|||
<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="projectId">
|
||||
<el-input
|
||||
v-model="queryParams.projectId"
|
||||
placeholder="请输入项目ID"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="节点名称" prop="nodeName">
|
||||
<el-input
|
||||
v-model="queryParams.nodeName"
|
||||
placeholder="请输入节点名称"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="排序" prop="sorted">
|
||||
<el-input
|
||||
v-model="queryParams.sorted"
|
||||
placeholder="请输入排序"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="${comment}" prop="state">
|
||||
<el-input
|
||||
v-model="queryParams.state"
|
||||
placeholder="请输入${comment}"
|
||||
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="['manage:safePenetrationWorkspace:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="Edit"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['manage:safePenetrationWorkspace:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['manage:safePenetrationWorkspace:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['manage:safePenetrationWorkspace:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="safePenetrationWorkspaceList" @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="projectId" />
|
||||
<el-table-column label="节点名称" align="center" prop="nodeName" />
|
||||
<el-table-column label="节点类型" align="center" prop="nodeType" />
|
||||
<el-table-column label="工点类型" align="center" prop="workspaceType" />
|
||||
<el-table-column label="排序" align="center" prop="sorted" />
|
||||
<el-table-column label="${comment}" align="center" prop="state" />
|
||||
<el-table-column label="${comment}" align="center" prop="remark" />
|
||||
<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="['manage:safePenetrationWorkspace:edit']">修改</el-button>
|
||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['manage:safePenetrationWorkspace: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="safePenetrationWorkspaceRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="项目ID" prop="projectId">
|
||||
<el-input v-model="form.projectId" placeholder="请输入项目ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="节点名称" prop="nodeName">
|
||||
<el-input v-model="form.nodeName" placeholder="请输入节点名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="排序" prop="sorted">
|
||||
<el-input v-model="form.sorted" placeholder="请输入排序" />
|
||||
</el-form-item>
|
||||
<el-form-item label="${comment}" prop="state">
|
||||
<el-input v-model="form.state" placeholder="请输入${comment}" />
|
||||
</el-form-item>
|
||||
<el-form-item label="${comment}" prop="remark">
|
||||
<el-input v-model="form.remark" placeholder="请输入${comment}" />
|
||||
</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="SafePenetrationWorkspace">
|
||||
import { listSafePenetrationWorkspace, getSafePenetrationWorkspace, delSafePenetrationWorkspace, addSafePenetrationWorkspace, updateSafePenetrationWorkspace } from "@/api/manage/safePenetrationWorkspace";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const safePenetrationWorkspaceList = 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,
|
||||
projectId: null,
|
||||
nodeName: null,
|
||||
nodeType: null,
|
||||
workspaceType: null,
|
||||
sorted: null,
|
||||
state: null,
|
||||
},
|
||||
rules: {
|
||||
sorted: [
|
||||
{ required: true, message: "排序不能为空", trigger: "blur" }
|
||||
],
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
/** 查询工点列表 */
|
||||
function getList() {
|
||||
loading.value = true;
|
||||
listSafePenetrationWorkspace(queryParams.value).then(response => {
|
||||
safePenetrationWorkspaceList.value = response.rows;
|
||||
total.value = response.total;
|
||||
loading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
// 取消按钮
|
||||
function cancel() {
|
||||
open.value = false;
|
||||
reset();
|
||||
}
|
||||
|
||||
// 表单重置
|
||||
function reset() {
|
||||
form.value = {
|
||||
id: null,
|
||||
projectId: null,
|
||||
nodeName: null,
|
||||
nodeType: null,
|
||||
workspaceType: null,
|
||||
sorted: null,
|
||||
state: null,
|
||||
remark: null,
|
||||
createBy: null,
|
||||
createTime: null,
|
||||
updateBy: null,
|
||||
updateTime: null
|
||||
};
|
||||
proxy.resetForm("safePenetrationWorkspaceRef");
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
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
|
||||
getSafePenetrationWorkspace(_id).then(response => {
|
||||
form.value = response.data;
|
||||
open.value = true;
|
||||
title.value = "修改工点";
|
||||
});
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs["safePenetrationWorkspaceRef"].validate(valid => {
|
||||
if (valid) {
|
||||
if (form.value.id != null) {
|
||||
updateSafePenetrationWorkspace(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("修改成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
} else {
|
||||
addSafePenetrationWorkspace(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 delSafePenetrationWorkspace(_ids);
|
||||
}).then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download('manage/safePenetrationWorkspace/export', {
|
||||
...queryParams.value
|
||||
}, `safePenetrationWorkspace_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
||||
|
|
@ -68,7 +68,7 @@
|
|||
<el-icon><question-filled /></el-icon>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<tree-select
|
||||
<tree-select style="width: 200px;"
|
||||
v-model:value="info.parentMenuId"
|
||||
:options="menuOptions"
|
||||
:objMap="{ value: 'menuId', label: 'menuName', children: 'children' }"
|
||||
|
|
|
|||
Loading…
Reference in New Issue