Commit 64e242fa authored by 耿迪迪's avatar 耿迪迪

隐患分类标准

parent d2f07a1e
package com.zehong.web.controller.supervision;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
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.zehong.common.annotation.Log;
import com.zehong.common.core.controller.BaseController;
import com.zehong.common.core.domain.AjaxResult;
import com.zehong.common.enums.BusinessType;
import com.zehong.system.domain.TInsStaInfor;
import com.zehong.system.service.ITInsStaInforService;
import com.zehong.common.utils.poi.ExcelUtil;
import com.zehong.common.core.page.TableDataInfo;
/**
* 监督检查-隐患分类分级标准Controller
*
* @author zehong
* @date 2024-05-17
*/
@RestController
@RequestMapping("/supervision/hideType")
public class TInsStaInforController extends BaseController
{
@Autowired
private ITInsStaInforService tInsStaInforService;
/**
* 查询监督检查-隐患分类分级标准列表
*/
@PreAuthorize("@ss.hasPermi('supervision:hideType:list')")
@GetMapping("/list")
public TableDataInfo list(TInsStaInfor tInsStaInfor)
{
startPage();
List<TInsStaInfor> list = tInsStaInforService.selectTInsStaInforList(tInsStaInfor);
return getDataTable(list);
}
/**
* 导出监督检查-隐患分类分级标准列表
*/
@PreAuthorize("@ss.hasPermi('supervision:hideType:export')")
@Log(title = "监督检查-隐患分类分级标准", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(TInsStaInfor tInsStaInfor)
{
List<TInsStaInfor> list = tInsStaInforService.selectTInsStaInforList(tInsStaInfor);
ExcelUtil<TInsStaInfor> util = new ExcelUtil<TInsStaInfor>(TInsStaInfor.class);
return util.exportExcel(list, "监督检查-隐患分类分级标准数据");
}
/**
* 获取监督检查-隐患分类分级标准详细信息
*/
@PreAuthorize("@ss.hasPermi('supervision:hideType:query')")
@GetMapping(value = "/{fInsStaInforId}")
public AjaxResult getInfo(@PathVariable("fInsStaInforId") Long fInsStaInforId)
{
return AjaxResult.success(tInsStaInforService.selectTInsStaInforById(fInsStaInforId));
}
/**
* 新增监督检查-隐患分类分级标准
*/
@PreAuthorize("@ss.hasPermi('supervision:hideType:add')")
@Log(title = "监督检查-隐患分类分级标准", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TInsStaInfor tInsStaInfor)
{
return toAjax(tInsStaInforService.insertTInsStaInfor(tInsStaInfor));
}
/**
* 修改监督检查-隐患分类分级标准
*/
@PreAuthorize("@ss.hasPermi('supervision:hideType:edit')")
@Log(title = "监督检查-隐患分类分级标准", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TInsStaInfor tInsStaInfor)
{
return toAjax(tInsStaInforService.updateTInsStaInfor(tInsStaInfor));
}
/**
* 删除监督检查-隐患分类分级标准
*/
@PreAuthorize("@ss.hasPermi('supervision:hideType:remove')")
@Log(title = "监督检查-隐患分类分级标准", businessType = BusinessType.DELETE)
@DeleteMapping("/{fInsStaInforIds}")
public AjaxResult remove(@PathVariable Long[] fInsStaInforIds)
{
return toAjax(tInsStaInforService.deleteTInsStaInforByIds(fInsStaInforIds));
}
}
package com.zehong.system.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zehong.common.annotation.Excel;
import com.zehong.common.core.domain.BaseEntity;
/**
* 监督检查-隐患分类分级标准对象 t_ins_sta_infor
*
* @author zehong
* @date 2024-05-17
*/
public class TInsStaInfor extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** id */
private Long fInsStaInforId;
/** 隐患名称 */
@Excel(name = "隐患名称")
private String fHazardName;
/** 隐患编码 */
@Excel(name = "隐患编码")
private String fHazardCode;
/** 隐患描述 */
@Excel(name = "隐患描述")
private String fHazardDescribe;
/** 对象分类 */
@Excel(name = "对象分类")
private String fObjectType;
/** 隐患类别
*1-漏气隐患 2-管道隐患 3-设备设施 4-用气环境 */
@Excel(name = "隐患类别",dictType = "t_hazard_category")
private Long fHazardCategory;
/** 隐患环节/部位 */
@Excel(name = "隐患环节/部位")
private String fHazardLink;
/** 隐患等级 */
@Excel(name = "隐患等级")
private String fHazardLevel;
/** 隐患定义来源字段
code, HAZARD_DEFINITION_SOURCE */
@Excel(name = "隐患定义来源字段")
private String fHazardDefinitionSourceCode;
/** 整改责任归属 */
@Excel(name = "整改责任归属")
private String fOwnerResponse;
/** 主管部门关联 sys_organization */
@Excel(name = "主管部门关联")
private Long fAdministrativeSysOrganizationId;
/** 主管部门名称 */
@Excel(name = "主管部门名称")
private String fAdministrativeDepartmentName;
/** 是否强制执法,Y-是,N-否 */
@Excel(name = "是否强制执法",dictType = "t_is_enforcement")
private String fIsEnforcement;
/** 执法部门 id */
@Excel(name = "执法部门id")
private Long fEnforcementSysOrganizationId;
/** 执法部门名称冗余 */
@Excel(name = "执法部门名称")
private String fEnforcementDepartmentName;
/** 整改监督部门 */
@Excel(name = "整改监督部门")
private Long fSupervisionSysOrganizationId;
/** 整改部门名称 */
@Excel(name = "整改部门名称")
private String fSupervisionDepartmentName;
/** 整改要求 */
@Excel(name = "整改要求")
private String fRectRequire;
/** 整改期限 */
@Excel(name = "整改期限")
private String fRectDeadline;
/** 隐患排查依据 */
@Excel(name = "隐患排查依据")
private String fHazardCheckBasis;
/** 检查项ID */
@Excel(name = "检查项ID")
private String fCheckItemId;
/** 检查部门 */
@Excel(name = "检查部门")
private String fCheckDept;
/** 检查方法 */
@Excel(name = "检查方法")
private String fCheckMethod;
/** 执法参考依据 */
@Excel(name = "执法参考依据")
private String fEnforcementAccording;
/** 系统默认 createBy */
@Excel(name = "创建人")
private String fCreateBy;
/** 系统默认 createTime */
@Excel(name = "创建时间")
private String fCreateTime;
/** 系统默认updateBy */
@Excel(name = "更新人")
private String fUpdateBy;
/** 系统默认updateTime */
@Excel(name = "更新时间")
private String fUpdateTime;
/** 删除标记0-可用,1-已删除 */
@Excel(name = "删除标记",dictType = "t_delete_flag")
private Long fDeleteFlag;
public void setfInsStaInforId(Long fInsStaInforId)
{
this.fInsStaInforId = fInsStaInforId;
}
public Long getfInsStaInforId()
{
return fInsStaInforId;
}
public void setfHazardName(String fHazardName)
{
this.fHazardName = fHazardName;
}
public String getfHazardName()
{
return fHazardName;
}
public void setfHazardCode(String fHazardCode)
{
this.fHazardCode = fHazardCode;
}
public String getfHazardCode()
{
return fHazardCode;
}
public void setfHazardDescribe(String fHazardDescribe)
{
this.fHazardDescribe = fHazardDescribe;
}
public String getfHazardDescribe()
{
return fHazardDescribe;
}
public void setfObjectType(String fObjectType)
{
this.fObjectType = fObjectType;
}
public String getfObjectType()
{
return fObjectType;
}
public void setfHazardCategory(Long fHazardCategory)
{
this.fHazardCategory = fHazardCategory;
}
public Long getfHazardCategory()
{
return fHazardCategory;
}
public void setfHazardLink(String fHazardLink)
{
this.fHazardLink = fHazardLink;
}
public String getfHazardLink()
{
return fHazardLink;
}
public void setfHazardLevel(String fHazardLevel)
{
this.fHazardLevel = fHazardLevel;
}
public String getfHazardLevel()
{
return fHazardLevel;
}
public void setfHazardDefinitionSourceCode(String fHazardDefinitionSourceCode)
{
this.fHazardDefinitionSourceCode = fHazardDefinitionSourceCode;
}
public String getfHazardDefinitionSourceCode()
{
return fHazardDefinitionSourceCode;
}
public void setfOwnerResponse(String fOwnerResponse)
{
this.fOwnerResponse = fOwnerResponse;
}
public String getfOwnerResponse()
{
return fOwnerResponse;
}
public void setfAdministrativeSysOrganizationId(Long fAdministrativeSysOrganizationId)
{
this.fAdministrativeSysOrganizationId = fAdministrativeSysOrganizationId;
}
public Long getfAdministrativeSysOrganizationId()
{
return fAdministrativeSysOrganizationId;
}
public void setfAdministrativeDepartmentName(String fAdministrativeDepartmentName)
{
this.fAdministrativeDepartmentName = fAdministrativeDepartmentName;
}
public String getfAdministrativeDepartmentName()
{
return fAdministrativeDepartmentName;
}
public void setfIsEnforcement(String fIsEnforcement)
{
this.fIsEnforcement = fIsEnforcement;
}
public String getfIsEnforcement()
{
return fIsEnforcement;
}
public void setfEnforcementSysOrganizationId(Long fEnforcementSysOrganizationId)
{
this.fEnforcementSysOrganizationId = fEnforcementSysOrganizationId;
}
public Long getfEnforcementSysOrganizationId()
{
return fEnforcementSysOrganizationId;
}
public void setfEnforcementDepartmentName(String fEnforcementDepartmentName)
{
this.fEnforcementDepartmentName = fEnforcementDepartmentName;
}
public String getfEnforcementDepartmentName()
{
return fEnforcementDepartmentName;
}
public void setfSupervisionSysOrganizationId(Long fSupervisionSysOrganizationId)
{
this.fSupervisionSysOrganizationId = fSupervisionSysOrganizationId;
}
public Long getfSupervisionSysOrganizationId()
{
return fSupervisionSysOrganizationId;
}
public void setfSupervisionDepartmentName(String fSupervisionDepartmentName)
{
this.fSupervisionDepartmentName = fSupervisionDepartmentName;
}
public String getfSupervisionDepartmentName()
{
return fSupervisionDepartmentName;
}
public void setfRectRequire(String fRectRequire)
{
this.fRectRequire = fRectRequire;
}
public String getfRectRequire()
{
return fRectRequire;
}
public void setfRectDeadline(String fRectDeadline)
{
this.fRectDeadline = fRectDeadline;
}
public String getfRectDeadline()
{
return fRectDeadline;
}
public void setfHazardCheckBasis(String fHazardCheckBasis)
{
this.fHazardCheckBasis = fHazardCheckBasis;
}
public String getfHazardCheckBasis()
{
return fHazardCheckBasis;
}
public void setfCheckItemId(String fCheckItemId)
{
this.fCheckItemId = fCheckItemId;
}
public String getfCheckItemId()
{
return fCheckItemId;
}
public void setfCheckDept(String fCheckDept)
{
this.fCheckDept = fCheckDept;
}
public String getfCheckDept()
{
return fCheckDept;
}
public void setfCheckMethod(String fCheckMethod)
{
this.fCheckMethod = fCheckMethod;
}
public String getfCheckMethod()
{
return fCheckMethod;
}
public void setfEnforcementAccording(String fEnforcementAccording)
{
this.fEnforcementAccording = fEnforcementAccording;
}
public String getfEnforcementAccording()
{
return fEnforcementAccording;
}
public void setfCreateBy(String fCreateBy)
{
this.fCreateBy = fCreateBy;
}
public String getfCreateBy()
{
return fCreateBy;
}
public void setfCreateTime(String fCreateTime)
{
this.fCreateTime = fCreateTime;
}
public String getfCreateTime()
{
return fCreateTime;
}
public void setfUpdateBy(String fUpdateBy)
{
this.fUpdateBy = fUpdateBy;
}
public String getfUpdateBy()
{
return fUpdateBy;
}
public void setfUpdateTime(String fUpdateTime)
{
this.fUpdateTime = fUpdateTime;
}
public String getfUpdateTime()
{
return fUpdateTime;
}
public void setfDeleteFlag(Long fDeleteFlag)
{
this.fDeleteFlag = fDeleteFlag;
}
public Long getfDeleteFlag()
{
return fDeleteFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("fInsStaInforId", getfInsStaInforId())
.append("fHazardName", getfHazardName())
.append("fHazardCode", getfHazardCode())
.append("fHazardDescribe", getfHazardDescribe())
.append("fObjectType", getfObjectType())
.append("fHazardCategory", getfHazardCategory())
.append("fHazardLink", getfHazardLink())
.append("fHazardLevel", getfHazardLevel())
.append("fHazardDefinitionSourceCode", getfHazardDefinitionSourceCode())
.append("fOwnerResponse", getfOwnerResponse())
.append("fAdministrativeSysOrganizationId", getfAdministrativeSysOrganizationId())
.append("fAdministrativeDepartmentName", getfAdministrativeDepartmentName())
.append("fIsEnforcement", getfIsEnforcement())
.append("fEnforcementSysOrganizationId", getfEnforcementSysOrganizationId())
.append("fEnforcementDepartmentName", getfEnforcementDepartmentName())
.append("fSupervisionSysOrganizationId", getfSupervisionSysOrganizationId())
.append("fSupervisionDepartmentName", getfSupervisionDepartmentName())
.append("fRectRequire", getfRectRequire())
.append("fRectDeadline", getfRectDeadline())
.append("fHazardCheckBasis", getfHazardCheckBasis())
.append("fCheckItemId", getfCheckItemId())
.append("fCheckDept", getfCheckDept())
.append("fCheckMethod", getfCheckMethod())
.append("fEnforcementAccording", getfEnforcementAccording())
.append("fCreateBy", getfCreateBy())
.append("fCreateTime", getfCreateTime())
.append("fUpdateBy", getfUpdateBy())
.append("fUpdateTime", getfUpdateTime())
.append("fDeleteFlag", getfDeleteFlag())
.toString();
}
}
package com.zehong.system.mapper;
import java.util.List;
import com.zehong.system.domain.TInsStaInfor;
/**
* 监督检查-隐患分类分级标准Mapper接口
*
* @author zehong
* @date 2024-05-17
*/
public interface TInsStaInforMapper
{
/**
* 查询监督检查-隐患分类分级标准
*
* @param fInsStaInforId 监督检查-隐患分类分级标准ID
* @return 监督检查-隐患分类分级标准
*/
public TInsStaInfor selectTInsStaInforById(Long fInsStaInforId);
/**
* 查询监督检查-隐患分类分级标准列表
*
* @param tInsStaInfor 监督检查-隐患分类分级标准
* @return 监督检查-隐患分类分级标准集合
*/
public List<TInsStaInfor> selectTInsStaInforList(TInsStaInfor tInsStaInfor);
/**
* 新增监督检查-隐患分类分级标准
*
* @param tInsStaInfor 监督检查-隐患分类分级标准
* @return 结果
*/
public int insertTInsStaInfor(TInsStaInfor tInsStaInfor);
/**
* 修改监督检查-隐患分类分级标准
*
* @param tInsStaInfor 监督检查-隐患分类分级标准
* @return 结果
*/
public int updateTInsStaInfor(TInsStaInfor tInsStaInfor);
/**
* 删除监督检查-隐患分类分级标准
*
* @param fInsStaInforId 监督检查-隐患分类分级标准ID
* @return 结果
*/
public int deleteTInsStaInforById(Long fInsStaInforId);
/**
* 批量删除监督检查-隐患分类分级标准
*
* @param fInsStaInforIds 需要删除的数据ID
* @return 结果
*/
public int deleteTInsStaInforByIds(Long[] fInsStaInforIds);
}
package com.zehong.system.service;
import java.util.List;
import com.zehong.system.domain.TInsStaInfor;
/**
* 监督检查-隐患分类分级标准Service接口
*
* @author zehong
* @date 2024-05-17
*/
public interface ITInsStaInforService
{
/**
* 查询监督检查-隐患分类分级标准
*
* @param fInsStaInforId 监督检查-隐患分类分级标准ID
* @return 监督检查-隐患分类分级标准
*/
public TInsStaInfor selectTInsStaInforById(Long fInsStaInforId);
/**
* 查询监督检查-隐患分类分级标准列表
*
* @param tInsStaInfor 监督检查-隐患分类分级标准
* @return 监督检查-隐患分类分级标准集合
*/
public List<TInsStaInfor> selectTInsStaInforList(TInsStaInfor tInsStaInfor);
/**
* 新增监督检查-隐患分类分级标准
*
* @param tInsStaInfor 监督检查-隐患分类分级标准
* @return 结果
*/
public int insertTInsStaInfor(TInsStaInfor tInsStaInfor);
/**
* 修改监督检查-隐患分类分级标准
*
* @param tInsStaInfor 监督检查-隐患分类分级标准
* @return 结果
*/
public int updateTInsStaInfor(TInsStaInfor tInsStaInfor);
/**
* 批量删除监督检查-隐患分类分级标准
*
* @param fInsStaInforIds 需要删除的监督检查-隐患分类分级标准ID
* @return 结果
*/
public int deleteTInsStaInforByIds(Long[] fInsStaInforIds);
/**
* 删除监督检查-隐患分类分级标准信息
*
* @param fInsStaInforId 监督检查-隐患分类分级标准ID
* @return 结果
*/
public int deleteTInsStaInforById(Long fInsStaInforId);
}
package com.zehong.system.service.impl;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import com.zehong.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zehong.system.mapper.TInsStaInforMapper;
import com.zehong.system.domain.TInsStaInfor;
import com.zehong.system.service.ITInsStaInforService;
/**
* 监督检查-隐患分类分级标准Service业务层处理
*
* @author zehong
* @date 2024-05-17
*/
@Service
public class TInsStaInforServiceImpl implements ITInsStaInforService
{
@Autowired
private TInsStaInforMapper tInsStaInforMapper;
/**
* 查询监督检查-隐患分类分级标准
*
* @param fInsStaInforId 监督检查-隐患分类分级标准ID
* @return 监督检查-隐患分类分级标准
*/
@Override
public TInsStaInfor selectTInsStaInforById(Long fInsStaInforId)
{
return tInsStaInforMapper.selectTInsStaInforById(fInsStaInforId);
}
/**
* 查询监督检查-隐患分类分级标准列表
*
* @param tInsStaInfor 监督检查-隐患分类分级标准
* @return 监督检查-隐患分类分级标准
*/
@Override
public List<TInsStaInfor> selectTInsStaInforList(TInsStaInfor tInsStaInfor)
{
return tInsStaInforMapper.selectTInsStaInforList(tInsStaInfor);
}
/**
* 新增监督检查-隐患分类分级标准
*
* @param tInsStaInfor 监督检查-隐患分类分级标准
* @return 结果
*/
@Override
public int insertTInsStaInfor(TInsStaInfor tInsStaInfor)
{
tInsStaInfor.setfCreateTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
tInsStaInfor.setfCreateBy(SecurityUtils.getUsername());
return tInsStaInforMapper.insertTInsStaInfor(tInsStaInfor);
}
/**
* 修改监督检查-隐患分类分级标准
*
* @param tInsStaInfor 监督检查-隐患分类分级标准
* @return 结果
*/
@Override
public int updateTInsStaInfor(TInsStaInfor tInsStaInfor)
{
tInsStaInfor.setfUpdateTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
tInsStaInfor.setfUpdateBy(SecurityUtils.getUsername());
return tInsStaInforMapper.updateTInsStaInfor(tInsStaInfor);
}
/**
* 批量删除监督检查-隐患分类分级标准
*
* @param fInsStaInforIds 需要删除的监督检查-隐患分类分级标准ID
* @return 结果
*/
@Override
public int deleteTInsStaInforByIds(Long[] fInsStaInforIds)
{
return tInsStaInforMapper.deleteTInsStaInforByIds(fInsStaInforIds);
}
/**
* 删除监督检查-隐患分类分级标准信息
*
* @param fInsStaInforId 监督检查-隐患分类分级标准ID
* @return 结果
*/
@Override
public int deleteTInsStaInforById(Long fInsStaInforId)
{
return tInsStaInforMapper.deleteTInsStaInforById(fInsStaInforId);
}
}
<?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.zehong.system.mapper.TInsStaInforMapper">
<resultMap type="TInsStaInfor" id="TInsStaInforResult">
<result property="fInsStaInforId" column="f_ins_sta_infor_id" />
<result property="fHazardName" column="f_hazard_name" />
<result property="fHazardCode" column="f_hazard_code" />
<result property="fHazardDescribe" column="f_hazard_describe" />
<result property="fObjectType" column="f_object_type" />
<result property="fHazardCategory" column="f_hazard_category" />
<result property="fHazardLink" column="f_hazard_link" />
<result property="fHazardLevel" column="f_hazard_level" />
<result property="fHazardDefinitionSourceCode" column="f_hazard_definition_source_code" />
<result property="fOwnerResponse" column="f_owner_response" />
<result property="fAdministrativeSysOrganizationId" column="f_administrative_sys_organization_id" />
<result property="fAdministrativeDepartmentName" column="f_administrative_department_name" />
<result property="fIsEnforcement" column="f_is_enforcement" />
<result property="fEnforcementSysOrganizationId" column="f_enforcement_sys_organization_id" />
<result property="fEnforcementDepartmentName" column="f_enforcement_department_name" />
<result property="fSupervisionSysOrganizationId" column="f_supervision_sys_organization_id" />
<result property="fSupervisionDepartmentName" column="f_supervision_department_name" />
<result property="fRectRequire" column="f_rect_require" />
<result property="fRectDeadline" column="f_rect_deadline" />
<result property="fHazardCheckBasis" column="f_hazard_check_basis" />
<result property="fCheckItemId" column="f_check_item_id" />
<result property="fCheckDept" column="f_check_dept" />
<result property="fCheckMethod" column="f_check_method" />
<result property="fEnforcementAccording" column="f_enforcement_according" />
<result property="fCreateBy" column="f_create_by" />
<result property="fCreateTime" column="f_create_time" />
<result property="fUpdateBy" column="f_update_by" />
<result property="fUpdateTime" column="f_update_time" />
<result property="fDeleteFlag" column="f_delete_flag" />
</resultMap>
<sql id="selectTInsStaInforVo">
select f_ins_sta_infor_id, f_hazard_name, f_hazard_code, f_hazard_describe, f_object_type, f_hazard_category, f_hazard_link, f_hazard_level, f_hazard_definition_source_code, f_owner_response, f_administrative_sys_organization_id, f_administrative_department_name, f_is_enforcement, f_enforcement_sys_organization_id, f_enforcement_department_name, f_supervision_sys_organization_id, f_supervision_department_name, f_rect_require, f_rect_deadline, f_hazard_check_basis, f_check_item_id, f_check_dept, f_check_method, f_enforcement_according, f_create_by, f_create_time, f_update_by, f_update_time, f_delete_flag from t_ins_sta_infor
</sql>
<select id="selectTInsStaInforList" parameterType="TInsStaInfor" resultMap="TInsStaInforResult">
<include refid="selectTInsStaInforVo"/>
<where>
<if test="fHazardName != null and fHazardName != ''"> and f_hazard_name like concat('%', #{fHazardName}, '%')</if>
<if test="fHazardCode != null and fHazardCode != ''"> and f_hazard_code like concat('%', #{fHazardCode}, '%')</if>
<if test="fHazardCategory != null "> and f_hazard_category = #{fHazardCategory}</if>
<if test="fHazardLevel != null and fHazardLevel != ''"> and f_hazard_level = #{fHazardLevel}</if>
</where>
</select>
<select id="selectTInsStaInforById" parameterType="Long" resultMap="TInsStaInforResult">
<include refid="selectTInsStaInforVo"/>
where f_ins_sta_infor_id = #{fInsStaInforId}
</select>
<insert id="insertTInsStaInfor" parameterType="TInsStaInfor" useGeneratedKeys="true" keyProperty="fInsStaInforId">
insert into t_ins_sta_infor
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="fHazardName != null">f_hazard_name,</if>
<if test="fHazardCode != null">f_hazard_code,</if>
<if test="fHazardDescribe != null">f_hazard_describe,</if>
<if test="fObjectType != null">f_object_type,</if>
<if test="fHazardCategory != null">f_hazard_category,</if>
<if test="fHazardLink != null">f_hazard_link,</if>
<if test="fHazardLevel != null">f_hazard_level,</if>
<if test="fHazardDefinitionSourceCode != null">f_hazard_definition_source_code,</if>
<if test="fOwnerResponse != null">f_owner_response,</if>
<if test="fAdministrativeSysOrganizationId != null">f_administrative_sys_organization_id,</if>
<if test="fAdministrativeDepartmentName != null">f_administrative_department_name,</if>
<if test="fIsEnforcement != null">f_is_enforcement,</if>
<if test="fEnforcementSysOrganizationId != null">f_enforcement_sys_organization_id,</if>
<if test="fEnforcementDepartmentName != null">f_enforcement_department_name,</if>
<if test="fSupervisionSysOrganizationId != null">f_supervision_sys_organization_id,</if>
<if test="fSupervisionDepartmentName != null">f_supervision_department_name,</if>
<if test="fRectRequire != null">f_rect_require,</if>
<if test="fRectDeadline != null">f_rect_deadline,</if>
<if test="fHazardCheckBasis != null">f_hazard_check_basis,</if>
<if test="fCheckItemId != null">f_check_item_id,</if>
<if test="fCheckDept != null">f_check_dept,</if>
<if test="fCheckMethod != null">f_check_method,</if>
<if test="fEnforcementAccording != null">f_enforcement_according,</if>
<if test="fCreateBy != null">f_create_by,</if>
<if test="fCreateTime != null">f_create_time,</if>
<if test="fUpdateBy != null">f_update_by,</if>
<if test="fUpdateTime != null">f_update_time,</if>
<if test="fDeleteFlag != null">f_delete_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="fHazardName != null">#{fHazardName},</if>
<if test="fHazardCode != null">#{fHazardCode},</if>
<if test="fHazardDescribe != null">#{fHazardDescribe},</if>
<if test="fObjectType != null">#{fObjectType},</if>
<if test="fHazardCategory != null">#{fHazardCategory},</if>
<if test="fHazardLink != null">#{fHazardLink},</if>
<if test="fHazardLevel != null">#{fHazardLevel},</if>
<if test="fHazardDefinitionSourceCode != null">#{fHazardDefinitionSourceCode},</if>
<if test="fOwnerResponse != null">#{fOwnerResponse},</if>
<if test="fAdministrativeSysOrganizationId != null">#{fAdministrativeSysOrganizationId},</if>
<if test="fAdministrativeDepartmentName != null">#{fAdministrativeDepartmentName},</if>
<if test="fIsEnforcement != null">#{fIsEnforcement},</if>
<if test="fEnforcementSysOrganizationId != null">#{fEnforcementSysOrganizationId},</if>
<if test="fEnforcementDepartmentName != null">#{fEnforcementDepartmentName},</if>
<if test="fSupervisionSysOrganizationId != null">#{fSupervisionSysOrganizationId},</if>
<if test="fSupervisionDepartmentName != null">#{fSupervisionDepartmentName},</if>
<if test="fRectRequire != null">#{fRectRequire},</if>
<if test="fRectDeadline != null">#{fRectDeadline},</if>
<if test="fHazardCheckBasis != null">#{fHazardCheckBasis},</if>
<if test="fCheckItemId != null">#{fCheckItemId},</if>
<if test="fCheckDept != null">#{fCheckDept},</if>
<if test="fCheckMethod != null">#{fCheckMethod},</if>
<if test="fEnforcementAccording != null">#{fEnforcementAccording},</if>
<if test="fCreateBy != null">#{fCreateBy},</if>
<if test="fCreateTime != null">#{fCreateTime},</if>
<if test="fUpdateBy != null">#{fUpdateBy},</if>
<if test="fUpdateTime != null">#{fUpdateTime},</if>
<if test="fDeleteFlag != null">#{fDeleteFlag},</if>
</trim>
</insert>
<update id="updateTInsStaInfor" parameterType="TInsStaInfor">
update t_ins_sta_infor
<trim prefix="SET" suffixOverrides=",">
<if test="fHazardName != null">f_hazard_name = #{fHazardName},</if>
<if test="fHazardCode != null">f_hazard_code = #{fHazardCode},</if>
<if test="fHazardDescribe != null">f_hazard_describe = #{fHazardDescribe},</if>
<if test="fObjectType != null">f_object_type = #{fObjectType},</if>
<if test="fHazardCategory != null">f_hazard_category = #{fHazardCategory},</if>
<if test="fHazardLink != null">f_hazard_link = #{fHazardLink},</if>
<if test="fHazardLevel != null">f_hazard_level = #{fHazardLevel},</if>
<if test="fHazardDefinitionSourceCode != null">f_hazard_definition_source_code = #{fHazardDefinitionSourceCode},</if>
<if test="fOwnerResponse != null">f_owner_response = #{fOwnerResponse},</if>
<if test="fAdministrativeSysOrganizationId != null">f_administrative_sys_organization_id = #{fAdministrativeSysOrganizationId},</if>
<if test="fAdministrativeDepartmentName != null">f_administrative_department_name = #{fAdministrativeDepartmentName},</if>
<if test="fIsEnforcement != null">f_is_enforcement = #{fIsEnforcement},</if>
<if test="fEnforcementSysOrganizationId != null">f_enforcement_sys_organization_id = #{fEnforcementSysOrganizationId},</if>
<if test="fEnforcementDepartmentName != null">f_enforcement_department_name = #{fEnforcementDepartmentName},</if>
<if test="fSupervisionSysOrganizationId != null">f_supervision_sys_organization_id = #{fSupervisionSysOrganizationId},</if>
<if test="fSupervisionDepartmentName != null">f_supervision_department_name = #{fSupervisionDepartmentName},</if>
<if test="fRectRequire != null">f_rect_require = #{fRectRequire},</if>
<if test="fRectDeadline != null">f_rect_deadline = #{fRectDeadline},</if>
<if test="fHazardCheckBasis != null">f_hazard_check_basis = #{fHazardCheckBasis},</if>
<if test="fCheckItemId != null">f_check_item_id = #{fCheckItemId},</if>
<if test="fCheckDept != null">f_check_dept = #{fCheckDept},</if>
<if test="fCheckMethod != null">f_check_method = #{fCheckMethod},</if>
<if test="fEnforcementAccording != null">f_enforcement_according = #{fEnforcementAccording},</if>
<if test="fCreateBy != null">f_create_by = #{fCreateBy},</if>
<if test="fCreateTime != null">f_create_time = #{fCreateTime},</if>
<if test="fUpdateBy != null">f_update_by = #{fUpdateBy},</if>
<if test="fUpdateTime != null">f_update_time = #{fUpdateTime},</if>
<if test="fDeleteFlag != null">f_delete_flag = #{fDeleteFlag},</if>
</trim>
where f_ins_sta_infor_id = #{fInsStaInforId}
</update>
<delete id="deleteTInsStaInforById" parameterType="Long">
delete from t_ins_sta_infor where f_ins_sta_infor_id = #{fInsStaInforId}
</delete>
<delete id="deleteTInsStaInforByIds" parameterType="String">
delete from t_ins_sta_infor where f_ins_sta_infor_id in
<foreach item="fInsStaInforId" collection="array" open="(" separator="," close=")">
#{fInsStaInforId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
import request from '@/utils/request'
// 查询监督检查-隐患分类分级标准列表
export function listInfor(query) {
return request({
url: '/supervision/hideType/list',
method: 'get',
params: query
})
}
// 查询监督检查-隐患分类分级标准详细
export function getInfor(fInsStaInforId) {
return request({
url: '/supervision/hideType/' + fInsStaInforId,
method: 'get'
})
}
// 新增监督检查-隐患分类分级标准
export function addInfor(data) {
return request({
url: '/supervision/hideType',
method: 'post',
data: data
})
}
// 修改监督检查-隐患分类分级标准
export function updateInfor(data) {
return request({
url: '/supervision/hideType',
method: 'put',
data: data
})
}
// 删除监督检查-隐患分类分级标准
export function delInfor(fInsStaInforId) {
return request({
url: '/supervision/hideType/' + fInsStaInforId,
method: 'delete'
})
}
// 导出监督检查-隐患分类分级标准
export function exportInfor(query) {
return request({
url: '/supervision/hideType/export',
method: 'get',
params: query
})
}
<template>
<el-dialog title="详情" :visible.sync="detailOpen" width="1000px" append-to-body destroy-on-close :close-on-click-modal="false">
<el-form label-width="120px">
<el-row class="el-row-table">
<el-col :span="12">
<el-form-item label="隐患名称">
<span v-if="detailInfo.fHazardName">{{ detailInfo.fHazardName }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患编码">
<span v-if="detailInfo.fHazardCode">{{ detailInfo.fHazardCode }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患描述">
<span v-if="detailInfo.fHazardDescribe">{{ detailInfo.fHazardDescribe }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="对象分类">
<span v-if="detailInfo.fObjectType">{{ detailInfo.fObjectType }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患类别">
<span v-if="detailInfo.fHazardCategory">{{ $parent.fHazardCategoryFormat(detailInfo) }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患环节/部位">
<span v-if="detailInfo.fHazardLink">{{ detailInfo.fHazardLink }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患等级">
<span v-if="detailInfo.fHazardLevel">{{ detailInfo.fHazardLevel }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患定义来源">
<span v-if="detailInfo.fHazardDefinitionSourceCode">{{ detailInfo.fHazardDefinitionSourceCode }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="整改责任归属">
<span v-if="detailInfo.fOwnerResponse">{{ detailInfo.fOwnerResponse }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="主管部门关联">
<span v-if="detailInfo.fAdministrativeSysOrganizationId">{{ detailInfo.fAdministrativeSysOrganizationId }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="主管部门名称">
<span v-if="detailInfo.fAdministrativeDepartmentName">{{ detailInfo.fAdministrativeDepartmentName }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="是否强制执法">
<span v-if="detailInfo.fIsEnforcement">{{ $parent.fIsEnforcementFormat(detailInfo) }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="执法部门id">
<span v-if="detailInfo.fEnforcementSysOrganizationId">{{ detailInfo.fEnforcementSysOrganizationId }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="执法部门名称">
<span v-if="detailInfo.fEnforcementDepartmentName">{{ detailInfo.fEnforcementDepartmentName }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="整改监督部门">
<span v-if="detailInfo.fSupervisionSysOrganizationId">{{ detailInfo.fSupervisionSysOrganizationId }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="整改部门名称">
<span v-if="detailInfo.fSupervisionDepartmentName">{{ detailInfo.fSupervisionDepartmentName }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="整改要求">
<span v-if="detailInfo.fRectRequire">{{ detailInfo.fRectRequire }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="整改期限">
<span v-if="detailInfo.fRectDeadline">{{ detailInfo.fRectDeadline }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="隐患排查依据">
<span v-if="detailInfo.fHazardCheckBasis">{{ detailInfo.fHazardCheckBasis }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="检查项ID">
<span v-if="detailInfo.fCheckItemId">{{ detailInfo.fCheckItemId }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="检查部门">
<span v-if="detailInfo.fCheckDept">{{ detailInfo.fCheckDept }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="检查方法">
<span v-if="detailInfo.fCheckMethod">{{ detailInfo.fCheckMethod }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="执法参考依据">
<span v-if="detailInfo.fEnforcementAccording">{{ detailInfo.fEnforcementAccording }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="删除标记">
<span v-if="detailInfo.fDeleteFlag.toString()">{{ $parent.fDeleteFlagFormat(detailInfo) }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="创建时间">
<span v-if="detailInfo.fCreateTime">{{ detailInfo.fCreateTime }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="创建人">
<span v-if="detailInfo.fCreateBy">{{ detailInfo.fCreateBy }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="修改时间">
<span v-if="detailInfo.fUpdateTime">{{ detailInfo.fUpdateTime }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="修改人">
<span v-if="detailInfo.fModifyBy">{{ detailInfo.fModifyBy }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
</template>
<script>
import { getInfor } from "@/api/supervision/hideType";
export default {
name: "detail-info",
data(){
return{
detailInfo: {},
detailOpen: false
}
},
methods:{
getDetailInfo(id){
getInfor(id).then(res =>{
if(res.code == 200 && res.data){
this.detailInfo = res.data;
this.detailOpen = true;
}
})
}
}
}
</script>
<style scoped>
</style>
......@@ -36,7 +36,7 @@ module.exports = {
[process.env.VUE_APP_BASE_API]: {
// target: `http://localhost:8905/gassafety`,
target: `http://27.128.233.145:8905/gassafety`,
target: `http://localhost:8905/gassafety`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment