import request from '@/utils/request'

// ========== 危险源核心 ==========

// 查询危险源对象列表
export function listObjHaz(query) {
  return request({
    url: '/hazard/objhaz/list',
    method: 'get',
    params: query
  })
}

// 查询危险源对象详细
export function getObjHaz(guid) {
  return request({
    url: '/hazard/objhaz/' + guid,
    method: 'get'
  })
}

// 新增危险源对象
export function addObjHaz(data) {
  return request({
    url: '/hazard/objhaz',
    method: 'post',
    data: data
  })
}

// 修改危险源对象
export function updateObjHaz(data) {
  return request({
    url: '/hazard/objhaz',
    method: 'put',
    data: data
  })
}

// 删除危险源对象
export function delObjHaz(guids) {
  return request({
    url: '/hazard/objhaz/' + guids,
    method: 'delete'
  })
}

// 查询危险源列表
export function listObjHazard(query) {
  return request({
    url: '/hazard/objhazard/list',
    method: 'get',
    params: query
  })
}

// 查询危险源详细
export function getObjHazard(guid) {
  return request({
    url: '/hazard/objhazard/' + guid,
    method: 'get'
  })
}

// 新增危险源
export function addObjHazard(data) {
  return request({
    url: '/hazard/objhazard',
    method: 'post',
    data: data
  })
}

// 修改危险源
export function updateObjHazard(data) {
  return request({
    url: '/hazard/objhazard',
    method: 'put',
    data: data
  })
}

// 删除危险源
export function delObjHazard(guids) {
  return request({
    url: '/hazard/objhazard/' + guids,
    method: 'delete'
  })
}

// 查询危险源风险列表
export function listHazardSource(query) {
  return request({
    url: '/hazard/hazardsource/list',
    method: 'get',
    params: query
  })
}

// 查询危险源风险详细
export function getHazardSource(guid) {
  return request({
    url: '/hazard/hazardsource/' + guid,
    method: 'get'
  })
}

// 新增危险源风险
export function addHazardSource(data) {
  return request({
    url: '/hazard/hazardsource',
    method: 'post',
    data: data
  })
}

// 修改危险源风险
export function updateHazardSource(data) {
  return request({
    url: '/hazard/hazardsource',
    method: 'put',
    data: data
  })
}

// 删除危险源风险
export function delHazardSource(guids) {
  return request({
    url: '/hazard/hazardsource/' + guids,
    method: 'delete'
  })
}

// 查询水利危险源列表
export function listMwrHaz(query) {
  return request({
    url: '/hazard/mwrhaz/list',
    method: 'get',
    params: query
  })
}

// 查询水利危险源详细
export function getMwrHaz(guid) {
  return request({
    url: '/hazard/mwrhaz/' + guid,
    method: 'get'
  })
}

// 新增水利危险源
export function addMwrHaz(data) {
  return request({
    url: '/hazard/mwrhaz',
    method: 'post',
    data: data
  })
}

// 修改水利危险源
export function updateMwrHaz(data) {
  return request({
    url: '/hazard/mwrhaz',
    method: 'put',
    data: data
  })
}

// 删除水利危险源
export function delMwrHaz(guids) {
  return request({
    url: '/hazard/mwrhaz/' + guids,
    method: 'delete'
  })
}

// 查询危险源对象MW版列表
export function listObjHazMw(query) {
  return request({
    url: '/hazard/objhazmw/list',
    method: 'get',
    params: query
  })
}

// 查询危险源对象MW版详细
export function getObjHazMw(guid) {
  return request({
    url: '/hazard/objhazmw/' + guid,
    method: 'get'
  })
}

// 新增危险源对象MW版
export function addObjHazMw(data) {
  return request({
    url: '/hazard/objhazmw',
    method: 'post',
    data: data
  })
}

// 修改危险源对象MW版
export function updateObjHazMw(data) {
  return request({
    url: '/hazard/objhazmw',
    method: 'put',
    data: data
  })
}

// 删除危险源对象MW版
export function delObjHazMw(guids) {
  return request({
    url: '/hazard/objhazmw/' + guids,
    method: 'delete'
  })
}

// 查询危险性较大工程列表
export function listObjEngHaza(query) {
  return request({
    url: '/hazard/objenghaza/list',
    method: 'get',
    params: query
  })
}

// 查询危险性较大工程详细
export function getObjEngHaza(guid) {
  return request({
    url: '/hazard/objenghaza/' + guid,
    method: 'get'
  })
}

// 新增危险性较大工程
export function addObjEngHaza(data) {
  return request({
    url: '/hazard/objenghaza',
    method: 'post',
    data: data
  })
}

// 修改危险性较大工程
export function updateObjEngHaza(data) {
  return request({
    url: '/hazard/objenghaza',
    method: 'put',
    data: data
  })
}

// 删除危险性较大工程
export function delObjEngHaza(guids) {
  return request({
    url: '/hazard/objenghaza/' + guids,
    method: 'delete'
  })
}

// ========== 辨识评估 ==========

// 查询危险源辨识表列表
export function listTBusiHazIden(query) {
  return request({
    url: '/hazard/tbusihaziden/list',
    method: 'get',
    params: query
  })
}

// 查询危险源辨识表详细
export function getTBusiHazIden(guid) {
  return request({
    url: '/hazard/tbusihaziden/' + guid,
    method: 'get'
  })
}

// 新增危险源辨识表
export function addTBusiHazIden(data) {
  return request({
    url: '/hazard/tbusihaziden',
    method: 'post',
    data: data
  })
}

// 修改危险源辨识表
export function updateTBusiHazIden(data) {
  return request({
    url: '/hazard/tbusihaziden',
    method: 'put',
    data: data
  })
}

// 删除危险源辨识表
export function delTBusiHazIden(guids) {
  return request({
    url: '/hazard/tbusihaziden/' + guids,
    method: 'delete'
  })
}

// 查询辨识表MW版列表
export function listTBusiHazIdenMw(query) {
  return request({
    url: '/hazard/tbusihazidenmw/list',
    method: 'get',
    params: query
  })
}

// 查询辨识表MW版详细
export function getTBusiHazIdenMw(guid) {
  return request({
    url: '/hazard/tbusihazidenmw/' + guid,
    method: 'get'
  })
}

// 新增辨识表MW版
export function addTBusiHazIdenMw(data) {
  return request({
    url: '/hazard/tbusihazidenmw',
    method: 'post',
    data: data
  })
}

// 修改辨识表MW版
export function updateTBusiHazIdenMw(data) {
  return request({
    url: '/hazard/tbusihazidenmw',
    method: 'put',
    data: data
  })
}

// 删除辨识表MW版
export function delTBusiHazIdenMw(guids) {
  return request({
    url: '/hazard/tbusihazidenmw/' + guids,
    method: 'delete'
  })
}

// 查询辨识表MW_Z版列表
export function listTBusiHazIdenMwZ(query) {
  return request({
    url: '/hazard/tbusihazidenmwz/list',
    method: 'get',
    params: query
  })
}

// 查询辨识表MW_Z版详细
export function getTBusiHazIdenMwZ(guid) {
  return request({
    url: '/hazard/tbusihazidenmwz/' + guid,
    method: 'get'
  })
}

// 新增辨识表MW_Z版
export function addTBusiHazIdenMwZ(data) {
  return request({
    url: '/hazard/tbusihazidenmwz',
    method: 'post',
    data: data
  })
}

// 修改辨识表MW_Z版
export function updateTBusiHazIdenMwZ(data) {
  return request({
    url: '/hazard/tbusihazidenmwz',
    method: 'put',
    data: data
  })
}

// 删除辨识表MW_Z版
export function delTBusiHazIdenMwZ(guids) {
  return request({
    url: '/hazard/tbusihazidenmwz/' + guids,
    method: 'delete'
  })
}

// 查询危险源辨识评价列表
export function listBisHazIdenEva(query) {
  return request({
    url: '/hazard/bishazideneva/list',
    method: 'get',
    params: query
  })
}

// 查询危险源辨识评价详细
export function getBisHazIdenEva(guid) {
  return request({
    url: '/hazard/bishazideneva/' + guid,
    method: 'get'
  })
}

// 新增危险源辨识评价
export function addBisHazIdenEva(data) {
  return request({
    url: '/hazard/bishazideneva',
    method: 'post',
    data: data
  })
}

// 修改危险源辨识评价
export function updateBisHazIdenEva(data) {
  return request({
    url: '/hazard/bishazideneva',
    method: 'put',
    data: data
  })
}

// 删除危险源辨识评价
export function delBisHazIdenEva(guids) {
  return request({
    url: '/hazard/bishazideneva/' + guids,
    method: 'delete'
  })
}

// 查询危险源安全生产评价列表
export function listTBusiHazEva(query) {
  return request({
    url: '/hazard/tbusihazeva/list',
    method: 'get',
    params: query
  })
}

// 查询危险源安全生产评价详细
export function getTBusiHazEva(guid) {
  return request({
    url: '/hazard/tbusihazeva/' + guid,
    method: 'get'
  })
}

// 新增危险源安全生产评价
export function addTBusiHazEva(data) {
  return request({
    url: '/hazard/tbusihazeva',
    method: 'post',
    data: data
  })
}

// 修改危险源安全生产评价
export function updateTBusiHazEva(data) {
  return request({
    url: '/hazard/tbusihazeva',
    method: 'put',
    data: data
  })
}

// 删除危险源安全生产评价
export function delTBusiHazEva(guids) {
  return request({
    url: '/hazard/tbusihazeva/' + guids,
    method: 'delete'
  })
}

// 查询危险源评价内部列表
export function listTBusiHazEvain(query) {
  return request({
    url: '/hazard/tbusihazevain/list',
    method: 'get',
    params: query
  })
}

// 查询危险源评价内部详细
export function getTBusiHazEvain(guid) {
  return request({
    url: '/hazard/tbusihazevain/' + guid,
    method: 'get'
  })
}

// 新增危险源评价内部
export function addTBusiHazEvain(data) {
  return request({
    url: '/hazard/tbusihazevain',
    method: 'post',
    data: data
  })
}

// 修改危险源评价内部
export function updateTBusiHazEvain(data) {
  return request({
    url: '/hazard/tbusihazevain',
    method: 'put',
    data: data
  })
}

// 删除危险源评价内部
export function delTBusiHazEvain(guids) {
  return request({
    url: '/hazard/tbusihazevain/' + guids,
    method: 'delete'
  })
}

// ========== 备案核销 ==========

// 查询重大危险源备案核销列表
export function listBisHazMajRegWrit(query) {
  return request({
    url: '/hazard/bishazmajregwrit/list',
    method: 'get',
    params: query
  })
}

// 查询重大危险源备案核销详细
export function getBisHazMajRegWrit(guid) {
  return request({
    url: '/hazard/bishazmajregwrit/' + guid,
    method: 'get'
  })
}

// 新增重大危险源备案核销
export function addBisHazMajRegWrit(data) {
  return request({
    url: '/hazard/bishazmajregwrit',
    method: 'post',
    data: data
  })
}

// 修改重大危险源备案核销
export function updateBisHazMajRegWrit(data) {
  return request({
    url: '/hazard/bishazmajregwrit',
    method: 'put',
    data: data
  })
}

// 删除重大危险源备案核销
export function delBisHazMajRegWrit(guids) {
  return request({
    url: '/hazard/bishazmajregwrit/' + guids,
    method: 'delete'
  })
}

// 查询备案核销新版本列表
export function listBisHazMajRegWritNew(query) {
  return request({
    url: '/hazard/bishazmajregwritnew/list',
    method: 'get',
    params: query
  })
}

// 查询备案核销新版本详细
export function getBisHazMajRegWritNew(guid) {
  return request({
    url: '/hazard/bishazmajregwritnew/' + guid,
    method: 'get'
  })
}

// 新增备案核销新版本
export function addBisHazMajRegWritNew(data) {
  return request({
    url: '/hazard/bishazmajregwritnew',
    method: 'post',
    data: data
  })
}

// 修改备案核销新版本
export function updateBisHazMajRegWritNew(data) {
  return request({
    url: '/hazard/bishazmajregwritnew',
    method: 'put',
    data: data
  })
}

// 删除备案核销新版本
export function delBisHazMajRegWritNew(guids) {
  return request({
    url: '/hazard/bishazmajregwritnew/' + guids,
    method: 'delete'
  })
}

// 查询备案核销时间关联列表
export function listBisHazMajRegWritRegTime(query) {
  return request({
    url: '/hazard/bishazmajregwritregtime/list',
    method: 'get',
    params: query
  })
}

// 查询备案核销时间关联详细
export function getBisHazMajRegWritRegTime(guid) {
  return request({
    url: '/hazard/bishazmajregwritregtime/' + guid,
    method: 'get'
  })
}

// 新增备案核销时间关联
export function addBisHazMajRegWritRegTime(data) {
  return request({
    url: '/hazard/bishazmajregwritregtime',
    method: 'post',
    data: data
  })
}

// 修改备案核销时间关联
export function updateBisHazMajRegWritRegTime(data) {
  return request({
    url: '/hazard/bishazmajregwritregtime',
    method: 'put',
    data: data
  })
}

// 删除备案核销时间关联
export function delBisHazMajRegWritRegTime(guids) {
  return request({
    url: '/hazard/bishazmajregwritregtime/' + guids,
    method: 'delete'
  })
}

// 查询备案核销机构关联列表
export function listBisHazMajRegWritRegorg(query) {
  return request({
    url: '/hazard/bishazmajregwritregorg/list',
    method: 'get',
    params: query
  })
}

// 查询备案核销机构关联详细
export function getBisHazMajRegWritRegorg(guid) {
  return request({
    url: '/hazard/bishazmajregwritregorg/' + guid,
    method: 'get'
  })
}

// 新增备案核销机构关联
export function addBisHazMajRegWritRegorg(data) {
  return request({
    url: '/hazard/bishazmajregwritregorg',
    method: 'post',
    data: data
  })
}

// 修改备案核销机构关联
export function updateBisHazMajRegWritRegorg(data) {
  return request({
    url: '/hazard/bishazmajregwritregorg',
    method: 'put',
    data: data
  })
}

// 删除备案核销机构关联
export function delBisHazMajRegWritRegorg(guids) {
  return request({
    url: '/hazard/bishazmajregwritregorg/' + guids,
    method: 'delete'
  })
}

// ========== 巡查管理 ==========

// 查询危险源巡视记录列表
export function listBisHazPatRec(query) {
  return request({
    url: '/hazard/bishazpatrec/list',
    method: 'get',
    params: query
  })
}

// 查询危险源巡视记录详细
export function getBisHazPatRec(guid) {
  return request({
    url: '/hazard/bishazpatrec/' + guid,
    method: 'get'
  })
}

// 新增危险源巡视记录
export function addBisHazPatRec(data) {
  return request({
    url: '/hazard/bishazpatrec',
    method: 'post',
    data: data
  })
}

// 修改危险源巡视记录
export function updateBisHazPatRec(data) {
  return request({
    url: '/hazard/bishazpatrec',
    method: 'put',
    data: data
  })
}

// 删除危险源巡视记录
export function delBisHazPatRec(guids) {
  return request({
    url: '/hazard/bishazpatrec/' + guids,
    method: 'delete'
  })
}

// 查询巡查任务列表
export function listTBusiInspectTask(query) {
  return request({
    url: '/hazard/tbusiinspecttask/list',
    method: 'get',
    params: query
  })
}

// 查询巡查任务详细
export function getTBusiInspectTask(guid) {
  return request({
    url: '/hazard/tbusiinspecttask/' + guid,
    method: 'get'
  })
}

// 新增巡查任务
export function addTBusiInspectTask(data) {
  return request({
    url: '/hazard/tbusiinspecttask',
    method: 'post',
    data: data
  })
}

// 修改巡查任务
export function updateTBusiInspectTask(data) {
  return request({
    url: '/hazard/tbusiinspecttask',
    method: 'put',
    data: data
  })
}

// 删除巡查任务
export function delTBusiInspectTask(guids) {
  return request({
    url: '/hazard/tbusiinspecttask/' + guids,
    method: 'delete'
  })
}

// 查询巡查任务项列表
export function listTBusiInspectTaskItem(query) {
  return request({
    url: '/hazard/tbusiinspecttaskitem/list',
    method: 'get',
    params: query
  })
}

// 查询巡查任务项详细
export function getTBusiInspectTaskItem(guid) {
  return request({
    url: '/hazard/tbusiinspecttaskitem/' + guid,
    method: 'get'
  })
}

// 新增巡查任务项
export function addTBusiInspectTaskItem(data) {
  return request({
    url: '/hazard/tbusiinspecttaskitem',
    method: 'post',
    data: data
  })
}

// 修改巡查任务项
export function updateTBusiInspectTaskItem(data) {
  return request({
    url: '/hazard/tbusiinspecttaskitem',
    method: 'put',
    data: data
  })
}

// 删除巡查任务项
export function delTBusiInspectTaskItem(guids) {
  return request({
    url: '/hazard/tbusiinspecttaskitem/' + guids,
    method: 'delete'
  })
}

// 查询巡查记录列表
export function listTBusiInspectRecord(query) {
  return request({
    url: '/hazard/tbusiinspectrecord/list',
    method: 'get',
    params: query
  })
}

// 查询巡查记录详细
export function getTBusiInspectRecord(guid) {
  return request({
    url: '/hazard/tbusiinspectrecord/' + guid,
    method: 'get'
  })
}

// 新增巡查记录
export function addTBusiInspectRecord(data) {
  return request({
    url: '/hazard/tbusiinspectrecord',
    method: 'post',
    data: data
  })
}

// 修改巡查记录
export function updateTBusiInspectRecord(data) {
  return request({
    url: '/hazard/tbusiinspectrecord',
    method: 'put',
    data: data
  })
}

// 删除巡查记录
export function delTBusiInspectRecord(guids) {
  return request({
    url: '/hazard/tbusiinspectrecord/' + guids,
    method: 'delete'
  })
}

// 查询巡查项列表
export function listTBusiInspectItem(query) {
  return request({
    url: '/hazard/tbusiinspectitem/list',
    method: 'get',
    params: query
  })
}

// 查询巡查项详细
export function getTBusiInspectItem(guid) {
  return request({
    url: '/hazard/tbusiinspectitem/' + guid,
    method: 'get'
  })
}

// 新增巡查项
export function addTBusiInspectItem(data) {
  return request({
    url: '/hazard/tbusiinspectitem',
    method: 'post',
    data: data
  })
}

// 修改巡查项
export function updateTBusiInspectItem(data) {
  return request({
    url: '/hazard/tbusiinspectitem',
    method: 'put',
    data: data
  })
}

// 删除巡查项
export function delTBusiInspectItem(guids) {
  return request({
    url: '/hazard/tbusiinspectitem/' + guids,
    method: 'delete'
  })
}

// ========== 危化品管理 ==========

// 查询危化品对象列表
export function listObjHach(query) {
  return request({
    url: '/hazard/objhach/list',
    method: 'get',
    params: query
  })
}

// 查询危化品对象详细
export function getObjHach(guid) {
  return request({
    url: '/hazard/objhach/' + guid,
    method: 'get'
  })
}

// 新增危化品对象
export function addObjHach(data) {
  return request({
    url: '/hazard/objhach',
    method: 'post',
    data: data
  })
}

// 修改危化品对象
export function updateObjHach(data) {
  return request({
    url: '/hazard/objhach',
    method: 'put',
    data: data
  })
}

// 删除危化品对象
export function delObjHach(guids) {
  return request({
    url: '/hazard/objhach/' + guids,
    method: 'delete'
  })
}

// 查询危化品入库列表
export function listBisHachStor(query) {
  return request({
    url: '/hazard/bishachstor/list',
    method: 'get',
    params: query
  })
}

// 查询危化品入库详细
export function getBisHachStor(guid) {
  return request({
    url: '/hazard/bishachstor/' + guid,
    method: 'get'
  })
}

// 新增危化品入库
export function addBisHachStor(data) {
  return request({
    url: '/hazard/bishachstor',
    method: 'post',
    data: data
  })
}

// 修改危化品入库
export function updateBisHachStor(data) {
  return request({
    url: '/hazard/bishachstor',
    method: 'put',
    data: data
  })
}

// 删除危化品入库
export function delBisHachStor(guids) {
  return request({
    url: '/hazard/bishachstor/' + guids,
    method: 'delete'
  })
}

// 查询危化品入库记录列表
export function listBisHachRecRep(query) {
  return request({
    url: '/hazard/bishachrecrep/list',
    method: 'get',
    params: query
  })
}

// 查询危化品入库记录详细
export function getBisHachRecRep(guid) {
  return request({
    url: '/hazard/bishachrecrep/' + guid,
    method: 'get'
  })
}

// 新增危化品入库记录
export function addBisHachRecRep(data) {
  return request({
    url: '/hazard/bishachrecrep',
    method: 'post',
    data: data
  })
}

// 修改危化品入库记录
export function updateBisHachRecRep(data) {
  return request({
    url: '/hazard/bishachrecrep',
    method: 'put',
    data: data
  })
}

// 删除危化品入库记录
export function delBisHachRecRep(guids) {
  return request({
    url: '/hazard/bishachrecrep/' + guids,
    method: 'delete'
  })
}

// 查询危化品出库列表
export function listBisHachDel(query) {
  return request({
    url: '/hazard/bishachdel/list',
    method: 'get',
    params: query
  })
}

// 查询危化品出库详细
export function getBisHachDel(guid) {
  return request({
    url: '/hazard/bishachdel/' + guid,
    method: 'get'
  })
}

// 新增危化品出库
export function addBisHachDel(data) {
  return request({
    url: '/hazard/bishachdel',
    method: 'post',
    data: data
  })
}

// 修改危化品出库
export function updateBisHachDel(data) {
  return request({
    url: '/hazard/bishachdel',
    method: 'put',
    data: data
  })
}

// 删除危化品出库
export function delBisHachDel(guids) {
  return request({
    url: '/hazard/bishachdel/' + guids,
    method: 'delete'
  })
}

// ========== 管控措施 ==========

// 查询管控措施列表
export function listTBusiControlMeasure(query) {
  return request({
    url: '/hazard/tbusicontrolmeasure/list',
    method: 'get',
    params: query
  })
}

// 查询管控措施详细
export function getTBusiControlMeasure(guid) {
  return request({
    url: '/hazard/tbusicontrolmeasure/' + guid,
    method: 'get'
  })
}

// 新增管控措施
export function addTBusiControlMeasure(data) {
  return request({
    url: '/hazard/tbusicontrolmeasure',
    method: 'post',
    data: data
  })
}

// 修改管控措施
export function updateTBusiControlMeasure(data) {
  return request({
    url: '/hazard/tbusicontrolmeasure',
    method: 'put',
    data: data
  })
}

// 删除管控措施
export function delTBusiControlMeasure(guids) {
  return request({
    url: '/hazard/tbusicontrolmeasure/' + guids,
    method: 'delete'
  })
}

// 查询管控条件列表
export function listTBusiControlTerm(query) {
  return request({
    url: '/hazard/tbusicontrolterm/list',
    method: 'get',
    params: query
  })
}

// 查询管控条件详细
export function getTBusiControlTerm(guid) {
  return request({
    url: '/hazard/tbusicontrolterm/' + guid,
    method: 'get'
  })
}

// 新增管控条件
export function addTBusiControlTerm(data) {
  return request({
    url: '/hazard/tbusicontrolterm',
    method: 'post',
    data: data
  })
}

// 修改管控条件
export function updateTBusiControlTerm(data) {
  return request({
    url: '/hazard/tbusicontrolterm',
    method: 'put',
    data: data
  })
}

// 删除管控条件
export function delTBusiControlTerm(guids) {
  return request({
    url: '/hazard/tbusicontrolterm/' + guids,
    method: 'delete'
  })
}

// 查询责任人列表
export function listTBusiRespPer(query) {
  return request({
    url: '/hazard/tbusirespper/list',
    method: 'get',
    params: query
  })
}

// 查询责任人详细
export function getTBusiRespPer(guid) {
  return request({
    url: '/hazard/tbusirespper/' + guid,
    method: 'get'
  })
}

// 新增责任人
export function addTBusiRespPer(data) {
  return request({
    url: '/hazard/tbusirespper',
    method: 'post',
    data: data
  })
}

// 修改责任人
export function updateTBusiRespPer(data) {
  return request({
    url: '/hazard/tbusirespper',
    method: 'put',
    data: data
  })
}

// 删除责任人
export function delTBusiRespPer(guids) {
  return request({
    url: '/hazard/tbusirespper/' + guids,
    method: 'delete'
  })
}

// ========== 风险预警 ==========

// 查询风险预警评估列表
export function listTBusiHazardWarm(query) {
  return request({
    url: '/hazard/tbusihazardwarm/list',
    method: 'get',
    params: query
  })
}

// 查询风险预警评估详细
export function getTBusiHazardWarm(guid) {
  return request({
    url: '/hazard/tbusihazardwarm/' + guid,
    method: 'get'
  })
}

// 新增风险预警评估
export function addTBusiHazardWarm(data) {
  return request({
    url: '/hazard/tbusihazardwarm',
    method: 'post',
    data: data
  })
}

// 修改风险预警评估
export function updateTBusiHazardWarm(data) {
  return request({
    url: '/hazard/tbusihazardwarm',
    method: 'put',
    data: data
  })
}

// 删除风险预警评估
export function delTBusiHazardWarm(guids) {
  return request({
    url: '/hazard/tbusihazardwarm/' + guids,
    method: 'delete'
  })
}

// 查询风险阈值列表
export function listTBusiRiskThreshold(query) {
  return request({
    url: '/hazard/tbusiriskthreshold/list',
    method: 'get',
    params: query
  })
}

// 查询风险阈值详细
export function getTBusiRiskThreshold(guid) {
  return request({
    url: '/hazard/tbusiriskthreshold/' + guid,
    method: 'get'
  })
}

// 新增风险阈值
export function addTBusiRiskThreshold(data) {
  return request({
    url: '/hazard/tbusiriskthreshold',
    method: 'post',
    data: data
  })
}

// 修改风险阈值
export function updateTBusiRiskThreshold(data) {
  return request({
    url: '/hazard/tbusiriskthreshold',
    method: 'put',
    data: data
  })
}

// 删除风险阈值
export function delTBusiRiskThreshold(guids) {
  return request({
    url: '/hazard/tbusiriskthreshold/' + guids,
    method: 'delete'
  })
}

// ========== 上报档案 ==========

// 查询危险源上报列表
export function listTBusiHazardReport(query) {
  return request({
    url: '/hazard/tbusihazardreport/list',
    method: 'get',
    params: query
  })
}

// 查询危险源上报详细
export function getTBusiHazardReport(guid) {
  return request({
    url: '/hazard/tbusihazardreport/' + guid,
    method: 'get'
  })
}

// 新增危险源上报
export function addTBusiHazardReport(data) {
  return request({
    url: '/hazard/tbusihazardreport',
    method: 'post',
    data: data
  })
}

// 修改危险源上报
export function updateTBusiHazardReport(data) {
  return request({
    url: '/hazard/tbusihazardreport',
    method: 'put',
    data: data
  })
}

// 删除危险源上报
export function delTBusiHazardReport(guids) {
  return request({
    url: '/hazard/tbusihazardreport/' + guids,
    method: 'delete'
  })
}

// 查询危险源档案列表
export function listTBusiHazardArchive(query) {
  return request({
    url: '/hazard/tbusihazardarchive/list',
    method: 'get',
    params: query
  })
}

// 查询危险源档案详细
export function getTBusiHazardArchive(guid) {
  return request({
    url: '/hazard/tbusihazardarchive/' + guid,
    method: 'get'
  })
}

// 新增危险源档案
export function addTBusiHazardArchive(data) {
  return request({
    url: '/hazard/tbusihazardarchive',
    method: 'post',
    data: data
  })
}

// 修改危险源档案
export function updateTBusiHazardArchive(data) {
  return request({
    url: '/hazard/tbusihazardarchive',
    method: 'put',
    data: data
  })
}

// 删除危险源档案
export function delTBusiHazardArchive(guids) {
  return request({
    url: '/hazard/tbusihazardarchive/' + guids,
    method: 'delete'
  })
}

// ========== 统计 ==========

// 查询危险源统计列表
export function listTBusiHazCount(query) {
  return request({
    url: '/hazard/tbusihazcount/list',
    method: 'get',
    params: query
  })
}

// 危险源聚合查询（按工程/单位分组）
export function getHazGroupBy(query) {
  return request({
    url: '/hazard/objhaz/groupBy',
    method: 'get',
    params: query
  })
}

// 查询危险源月度统计列表
export function listTBusiHazCountMon(query) {
  return request({
    url: '/hazard/tbusihazcountmon/list',
    method: 'get',
    params: query
  })
}

// 查询危险源UI统计列表
export function listTBusiHazUi(query) {
  return request({
    url: '/hazard/tbusihazui/list',
    method: 'get',
    params: query
  })
}

// ========== 考核 ==========

// 查询危险源考核列表
export function listBisHazAssess(query) {
  return request({
    url: '/hazard/bishazassess/list',
    method: 'get',
    params: query
  })
}

// 查询危险源考核详细
export function getBisHazAssess(id) {
  return request({
    url: '/hazard/bishazassess/' + id,
    method: 'get'
  })
}

// 新增危险源考核
export function addBisHazAssess(data) {
  return request({
    url: '/hazard/bishazassess',
    method: 'post',
    data: data
  })
}

// 修改危险源考核
export function updateBisHazAssess(data) {
  return request({
    url: '/hazard/bishazassess',
    method: 'put',
    data: data
  })
}

// 删除危险源考核
export function delBisHazAssess(ids) {
  return request({
    url: '/hazard/bishazassess/' + ids,
    method: 'delete'
  })
}

// 查询机构基础信息列表
export function listAttOrgBase(query) {
  return request({
    url: '/hidd/orgbase/list',
    method: 'get',
    params: query
  })
}

// 查询工程列表
export function listAttEngBase(query) {
  return request({
    url: '/hidd/engbase/list',
    method: 'get',
    params: query
  })
}
// 查询危险源考核记录列表
export function listBisHazAssessRec(query) {
  return request({
    url: '/hazard/bishazassessrec/list',
    method: 'get',
    params: query
  })
}

// 查询危险源考核记录详细
export function getBisHazAssessRec(id) {
  return request({
    url: '/hazard/bishazassessrec/' + id,
    method: 'get'
  })
}

// 新增危险源考核记录
export function addBisHazAssessRec(data) {
  return request({
    url: '/hazard/bishazassessrec',
    method: 'post',
    data: data
  })
}

// 修改危险源考核记录
export function updateBisHazAssessRec(data) {
  return request({
    url: '/hazard/bishazassessrec',
    method: 'put',
    data: data
  })
}

// 删除危险源考核记录
export function delBisHazAssessRec(ids) {
  return request({
    url: '/hazard/bishazassessrec/' + ids,
    method: 'delete'
  })
}

// ========== 其他 ==========

// 查询职业病危害记录列表
export function listBisOccuDiseHazRec(query) {
  return request({
    url: '/hazard/bisoccudisehazrec/list',
    method: 'get',
    params: query
  })
}

// 查询职业病危害记录详细
export function getBisOccuDiseHazRec(guid) {
  return request({
    url: '/hazard/bisoccudisehazrec/' + guid,
    method: 'get'
  })
}

// 新增职业病危害记录
export function addBisOccuDiseHazRec(data) {
  return request({
    url: '/hazard/bisoccudisehazrec',
    method: 'post',
    data: data
  })
}

// 修改职业病危害记录
export function updateBisOccuDiseHazRec(data) {
  return request({
    url: '/hazard/bisoccudisehazrec',
    method: 'put',
    data: data
  })
}

// 删除职业病危害记录
export function delBisOccuDiseHazRec(guids) {
  return request({
    url: '/hazard/bisoccudisehazrec/' + guids,
    method: 'delete'
  })
}

// ========== 字典管理 ==========

// 查询重大危险源字典列表
export function listTDictMajorSource(query) {
  return request({
    url: '/hazard/tdictmajorsource/list',
    method: 'get',
    params: query
  })
}

// 查询重大危险源字典详细
export function getTDictMajorSource(guid) {
  return request({
    url: '/hazard/tdictmajorsource/' + guid,
    method: 'get'
  })
}

// 新增重大危险源字典
export function addTDictMajorSource(data) {
  return request({
    url: '/hazard/tdictmajorsource',
    method: 'post',
    data: data
  })
}

// 修改重大危险源字典
export function updateTDictMajorSource(data) {
  return request({
    url: '/hazard/tdictmajorsource',
    method: 'put',
    data: data
  })
}

// 删除重大危险源字典
export function delTDictMajorSource(guids) {
  return request({
    url: '/hazard/tdictmajorsource/' + guids,
    method: 'delete'
  })
}

// 查询重大工程字典列表
export function listTDictMajorEd(query) {
  return request({
    url: '/hazard/tdictmajored/list',
    method: 'get',
    params: query
  })
}

// 查询重大工程字典详细
export function getTDictMajorEd(guid) {
  return request({
    url: '/hazard/tdictmajored/' + guid,
    method: 'get'
  })
}

// 新增重大工程字典
export function addTDictMajorEd(data) {
  return request({
    url: '/hazard/tdictmajored',
    method: 'post',
    data: data
  })
}

// 修改重大工程字典
export function updateTDictMajorEd(data) {
  return request({
    url: '/hazard/tdictmajored',
    method: 'put',
    data: data
  })
}

// 删除重大工程字典
export function delTDictMajorEd(guids) {
  return request({
    url: '/hazard/tdictmajored/' + guids,
    method: 'delete'
  })
}

// 查询通用字典列表
export function listTDictMajorCommon(query) {
  return request({
    url: '/hazard/tdictmajorcommon/list',
    method: 'get',
    params: query
  })
}

// 查询通用字典详细
export function getTDictMajorCommon(guid) {
  return request({
    url: '/hazard/tdictmajorcommon/' + guid,
    method: 'get'
  })
}

// 新增通用字典
export function addTDictMajorCommon(data) {
  return request({
    url: '/hazard/tdictmajorcommon',
    method: 'post',
    data: data
  })
}

// 修改通用字典
export function updateTDictMajorCommon(data) {
  return request({
    url: '/hazard/tdictmajorcommon',
    method: 'put',
    data: data
  })
}

// 删除通用字典
export function delTDictMajorCommon(guids) {
  return request({
    url: '/hazard/tdictmajorcommon/' + guids,
    method: 'delete'
  })
}

// 查询建筑物字典列表
export function listTDictMajorBuilding(query) {
  return request({
    url: '/hazard/tdictmajorbuilding/list',
    method: 'get',
    params: query
  })
}

// 查询建筑物字典详细
export function getTDictMajorBuilding(guid) {
  return request({
    url: '/hazard/tdictmajorbuilding/' + guid,
    method: 'get'
  })
}

// 新增建筑物字典
export function addTDictMajorBuilding(data) {
  return request({
    url: '/hazard/tdictmajorbuilding',
    method: 'post',
    data: data
  })
}

// 修改建筑物字典
export function updateTDictMajorBuilding(data) {
  return request({
    url: '/hazard/tdictmajorbuilding',
    method: 'put',
    data: data
  })
}

// 删除建筑物字典
export function delTDictMajorBuilding(guids) {
  return request({
    url: '/hazard/tdictmajorbuilding/' + guids,
    method: 'delete'
  })
}
