Commit 26ebbfa6 authored by 耿迪迪's avatar 耿迪迪

安全管理功能

parent 061c434e
package com.zehong.web.controller.safe;
import com.zehong.common.annotation.Log;
import com.zehong.common.core.controller.BaseController;
import com.zehong.common.core.domain.AjaxResult;
import com.zehong.common.core.page.TableDataInfo;
import com.zehong.common.enums.BusinessType;
import com.zehong.common.utils.poi.ExcelUtil;
import com.zehong.system.domain.TSafeInspectLedger;
import com.zehong.system.service.ITSafeInspectLedgerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 安全检查台账Controller
*
* @author zehong
* @date 2026-03-27
*/
@RestController
@RequestMapping("/safe/inspect")
public class TSafeInspectLedgerController extends BaseController
{
@Autowired
private ITSafeInspectLedgerService tSafeInspectLedgerService;
/**
* 查询安全检查台账列表
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:list')")
@GetMapping("/list")
public TableDataInfo list(TSafeInspectLedger tSafeInspectLedger)
{
startPage();
List<TSafeInspectLedger> list = tSafeInspectLedgerService.selectTSafeInspectLedgerList(tSafeInspectLedger);
return getDataTable(list);
}
/**
* 导出安全检查台账列表
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:export')")
@Log(title = "安全检查台账", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(TSafeInspectLedger tSafeInspectLedger)
{
List<TSafeInspectLedger> list = tSafeInspectLedgerService.selectTSafeInspectLedgerList(tSafeInspectLedger);
ExcelUtil<TSafeInspectLedger> util = new ExcelUtil<TSafeInspectLedger>(TSafeInspectLedger.class);
return util.exportExcel(list, "安全检查台账数据");
}
/**
* 获取安全检查台账详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:query')")
@GetMapping(value = "/{inspectId}")
public AjaxResult getInfo(@PathVariable("inspectId") Long inspectId)
{
return AjaxResult.success(tSafeInspectLedgerService.selectTSafeInspectLedgerById(inspectId));
}
/**
* 新增安全检查台账
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:add')")
@Log(title = "安全检查台账", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TSafeInspectLedger tSafeInspectLedger)
{
return toAjax(tSafeInspectLedgerService.insertTSafeInspectLedger(tSafeInspectLedger));
}
/**
* 修改安全检查台账
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:edit')")
@Log(title = "安全检查台账", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TSafeInspectLedger tSafeInspectLedger)
{
return toAjax(tSafeInspectLedgerService.updateTSafeInspectLedger(tSafeInspectLedger));
}
/**
* 删除安全检查台账
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:remove')")
@Log(title = "安全检查台账", businessType = BusinessType.DELETE)
@DeleteMapping("/{inspectIds}")
public AjaxResult remove(@PathVariable Long[] inspectIds)
{
return toAjax(tSafeInspectLedgerService.deleteTSafeInspectLedgerByIds(inspectIds));
}
}
package com.zehong.web.controller.safe;
import com.zehong.common.annotation.Log;
import com.zehong.common.core.controller.BaseController;
import com.zehong.common.core.domain.AjaxResult;
import com.zehong.common.core.page.TableDataInfo;
import com.zehong.common.enums.BusinessType;
import com.zehong.common.utils.poi.ExcelUtil;
import com.zehong.system.domain.TSafeMeetingLedger;
import com.zehong.system.service.ITSafeMeetingLedgerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 安全例会台账Controller
*
* @author zehong
* @date 2026-03-27
*/
@RestController
@RequestMapping("/safe/meeting")
public class TSafeMeetingLedgerController extends BaseController
{
@Autowired
private ITSafeMeetingLedgerService tSafeMeetingLedgerService;
/**
* 查询安全例会台账列表
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:list')")
@GetMapping("/list")
public TableDataInfo list(TSafeMeetingLedger tSafeMeetingLedger)
{
startPage();
List<TSafeMeetingLedger> list = tSafeMeetingLedgerService.selectTSafeMeetingLedgerList(tSafeMeetingLedger);
return getDataTable(list);
}
/**
* 导出安全例会台账列表
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:export')")
@Log(title = "安全例会台账", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(TSafeMeetingLedger tSafeMeetingLedger)
{
List<TSafeMeetingLedger> list = tSafeMeetingLedgerService.selectTSafeMeetingLedgerList(tSafeMeetingLedger);
ExcelUtil<TSafeMeetingLedger> util = new ExcelUtil<TSafeMeetingLedger>(TSafeMeetingLedger.class);
return util.exportExcel(list, "安全例会台账数据");
}
/**
* 获取安全例会台账详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:query')")
@GetMapping(value = "/{meetingId}")
public AjaxResult getInfo(@PathVariable("meetingId") Long meetingId)
{
return AjaxResult.success(tSafeMeetingLedgerService.selectTSafeMeetingLedgerById(meetingId));
}
/**
* 新增安全例会台账
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:add')")
@Log(title = "安全例会台账", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TSafeMeetingLedger tSafeMeetingLedger)
{
return toAjax(tSafeMeetingLedgerService.insertTSafeMeetingLedger(tSafeMeetingLedger));
}
/**
* 修改安全例会台账
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:edit')")
@Log(title = "安全例会台账", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TSafeMeetingLedger tSafeMeetingLedger)
{
return toAjax(tSafeMeetingLedgerService.updateTSafeMeetingLedger(tSafeMeetingLedger));
}
/**
* 删除安全例会台账
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:remove')")
@Log(title = "安全例会台账", businessType = BusinessType.DELETE)
@DeleteMapping("/{meetingIds}")
public AjaxResult remove(@PathVariable Long[] meetingIds)
{
return toAjax(tSafeMeetingLedgerService.deleteTSafeMeetingLedgerByIds(meetingIds));
}
}
package com.zehong.web.controller.safe;
import com.zehong.common.annotation.Log;
import com.zehong.common.core.controller.BaseController;
import com.zehong.common.core.domain.AjaxResult;
import com.zehong.common.core.page.TableDataInfo;
import com.zehong.common.enums.BusinessType;
import com.zehong.common.utils.poi.ExcelUtil;
import com.zehong.system.domain.TSafeTrainLedger;
import com.zehong.system.service.ITSafeTrainLedgerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* 安全培训台账Controller
*
* @author zehong
* @date 2026-03-27
*/
@RestController
@RequestMapping("/safe/train")
public class TSafeTrainLedgerController extends BaseController
{
@Autowired
private ITSafeTrainLedgerService tSafeTrainLedgerService;
/**
* 查询安全培训台账列表
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:list')")
@GetMapping("/list")
public TableDataInfo list(TSafeTrainLedger tSafeTrainLedger)
{
startPage();
List<TSafeTrainLedger> list = tSafeTrainLedgerService.selectTSafeTrainLedgerList(tSafeTrainLedger);
return getDataTable(list);
}
/**
* 导出安全培训台账列表
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:export')")
@Log(title = "安全培训台账", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(TSafeTrainLedger tSafeTrainLedger)
{
List<TSafeTrainLedger> list = tSafeTrainLedgerService.selectTSafeTrainLedgerList(tSafeTrainLedger);
ExcelUtil<TSafeTrainLedger> util = new ExcelUtil<TSafeTrainLedger>(TSafeTrainLedger.class);
return util.exportExcel(list, "安全培训台账数据");
}
/**
* 获取安全培训台账详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:query')")
@GetMapping(value = "/{trainId}")
public AjaxResult getInfo(@PathVariable("trainId") Long trainId)
{
return AjaxResult.success(tSafeTrainLedgerService.selectTSafeTrainLedgerById(trainId));
}
/**
* 新增安全培训台账
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:add')")
@Log(title = "安全培训台账", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TSafeTrainLedger tSafeTrainLedger)
{
return toAjax(tSafeTrainLedgerService.insertTSafeTrainLedger(tSafeTrainLedger));
}
/**
* 修改安全培训台账
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:edit')")
@Log(title = "安全培训台账", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TSafeTrainLedger tSafeTrainLedger)
{
return toAjax(tSafeTrainLedgerService.updateTSafeTrainLedger(tSafeTrainLedger));
}
/**
* 删除安全培训台账
*/
//@PreAuthorize("@ss.hasPermi('system:ledger:remove')")
@Log(title = "安全培训台账", businessType = BusinessType.DELETE)
@DeleteMapping("/{trainIds}")
public AjaxResult remove(@PathVariable Long[] trainIds)
{
return toAjax(tSafeTrainLedgerService.deleteTSafeTrainLedgerByIds(trainIds));
}
}
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_safe_inspect_ledger
*
* @author zehong
* @date 2026-03-27
*/
public class TSafeInspectLedger extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long inspectId;
/** 检查标题 */
@Excel(name = "检查标题")
private String title;
/** 内容 */
@Excel(name = "内容")
private String content;
/** 设备状态 */
@Excel(name = "设备状态")
private Integer address;
/** 照片 */
@Excel(name = "照片")
private String photo;
/** 附件 */
@Excel(name = "附件")
private String attachment;
/** 是否删除(0正常,1删除) */
@Excel(name = "是否删除(0正常,1删除)")
private String isDel;
/** 备注 */
@Excel(name = "备注")
private String remarks;
public void setInspectId(Long inspectId)
{
this.inspectId = inspectId;
}
public Long getInspectId()
{
return inspectId;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setContent(String content)
{
this.content = content;
}
public String getContent()
{
return content;
}
public void setAddress(Integer address)
{
this.address = address;
}
public Integer getAddress()
{
return address;
}
public void setPhoto(String photo)
{
this.photo = photo;
}
public String getPhoto()
{
return photo;
}
public void setAttachment(String attachment)
{
this.attachment = attachment;
}
public String getAttachment()
{
return attachment;
}
public void setIsDel(String isDel)
{
this.isDel = isDel;
}
public String getIsDel()
{
return isDel;
}
public void setRemarks(String remarks)
{
this.remarks = remarks;
}
public String getRemarks()
{
return remarks;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("inspectId", getInspectId())
.append("title", getTitle())
.append("content", getContent())
.append("address", getAddress())
.append("photo", getPhoto())
.append("attachment", getAttachment())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("isDel", getIsDel())
.append("remarks", getRemarks())
.toString();
}
}
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_safe_meeting_ledger
*
* @author zehong
* @date 2026-03-27
*/
public class TSafeMeetingLedger extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long meetingId;
/** 例会标题 */
@Excel(name = "例会标题")
private String title;
/** 内容 */
@Excel(name = "内容")
private String content;
/** 设备状态 */
@Excel(name = "设备状态")
private Integer address;
/** 照片 */
@Excel(name = "照片")
private String photo;
/** 附件 */
@Excel(name = "附件")
private String attachment;
/** 是否删除(0正常,1删除) */
@Excel(name = "是否删除(0正常,1删除)")
private String isDel;
/** 备注 */
@Excel(name = "备注")
private String remarks;
public void setMeetingId(Long meetingId)
{
this.meetingId = meetingId;
}
public Long getMeetingId()
{
return meetingId;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setContent(String content)
{
this.content = content;
}
public String getContent()
{
return content;
}
public void setAddress(Integer address)
{
this.address = address;
}
public Integer getAddress()
{
return address;
}
public void setPhoto(String photo)
{
this.photo = photo;
}
public String getPhoto()
{
return photo;
}
public void setAttachment(String attachment)
{
this.attachment = attachment;
}
public String getAttachment()
{
return attachment;
}
public void setIsDel(String isDel)
{
this.isDel = isDel;
}
public String getIsDel()
{
return isDel;
}
public void setRemarks(String remarks)
{
this.remarks = remarks;
}
public String getRemarks()
{
return remarks;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("meetingId", getMeetingId())
.append("title", getTitle())
.append("content", getContent())
.append("address", getAddress())
.append("photo", getPhoto())
.append("attachment", getAttachment())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("isDel", getIsDel())
.append("remarks", getRemarks())
.toString();
}
}
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_safe_train_ledger
*
* @author zehong
* @date 2026-03-27
*/
public class TSafeTrainLedger extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long trainId;
/** 检查标题 */
@Excel(name = "检查标题")
private String title;
/** 内容 */
@Excel(name = "内容")
private String content;
/** 设备状态 */
@Excel(name = "设备状态")
private Integer address;
/** 照片 */
@Excel(name = "照片")
private String photo;
/** 附件 */
@Excel(name = "附件")
private String attachment;
/** 是否删除(0正常,1删除) */
@Excel(name = "是否删除(0正常,1删除)")
private String isDel;
/** 备注 */
@Excel(name = "备注")
private String remarks;
public void setTrainId(Long trainId)
{
this.trainId = trainId;
}
public Long getTrainId()
{
return trainId;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setContent(String content)
{
this.content = content;
}
public String getContent()
{
return content;
}
public void setAddress(Integer address)
{
this.address = address;
}
public Integer getAddress()
{
return address;
}
public void setPhoto(String photo)
{
this.photo = photo;
}
public String getPhoto()
{
return photo;
}
public void setAttachment(String attachment)
{
this.attachment = attachment;
}
public String getAttachment()
{
return attachment;
}
public void setIsDel(String isDel)
{
this.isDel = isDel;
}
public String getIsDel()
{
return isDel;
}
public void setRemarks(String remarks)
{
this.remarks = remarks;
}
public String getRemarks()
{
return remarks;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("trainId", getTrainId())
.append("title", getTitle())
.append("content", getContent())
.append("address", getAddress())
.append("photo", getPhoto())
.append("attachment", getAttachment())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("isDel", getIsDel())
.append("remarks", getRemarks())
.toString();
}
}
package com.zehong.system.mapper;
import java.util.List;
import com.zehong.system.domain.TSafeInspectLedger;
/**
* 安全检查台账Mapper接口
*
* @author zehong
* @date 2026-03-27
*/
public interface TSafeInspectLedgerMapper
{
/**
* 查询安全检查台账
*
* @param inspectId 安全检查台账ID
* @return 安全检查台账
*/
public TSafeInspectLedger selectTSafeInspectLedgerById(Long inspectId);
/**
* 查询安全检查台账列表
*
* @param tSafeInspectLedger 安全检查台账
* @return 安全检查台账集合
*/
public List<TSafeInspectLedger> selectTSafeInspectLedgerList(TSafeInspectLedger tSafeInspectLedger);
/**
* 新增安全检查台账
*
* @param tSafeInspectLedger 安全检查台账
* @return 结果
*/
public int insertTSafeInspectLedger(TSafeInspectLedger tSafeInspectLedger);
/**
* 修改安全检查台账
*
* @param tSafeInspectLedger 安全检查台账
* @return 结果
*/
public int updateTSafeInspectLedger(TSafeInspectLedger tSafeInspectLedger);
/**
* 删除安全检查台账
*
* @param inspectId 安全检查台账ID
* @return 结果
*/
public int deleteTSafeInspectLedgerById(Long inspectId);
/**
* 批量删除安全检查台账
*
* @param inspectIds 需要删除的数据ID
* @return 结果
*/
public int deleteTSafeInspectLedgerByIds(Long[] inspectIds);
}
package com.zehong.system.mapper;
import java.util.List;
import com.zehong.system.domain.TSafeMeetingLedger;
/**
* 安全例会台账Mapper接口
*
* @author zehong
* @date 2026-03-27
*/
public interface TSafeMeetingLedgerMapper
{
/**
* 查询安全例会台账
*
* @param meetingId 安全例会台账ID
* @return 安全例会台账
*/
public TSafeMeetingLedger selectTSafeMeetingLedgerById(Long meetingId);
/**
* 查询安全例会台账列表
*
* @param tSafeMeetingLedger 安全例会台账
* @return 安全例会台账集合
*/
public List<TSafeMeetingLedger> selectTSafeMeetingLedgerList(TSafeMeetingLedger tSafeMeetingLedger);
/**
* 新增安全例会台账
*
* @param tSafeMeetingLedger 安全例会台账
* @return 结果
*/
public int insertTSafeMeetingLedger(TSafeMeetingLedger tSafeMeetingLedger);
/**
* 修改安全例会台账
*
* @param tSafeMeetingLedger 安全例会台账
* @return 结果
*/
public int updateTSafeMeetingLedger(TSafeMeetingLedger tSafeMeetingLedger);
/**
* 删除安全例会台账
*
* @param meetingId 安全例会台账ID
* @return 结果
*/
public int deleteTSafeMeetingLedgerById(Long meetingId);
/**
* 批量删除安全例会台账
*
* @param meetingIds 需要删除的数据ID
* @return 结果
*/
public int deleteTSafeMeetingLedgerByIds(Long[] meetingIds);
}
package com.zehong.system.mapper;
import java.util.List;
import com.zehong.system.domain.TSafeTrainLedger;
/**
* 安全培训台账Mapper接口
*
* @author zehong
* @date 2026-03-27
*/
public interface TSafeTrainLedgerMapper
{
/**
* 查询安全培训台账
*
* @param trainId 安全培训台账ID
* @return 安全培训台账
*/
public TSafeTrainLedger selectTSafeTrainLedgerById(Long trainId);
/**
* 查询安全培训台账列表
*
* @param tSafeTrainLedger 安全培训台账
* @return 安全培训台账集合
*/
public List<TSafeTrainLedger> selectTSafeTrainLedgerList(TSafeTrainLedger tSafeTrainLedger);
/**
* 新增安全培训台账
*
* @param tSafeTrainLedger 安全培训台账
* @return 结果
*/
public int insertTSafeTrainLedger(TSafeTrainLedger tSafeTrainLedger);
/**
* 修改安全培训台账
*
* @param tSafeTrainLedger 安全培训台账
* @return 结果
*/
public int updateTSafeTrainLedger(TSafeTrainLedger tSafeTrainLedger);
/**
* 删除安全培训台账
*
* @param trainId 安全培训台账ID
* @return 结果
*/
public int deleteTSafeTrainLedgerById(Long trainId);
/**
* 批量删除安全培训台账
*
* @param trainIds 需要删除的数据ID
* @return 结果
*/
public int deleteTSafeTrainLedgerByIds(Long[] trainIds);
}
package com.zehong.system.service;
import java.util.List;
import com.zehong.system.domain.TSafeInspectLedger;
/**
* 安全检查台账Service接口
*
* @author zehong
* @date 2026-03-27
*/
public interface ITSafeInspectLedgerService
{
/**
* 查询安全检查台账
*
* @param inspectId 安全检查台账ID
* @return 安全检查台账
*/
public TSafeInspectLedger selectTSafeInspectLedgerById(Long inspectId);
/**
* 查询安全检查台账列表
*
* @param tSafeInspectLedger 安全检查台账
* @return 安全检查台账集合
*/
public List<TSafeInspectLedger> selectTSafeInspectLedgerList(TSafeInspectLedger tSafeInspectLedger);
/**
* 新增安全检查台账
*
* @param tSafeInspectLedger 安全检查台账
* @return 结果
*/
public int insertTSafeInspectLedger(TSafeInspectLedger tSafeInspectLedger);
/**
* 修改安全检查台账
*
* @param tSafeInspectLedger 安全检查台账
* @return 结果
*/
public int updateTSafeInspectLedger(TSafeInspectLedger tSafeInspectLedger);
/**
* 批量删除安全检查台账
*
* @param inspectIds 需要删除的安全检查台账ID
* @return 结果
*/
public int deleteTSafeInspectLedgerByIds(Long[] inspectIds);
/**
* 删除安全检查台账信息
*
* @param inspectId 安全检查台账ID
* @return 结果
*/
public int deleteTSafeInspectLedgerById(Long inspectId);
}
package com.zehong.system.service;
import java.util.List;
import com.zehong.system.domain.TSafeMeetingLedger;
/**
* 安全例会台账Service接口
*
* @author zehong
* @date 2026-03-27
*/
public interface ITSafeMeetingLedgerService
{
/**
* 查询安全例会台账
*
* @param meetingId 安全例会台账ID
* @return 安全例会台账
*/
public TSafeMeetingLedger selectTSafeMeetingLedgerById(Long meetingId);
/**
* 查询安全例会台账列表
*
* @param tSafeMeetingLedger 安全例会台账
* @return 安全例会台账集合
*/
public List<TSafeMeetingLedger> selectTSafeMeetingLedgerList(TSafeMeetingLedger tSafeMeetingLedger);
/**
* 新增安全例会台账
*
* @param tSafeMeetingLedger 安全例会台账
* @return 结果
*/
public int insertTSafeMeetingLedger(TSafeMeetingLedger tSafeMeetingLedger);
/**
* 修改安全例会台账
*
* @param tSafeMeetingLedger 安全例会台账
* @return 结果
*/
public int updateTSafeMeetingLedger(TSafeMeetingLedger tSafeMeetingLedger);
/**
* 批量删除安全例会台账
*
* @param meetingIds 需要删除的安全例会台账ID
* @return 结果
*/
public int deleteTSafeMeetingLedgerByIds(Long[] meetingIds);
/**
* 删除安全例会台账信息
*
* @param meetingId 安全例会台账ID
* @return 结果
*/
public int deleteTSafeMeetingLedgerById(Long meetingId);
}
package com.zehong.system.service;
import java.util.List;
import com.zehong.system.domain.TSafeTrainLedger;
/**
* 安全培训台账Service接口
*
* @author zehong
* @date 2026-03-27
*/
public interface ITSafeTrainLedgerService
{
/**
* 查询安全培训台账
*
* @param trainId 安全培训台账ID
* @return 安全培训台账
*/
public TSafeTrainLedger selectTSafeTrainLedgerById(Long trainId);
/**
* 查询安全培训台账列表
*
* @param tSafeTrainLedger 安全培训台账
* @return 安全培训台账集合
*/
public List<TSafeTrainLedger> selectTSafeTrainLedgerList(TSafeTrainLedger tSafeTrainLedger);
/**
* 新增安全培训台账
*
* @param tSafeTrainLedger 安全培训台账
* @return 结果
*/
public int insertTSafeTrainLedger(TSafeTrainLedger tSafeTrainLedger);
/**
* 修改安全培训台账
*
* @param tSafeTrainLedger 安全培训台账
* @return 结果
*/
public int updateTSafeTrainLedger(TSafeTrainLedger tSafeTrainLedger);
/**
* 批量删除安全培训台账
*
* @param trainIds 需要删除的安全培训台账ID
* @return 结果
*/
public int deleteTSafeTrainLedgerByIds(Long[] trainIds);
/**
* 删除安全培训台账信息
*
* @param trainId 安全培训台账ID
* @return 结果
*/
public int deleteTSafeTrainLedgerById(Long trainId);
}
package com.zehong.system.service.impl;
import java.util.List;
import com.zehong.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zehong.system.mapper.TSafeInspectLedgerMapper;
import com.zehong.system.domain.TSafeInspectLedger;
import com.zehong.system.service.ITSafeInspectLedgerService;
/**
* 安全检查台账Service业务层处理
*
* @author zehong
* @date 2026-03-27
*/
@Service
public class TSafeInspectLedgerServiceImpl implements ITSafeInspectLedgerService
{
@Autowired
private TSafeInspectLedgerMapper tSafeInspectLedgerMapper;
/**
* 查询安全检查台账
*
* @param inspectId 安全检查台账ID
* @return 安全检查台账
*/
@Override
public TSafeInspectLedger selectTSafeInspectLedgerById(Long inspectId)
{
return tSafeInspectLedgerMapper.selectTSafeInspectLedgerById(inspectId);
}
/**
* 查询安全检查台账列表
*
* @param tSafeInspectLedger 安全检查台账
* @return 安全检查台账
*/
@Override
public List<TSafeInspectLedger> selectTSafeInspectLedgerList(TSafeInspectLedger tSafeInspectLedger)
{
return tSafeInspectLedgerMapper.selectTSafeInspectLedgerList(tSafeInspectLedger);
}
/**
* 新增安全检查台账
*
* @param tSafeInspectLedger 安全检查台账
* @return 结果
*/
@Override
public int insertTSafeInspectLedger(TSafeInspectLedger tSafeInspectLedger)
{
tSafeInspectLedger.setCreateTime(DateUtils.getNowDate());
return tSafeInspectLedgerMapper.insertTSafeInspectLedger(tSafeInspectLedger);
}
/**
* 修改安全检查台账
*
* @param tSafeInspectLedger 安全检查台账
* @return 结果
*/
@Override
public int updateTSafeInspectLedger(TSafeInspectLedger tSafeInspectLedger)
{
tSafeInspectLedger.setUpdateTime(DateUtils.getNowDate());
return tSafeInspectLedgerMapper.updateTSafeInspectLedger(tSafeInspectLedger);
}
/**
* 批量删除安全检查台账
*
* @param inspectIds 需要删除的安全检查台账ID
* @return 结果
*/
@Override
public int deleteTSafeInspectLedgerByIds(Long[] inspectIds)
{
return tSafeInspectLedgerMapper.deleteTSafeInspectLedgerByIds(inspectIds);
}
/**
* 删除安全检查台账信息
*
* @param inspectId 安全检查台账ID
* @return 结果
*/
@Override
public int deleteTSafeInspectLedgerById(Long inspectId)
{
return tSafeInspectLedgerMapper.deleteTSafeInspectLedgerById(inspectId);
}
}
package com.zehong.system.service.impl;
import java.util.List;
import com.zehong.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zehong.system.mapper.TSafeMeetingLedgerMapper;
import com.zehong.system.domain.TSafeMeetingLedger;
import com.zehong.system.service.ITSafeMeetingLedgerService;
/**
* 安全例会台账Service业务层处理
*
* @author zehong
* @date 2026-03-27
*/
@Service
public class TSafeMeetingLedgerServiceImpl implements ITSafeMeetingLedgerService
{
@Autowired
private TSafeMeetingLedgerMapper tSafeMeetingLedgerMapper;
/**
* 查询安全例会台账
*
* @param meetingId 安全例会台账ID
* @return 安全例会台账
*/
@Override
public TSafeMeetingLedger selectTSafeMeetingLedgerById(Long meetingId)
{
return tSafeMeetingLedgerMapper.selectTSafeMeetingLedgerById(meetingId);
}
/**
* 查询安全例会台账列表
*
* @param tSafeMeetingLedger 安全例会台账
* @return 安全例会台账
*/
@Override
public List<TSafeMeetingLedger> selectTSafeMeetingLedgerList(TSafeMeetingLedger tSafeMeetingLedger)
{
return tSafeMeetingLedgerMapper.selectTSafeMeetingLedgerList(tSafeMeetingLedger);
}
/**
* 新增安全例会台账
*
* @param tSafeMeetingLedger 安全例会台账
* @return 结果
*/
@Override
public int insertTSafeMeetingLedger(TSafeMeetingLedger tSafeMeetingLedger)
{
tSafeMeetingLedger.setCreateTime(DateUtils.getNowDate());
return tSafeMeetingLedgerMapper.insertTSafeMeetingLedger(tSafeMeetingLedger);
}
/**
* 修改安全例会台账
*
* @param tSafeMeetingLedger 安全例会台账
* @return 结果
*/
@Override
public int updateTSafeMeetingLedger(TSafeMeetingLedger tSafeMeetingLedger)
{
tSafeMeetingLedger.setUpdateTime(DateUtils.getNowDate());
return tSafeMeetingLedgerMapper.updateTSafeMeetingLedger(tSafeMeetingLedger);
}
/**
* 批量删除安全例会台账
*
* @param meetingIds 需要删除的安全例会台账ID
* @return 结果
*/
@Override
public int deleteTSafeMeetingLedgerByIds(Long[] meetingIds)
{
return tSafeMeetingLedgerMapper.deleteTSafeMeetingLedgerByIds(meetingIds);
}
/**
* 删除安全例会台账信息
*
* @param meetingId 安全例会台账ID
* @return 结果
*/
@Override
public int deleteTSafeMeetingLedgerById(Long meetingId)
{
return tSafeMeetingLedgerMapper.deleteTSafeMeetingLedgerById(meetingId);
}
}
package com.zehong.system.service.impl;
import java.util.List;
import com.zehong.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zehong.system.mapper.TSafeTrainLedgerMapper;
import com.zehong.system.domain.TSafeTrainLedger;
import com.zehong.system.service.ITSafeTrainLedgerService;
/**
* 安全培训台账Service业务层处理
*
* @author zehong
* @date 2026-03-27
*/
@Service
public class TSafeTrainLedgerServiceImpl implements ITSafeTrainLedgerService
{
@Autowired
private TSafeTrainLedgerMapper tSafeTrainLedgerMapper;
/**
* 查询安全培训台账
*
* @param trainId 安全培训台账ID
* @return 安全培训台账
*/
@Override
public TSafeTrainLedger selectTSafeTrainLedgerById(Long trainId)
{
return tSafeTrainLedgerMapper.selectTSafeTrainLedgerById(trainId);
}
/**
* 查询安全培训台账列表
*
* @param tSafeTrainLedger 安全培训台账
* @return 安全培训台账
*/
@Override
public List<TSafeTrainLedger> selectTSafeTrainLedgerList(TSafeTrainLedger tSafeTrainLedger)
{
return tSafeTrainLedgerMapper.selectTSafeTrainLedgerList(tSafeTrainLedger);
}
/**
* 新增安全培训台账
*
* @param tSafeTrainLedger 安全培训台账
* @return 结果
*/
@Override
public int insertTSafeTrainLedger(TSafeTrainLedger tSafeTrainLedger)
{
tSafeTrainLedger.setCreateTime(DateUtils.getNowDate());
return tSafeTrainLedgerMapper.insertTSafeTrainLedger(tSafeTrainLedger);
}
/**
* 修改安全培训台账
*
* @param tSafeTrainLedger 安全培训台账
* @return 结果
*/
@Override
public int updateTSafeTrainLedger(TSafeTrainLedger tSafeTrainLedger)
{
tSafeTrainLedger.setUpdateTime(DateUtils.getNowDate());
return tSafeTrainLedgerMapper.updateTSafeTrainLedger(tSafeTrainLedger);
}
/**
* 批量删除安全培训台账
*
* @param trainIds 需要删除的安全培训台账ID
* @return 结果
*/
@Override
public int deleteTSafeTrainLedgerByIds(Long[] trainIds)
{
return tSafeTrainLedgerMapper.deleteTSafeTrainLedgerByIds(trainIds);
}
/**
* 删除安全培训台账信息
*
* @param trainId 安全培训台账ID
* @return 结果
*/
@Override
public int deleteTSafeTrainLedgerById(Long trainId)
{
return tSafeTrainLedgerMapper.deleteTSafeTrainLedgerById(trainId);
}
}
<?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.TSafeInspectLedgerMapper">
<resultMap type="TSafeInspectLedger" id="TSafeInspectLedgerResult">
<result property="inspectId" column="inspect_id" />
<result property="title" column="title" />
<result property="content" column="content" />
<result property="address" column="address" />
<result property="photo" column="photo" />
<result property="attachment" column="attachment" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTSafeInspectLedgerVo">
select inspect_id, title, content, address, photo, attachment, create_by, create_time, update_by, update_time, is_del, remarks from t_safe_inspect_ledger
</sql>
<select id="selectTSafeInspectLedgerList" parameterType="TSafeInspectLedger" resultMap="TSafeInspectLedgerResult">
<include refid="selectTSafeInspectLedgerVo"/>
<where>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="content != null and content != ''"> and content = #{content}</if>
<if test="address != null "> and address = #{address}</if>
<if test="photo != null and photo != ''"> and photo = #{photo}</if>
<if test="attachment != null and attachment != ''"> and attachment = #{attachment}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
</select>
<select id="selectTSafeInspectLedgerById" parameterType="Long" resultMap="TSafeInspectLedgerResult">
<include refid="selectTSafeInspectLedgerVo"/>
where inspect_id = #{inspectId}
</select>
<insert id="insertTSafeInspectLedger" parameterType="TSafeInspectLedger" useGeneratedKeys="true" keyProperty="inspectId">
insert into t_safe_inspect_ledger
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">title,</if>
<if test="content != null">content,</if>
<if test="address != null">address,</if>
<if test="photo != null">photo,</if>
<if test="attachment != null">attachment,</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>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">#{title},</if>
<if test="content != null">#{content},</if>
<if test="address != null">#{address},</if>
<if test="photo != null">#{photo},</if>
<if test="attachment != null">#{attachment},</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>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTSafeInspectLedger" parameterType="TSafeInspectLedger">
update t_safe_inspect_ledger
<trim prefix="SET" suffixOverrides=",">
<if test="title != null">title = #{title},</if>
<if test="content != null">content = #{content},</if>
<if test="address != null">address = #{address},</if>
<if test="photo != null">photo = #{photo},</if>
<if test="attachment != null">attachment = #{attachment},</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>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where inspect_id = #{inspectId}
</update>
<delete id="deleteTSafeInspectLedgerById" parameterType="Long">
delete from t_safe_inspect_ledger where inspect_id = #{inspectId}
</delete>
<delete id="deleteTSafeInspectLedgerByIds" parameterType="String">
delete from t_safe_inspect_ledger where inspect_id in
<foreach item="inspectId" collection="array" open="(" separator="," close=")">
#{inspectId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.TSafeMeetingLedgerMapper">
<resultMap type="TSafeMeetingLedger" id="TSafeMeetingLedgerResult">
<result property="meetingId" column="meeting_id" />
<result property="title" column="title" />
<result property="content" column="content" />
<result property="address" column="address" />
<result property="photo" column="photo" />
<result property="attachment" column="attachment" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTSafeMeetingLedgerVo">
select meeting_id, title, content, address, photo, attachment, create_by, create_time, update_by, update_time, is_del, remarks from t_safe_meeting_ledger
</sql>
<select id="selectTSafeMeetingLedgerList" parameterType="TSafeMeetingLedger" resultMap="TSafeMeetingLedgerResult">
<include refid="selectTSafeMeetingLedgerVo"/>
<where>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="content != null and content != ''"> and content = #{content}</if>
<if test="address != null "> and address = #{address}</if>
<if test="photo != null and photo != ''"> and photo = #{photo}</if>
<if test="attachment != null and attachment != ''"> and attachment = #{attachment}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
</select>
<select id="selectTSafeMeetingLedgerById" parameterType="Long" resultMap="TSafeMeetingLedgerResult">
<include refid="selectTSafeMeetingLedgerVo"/>
where meeting_id = #{meetingId}
</select>
<insert id="insertTSafeMeetingLedger" parameterType="TSafeMeetingLedger" useGeneratedKeys="true" keyProperty="meetingId">
insert into t_safe_meeting_ledger
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">title,</if>
<if test="content != null">content,</if>
<if test="address != null">address,</if>
<if test="photo != null">photo,</if>
<if test="attachment != null">attachment,</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>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">#{title},</if>
<if test="content != null">#{content},</if>
<if test="address != null">#{address},</if>
<if test="photo != null">#{photo},</if>
<if test="attachment != null">#{attachment},</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>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTSafeMeetingLedger" parameterType="TSafeMeetingLedger">
update t_safe_meeting_ledger
<trim prefix="SET" suffixOverrides=",">
<if test="title != null">title = #{title},</if>
<if test="content != null">content = #{content},</if>
<if test="address != null">address = #{address},</if>
<if test="photo != null">photo = #{photo},</if>
<if test="attachment != null">attachment = #{attachment},</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>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where meeting_id = #{meetingId}
</update>
<delete id="deleteTSafeMeetingLedgerById" parameterType="Long">
delete from t_safe_meeting_ledger where meeting_id = #{meetingId}
</delete>
<delete id="deleteTSafeMeetingLedgerByIds" parameterType="String">
delete from t_safe_meeting_ledger where meeting_id in
<foreach item="meetingId" collection="array" open="(" separator="," close=")">
#{meetingId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.TSafeTrainLedgerMapper">
<resultMap type="TSafeTrainLedger" id="TSafeTrainLedgerResult">
<result property="trainId" column="train_id" />
<result property="title" column="title" />
<result property="content" column="content" />
<result property="address" column="address" />
<result property="photo" column="photo" />
<result property="attachment" column="attachment" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="isDel" column="is_del" />
<result property="remarks" column="remarks" />
</resultMap>
<sql id="selectTSafeTrainLedgerVo">
select train_id, title, content, address, photo, attachment, create_by, create_time, update_by, update_time, is_del, remarks from t_safe_train_ledger
</sql>
<select id="selectTSafeTrainLedgerList" parameterType="TSafeTrainLedger" resultMap="TSafeTrainLedgerResult">
<include refid="selectTSafeTrainLedgerVo"/>
<where>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="content != null and content != ''"> and content = #{content}</if>
<if test="address != null "> and address = #{address}</if>
<if test="photo != null and photo != ''"> and photo = #{photo}</if>
<if test="attachment != null and attachment != ''"> and attachment = #{attachment}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
</select>
<select id="selectTSafeTrainLedgerById" parameterType="Long" resultMap="TSafeTrainLedgerResult">
<include refid="selectTSafeTrainLedgerVo"/>
where train_id = #{trainId}
</select>
<insert id="insertTSafeTrainLedger" parameterType="TSafeTrainLedger" useGeneratedKeys="true" keyProperty="trainId">
insert into t_safe_train_ledger
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">title,</if>
<if test="content != null">content,</if>
<if test="address != null">address,</if>
<if test="photo != null">photo,</if>
<if test="attachment != null">attachment,</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>
<if test="isDel != null">is_del,</if>
<if test="remarks != null">remarks,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">#{title},</if>
<if test="content != null">#{content},</if>
<if test="address != null">#{address},</if>
<if test="photo != null">#{photo},</if>
<if test="attachment != null">#{attachment},</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>
<if test="isDel != null">#{isDel},</if>
<if test="remarks != null">#{remarks},</if>
</trim>
</insert>
<update id="updateTSafeTrainLedger" parameterType="TSafeTrainLedger">
update t_safe_train_ledger
<trim prefix="SET" suffixOverrides=",">
<if test="title != null">title = #{title},</if>
<if test="content != null">content = #{content},</if>
<if test="address != null">address = #{address},</if>
<if test="photo != null">photo = #{photo},</if>
<if test="attachment != null">attachment = #{attachment},</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>
<if test="isDel != null">is_del = #{isDel},</if>
<if test="remarks != null">remarks = #{remarks},</if>
</trim>
where train_id = #{trainId}
</update>
<delete id="deleteTSafeTrainLedgerById" parameterType="Long">
delete from t_safe_train_ledger where train_id = #{trainId}
</delete>
<delete id="deleteTSafeTrainLedgerByIds" parameterType="String">
delete from t_safe_train_ledger where train_id in
<foreach item="trainId" collection="array" open="(" separator="," close=")">
#{trainId}
</foreach>
</delete>
</mapper>
\ No newline at end of file
import request from '@/utils/request'
// 查询安全检查台账列表
export function listLedger(query) {
return request({
url: '/safe/inspect/list',
method: 'get',
params: query
})
}
// 查询安全检查台账详细
export function getLedger(inspectId) {
return request({
url: '/safe/inspect/' + inspectId,
method: 'get'
})
}
// 新增安全检查台账
export function addLedger(data) {
return request({
url: '/safe/inspect',
method: 'post',
data: data
})
}
// 修改安全检查台账
export function updateLedger(data) {
return request({
url: '/safe/inspect',
method: 'put',
data: data
})
}
// 删除安全检查台账
export function delLedger(inspectId) {
return request({
url: '/safe/inspect/' + inspectId,
method: 'delete'
})
}
// 导出安全检查台账
export function exportLedger(query) {
return request({
url: '/safe/inspect/export',
method: 'get',
params: query
})
}
import request from '@/utils/request'
// 查询安全例会台账列表
export function listLedger(query) {
return request({
url: '/safe/meeting/list',
method: 'get',
params: query
})
}
// 查询安全例会台账详细
export function getLedger(meetingId) {
return request({
url: '/safe/meeting/' + meetingId,
method: 'get'
})
}
// 新增安全例会台账
export function addLedger(data) {
return request({
url: '/safe/meeting',
method: 'post',
data: data
})
}
// 修改安全例会台账
export function updateLedger(data) {
return request({
url: '/safe/meeting',
method: 'put',
data: data
})
}
// 删除安全例会台账
export function delLedger(meetingId) {
return request({
url: '/safe/meeting/' + meetingId,
method: 'delete'
})
}
// 导出安全例会台账
export function exportLedger(query) {
return request({
url: '/safe/meeting/export',
method: 'get',
params: query
})
}
import request from '@/utils/request'
// 查询安全培训台账列表
export function listLedger(query) {
return request({
url: '/safe/train/list',
method: 'get',
params: query
})
}
// 查询安全培训台账详细
export function getLedger(trainId) {
return request({
url: '/safe/train/' + trainId,
method: 'get'
})
}
// 新增安全培训台账
export function addLedger(data) {
return request({
url: '/safe/train',
method: 'post',
data: data
})
}
// 修改安全培训台账
export function updateLedger(data) {
return request({
url: '/safe/train',
method: 'put',
data: data
})
}
// 删除安全培训台账
export function delLedger(trainId) {
return request({
url: '/safe/train/' + trainId,
method: 'delete'
})
}
// 导出安全培训台账
export function exportLedger(query) {
return request({
url: '/safe/train/export',
method: 'get',
params: query
})
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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