add 压缩空气整点报表、氮气整点数据报表
parent
481f78f1c1
commit
677bc08f56
@ -0,0 +1,100 @@
|
||||
package com.os.ems.report.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
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.os.common.annotation.Log;
|
||||
import com.os.common.core.controller.BaseController;
|
||||
import com.os.common.core.domain.AjaxResult;
|
||||
import com.os.common.enums.BusinessType;
|
||||
import com.os.ems.report.domain.EmsReportPointAir;
|
||||
import com.os.ems.report.service.IEmsReportPointAirService;
|
||||
import com.os.common.utils.poi.ExcelUtil;
|
||||
import com.os.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 压缩空气整点数据Controller
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/ems/report/reportPointAir")
|
||||
public class EmsReportPointAirController extends BaseController {
|
||||
@Autowired
|
||||
private IEmsReportPointAirService emsReportPointAirService;
|
||||
|
||||
/**
|
||||
* 查询压缩空气整点数据列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointAir:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmsReportPointAir emsReportPointAir) {
|
||||
startPage();
|
||||
List<EmsReportPointAir> list = emsReportPointAirService.selectEmsReportPointAirList(emsReportPointAir);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出压缩空气整点数据列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointAir:export')")
|
||||
@Log(title = "压缩空气整点数据", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmsReportPointAir emsReportPointAir) {
|
||||
List<EmsReportPointAir> list = emsReportPointAirService.selectEmsReportPointAirList(emsReportPointAir);
|
||||
ExcelUtil<EmsReportPointAir> util = new ExcelUtil<EmsReportPointAir>(EmsReportPointAir.class);
|
||||
util.exportExcel(response, list, "压缩空气整点数据数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取压缩空气整点数据详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointAir:query')")
|
||||
@GetMapping(value = "/{objId}")
|
||||
public AjaxResult getInfo(@PathVariable("objId") Long objId) {
|
||||
return success(emsReportPointAirService.selectEmsReportPointAirByObjId(objId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增压缩空气整点数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointAir:add')")
|
||||
@Log(title = "压缩空气整点数据", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmsReportPointAir emsReportPointAir) {
|
||||
return toAjax(emsReportPointAirService.insertEmsReportPointAir(emsReportPointAir));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改压缩空气整点数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointAir:edit')")
|
||||
@Log(title = "压缩空气整点数据", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmsReportPointAir emsReportPointAir) {
|
||||
emsReportPointAir.setUpdateBy(getUsername());
|
||||
return toAjax(emsReportPointAirService.updateEmsReportPointAir(emsReportPointAir));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除压缩空气整点数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointAir:remove')")
|
||||
@Log(title = "压缩空气整点数据", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{objIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] objIds) {
|
||||
return toAjax(emsReportPointAirService.deleteEmsReportPointAirByObjIds(objIds));
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,100 @@
|
||||
package com.os.ems.report.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
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.os.common.annotation.Log;
|
||||
import com.os.common.core.controller.BaseController;
|
||||
import com.os.common.core.domain.AjaxResult;
|
||||
import com.os.common.enums.BusinessType;
|
||||
import com.os.ems.report.domain.EmsReportPointNitrogen;
|
||||
import com.os.ems.report.service.IEmsReportPointNitrogenService;
|
||||
import com.os.common.utils.poi.ExcelUtil;
|
||||
import com.os.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 氮气整点数据Controller
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/ems/report/reportPointNitrogen")
|
||||
public class EmsReportPointNitrogenController extends BaseController {
|
||||
@Autowired
|
||||
private IEmsReportPointNitrogenService emsReportPointNitrogenService;
|
||||
|
||||
/**
|
||||
* 查询氮气整点数据列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointNitrogen:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmsReportPointNitrogen emsReportPointNitrogen) {
|
||||
startPage();
|
||||
List<EmsReportPointNitrogen> list = emsReportPointNitrogenService.selectEmsReportPointNitrogenList(emsReportPointNitrogen);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出氮气整点数据列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointNitrogen:export')")
|
||||
@Log(title = "氮气整点数据", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmsReportPointNitrogen emsReportPointNitrogen) {
|
||||
List<EmsReportPointNitrogen> list = emsReportPointNitrogenService.selectEmsReportPointNitrogenList(emsReportPointNitrogen);
|
||||
ExcelUtil<EmsReportPointNitrogen> util = new ExcelUtil<EmsReportPointNitrogen>(EmsReportPointNitrogen.class);
|
||||
util.exportExcel(response, list, "氮气整点数据数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取氮气整点数据详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointNitrogen:query')")
|
||||
@GetMapping(value = "/{objId}")
|
||||
public AjaxResult getInfo(@PathVariable("objId") Long objId) {
|
||||
return success(emsReportPointNitrogenService.selectEmsReportPointNitrogenByObjId(objId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增氮气整点数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointNitrogen:add')")
|
||||
@Log(title = "氮气整点数据", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmsReportPointNitrogen emsReportPointNitrogen) {
|
||||
return toAjax(emsReportPointNitrogenService.insertEmsReportPointNitrogen(emsReportPointNitrogen));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改氮气整点数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointNitrogen:edit')")
|
||||
@Log(title = "氮气整点数据", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmsReportPointNitrogen emsReportPointNitrogen) {
|
||||
emsReportPointNitrogen.setUpdateBy(getUsername());
|
||||
return toAjax(emsReportPointNitrogenService.updateEmsReportPointNitrogen(emsReportPointNitrogen));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除氮气整点数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointNitrogen:remove')")
|
||||
@Log(title = "氮气整点数据", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{objIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] objIds) {
|
||||
return toAjax(emsReportPointNitrogenService.deleteEmsReportPointNitrogenByObjIds(objIds));
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,62 @@
|
||||
package com.os.ems.report.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.os.ems.report.domain.EmsReportPointAir;
|
||||
|
||||
/**
|
||||
* 压缩空气整点数据Mapper接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface EmsReportPointAirMapper
|
||||
{
|
||||
/**
|
||||
* 查询压缩空气整点数据
|
||||
*
|
||||
* @param objId 压缩空气整点数据主键
|
||||
* @return 压缩空气整点数据
|
||||
*/
|
||||
public EmsReportPointAir selectEmsReportPointAirByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询压缩空气整点数据列表
|
||||
*
|
||||
* @param emsReportPointAir 压缩空气整点数据
|
||||
* @return 压缩空气整点数据集合
|
||||
*/
|
||||
public List<EmsReportPointAir> selectEmsReportPointAirList(EmsReportPointAir emsReportPointAir);
|
||||
|
||||
/**
|
||||
* 新增压缩空气整点数据
|
||||
*
|
||||
* @param emsReportPointAir 压缩空气整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmsReportPointAir(EmsReportPointAir emsReportPointAir);
|
||||
|
||||
/**
|
||||
* 修改压缩空气整点数据
|
||||
*
|
||||
* @param emsReportPointAir 压缩空气整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmsReportPointAir(EmsReportPointAir emsReportPointAir);
|
||||
|
||||
/**
|
||||
* 删除压缩空气整点数据
|
||||
*
|
||||
* @param objId 压缩空气整点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsReportPointAirByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 批量删除压缩空气整点数据
|
||||
*
|
||||
* @param objIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsReportPointAirByObjIds(Long[] objIds);
|
||||
}
|
||||
|
||||
@ -0,0 +1,62 @@
|
||||
package com.os.ems.report.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.os.ems.report.domain.EmsReportPointNitrogen;
|
||||
|
||||
/**
|
||||
* 氮气整点数据Mapper接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface EmsReportPointNitrogenMapper
|
||||
{
|
||||
/**
|
||||
* 查询氮气整点数据
|
||||
*
|
||||
* @param objId 氮气整点数据主键
|
||||
* @return 氮气整点数据
|
||||
*/
|
||||
public EmsReportPointNitrogen selectEmsReportPointNitrogenByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询氮气整点数据列表
|
||||
*
|
||||
* @param emsReportPointNitrogen 氮气整点数据
|
||||
* @return 氮气整点数据集合
|
||||
*/
|
||||
public List<EmsReportPointNitrogen> selectEmsReportPointNitrogenList(EmsReportPointNitrogen emsReportPointNitrogen);
|
||||
|
||||
/**
|
||||
* 新增氮气整点数据
|
||||
*
|
||||
* @param emsReportPointNitrogen 氮气整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmsReportPointNitrogen(EmsReportPointNitrogen emsReportPointNitrogen);
|
||||
|
||||
/**
|
||||
* 修改氮气整点数据
|
||||
*
|
||||
* @param emsReportPointNitrogen 氮气整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmsReportPointNitrogen(EmsReportPointNitrogen emsReportPointNitrogen);
|
||||
|
||||
/**
|
||||
* 删除氮气整点数据
|
||||
*
|
||||
* @param objId 氮气整点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsReportPointNitrogenByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 批量删除氮气整点数据
|
||||
*
|
||||
* @param objIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsReportPointNitrogenByObjIds(Long[] objIds);
|
||||
}
|
||||
|
||||
@ -0,0 +1,62 @@
|
||||
package com.os.ems.report.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.os.ems.report.domain.EmsReportPointAir;
|
||||
|
||||
/**
|
||||
* 压缩空气整点数据Service接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IEmsReportPointAirService {
|
||||
/**
|
||||
* 查询压缩空气整点数据
|
||||
*
|
||||
* @param objId 压缩空气整点数据主键
|
||||
* @return 压缩空气整点数据
|
||||
*/
|
||||
public EmsReportPointAir selectEmsReportPointAirByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询压缩空气整点数据列表
|
||||
*
|
||||
* @param emsReportPointAir 压缩空气整点数据
|
||||
* @return 压缩空气整点数据集合
|
||||
*/
|
||||
public List<EmsReportPointAir> selectEmsReportPointAirList(EmsReportPointAir emsReportPointAir);
|
||||
|
||||
/**
|
||||
* 新增压缩空气整点数据
|
||||
*
|
||||
* @param emsReportPointAir 压缩空气整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmsReportPointAir(EmsReportPointAir emsReportPointAir);
|
||||
|
||||
/**
|
||||
* 修改压缩空气整点数据
|
||||
*
|
||||
* @param emsReportPointAir 压缩空气整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmsReportPointAir(EmsReportPointAir emsReportPointAir);
|
||||
|
||||
/**
|
||||
* 批量删除压缩空气整点数据
|
||||
*
|
||||
* @param objIds 需要删除的压缩空气整点数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsReportPointAirByObjIds(Long[] objIds);
|
||||
|
||||
/**
|
||||
* 删除压缩空气整点数据信息
|
||||
*
|
||||
* @param objId 压缩空气整点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsReportPointAirByObjId(Long objId);
|
||||
}
|
||||
|
||||
@ -0,0 +1,62 @@
|
||||
package com.os.ems.report.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.os.ems.report.domain.EmsReportPointNitrogen;
|
||||
|
||||
/**
|
||||
* 氮气整点数据Service接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IEmsReportPointNitrogenService {
|
||||
/**
|
||||
* 查询氮气整点数据
|
||||
*
|
||||
* @param objId 氮气整点数据主键
|
||||
* @return 氮气整点数据
|
||||
*/
|
||||
public EmsReportPointNitrogen selectEmsReportPointNitrogenByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询氮气整点数据列表
|
||||
*
|
||||
* @param emsReportPointNitrogen 氮气整点数据
|
||||
* @return 氮气整点数据集合
|
||||
*/
|
||||
public List<EmsReportPointNitrogen> selectEmsReportPointNitrogenList(EmsReportPointNitrogen emsReportPointNitrogen);
|
||||
|
||||
/**
|
||||
* 新增氮气整点数据
|
||||
*
|
||||
* @param emsReportPointNitrogen 氮气整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmsReportPointNitrogen(EmsReportPointNitrogen emsReportPointNitrogen);
|
||||
|
||||
/**
|
||||
* 修改氮气整点数据
|
||||
*
|
||||
* @param emsReportPointNitrogen 氮气整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmsReportPointNitrogen(EmsReportPointNitrogen emsReportPointNitrogen);
|
||||
|
||||
/**
|
||||
* 批量删除氮气整点数据
|
||||
*
|
||||
* @param objIds 需要删除的氮气整点数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsReportPointNitrogenByObjIds(Long[] objIds);
|
||||
|
||||
/**
|
||||
* 删除氮气整点数据信息
|
||||
*
|
||||
* @param objId 氮气整点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsReportPointNitrogenByObjId(Long objId);
|
||||
}
|
||||
|
||||
@ -0,0 +1,91 @@
|
||||
package com.os.ems.report.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.os.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.os.ems.report.mapper.EmsReportPointAirMapper;
|
||||
import com.os.ems.report.domain.EmsReportPointAir;
|
||||
import com.os.ems.report.service.IEmsReportPointAirService;
|
||||
|
||||
/**
|
||||
* 压缩空气整点数据Service业务层处理
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@Service
|
||||
public class EmsReportPointAirServiceImpl implements IEmsReportPointAirService {
|
||||
@Autowired
|
||||
private EmsReportPointAirMapper emsReportPointAirMapper;
|
||||
|
||||
/**
|
||||
* 查询压缩空气整点数据
|
||||
*
|
||||
* @param objId 压缩空气整点数据主键
|
||||
* @return 压缩空气整点数据
|
||||
*/
|
||||
@Override
|
||||
public EmsReportPointAir selectEmsReportPointAirByObjId(Long objId) {
|
||||
return emsReportPointAirMapper.selectEmsReportPointAirByObjId(objId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询压缩空气整点数据列表
|
||||
*
|
||||
* @param emsReportPointAir 压缩空气整点数据
|
||||
* @return 压缩空气整点数据
|
||||
*/
|
||||
@Override
|
||||
public List<EmsReportPointAir> selectEmsReportPointAirList(EmsReportPointAir emsReportPointAir) {
|
||||
return emsReportPointAirMapper.selectEmsReportPointAirList(emsReportPointAir);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增压缩空气整点数据
|
||||
*
|
||||
* @param emsReportPointAir 压缩空气整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmsReportPointAir(EmsReportPointAir emsReportPointAir) {
|
||||
emsReportPointAir.setCreateTime(DateUtils.getNowDate());
|
||||
return emsReportPointAirMapper.insertEmsReportPointAir(emsReportPointAir);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改压缩空气整点数据
|
||||
*
|
||||
* @param emsReportPointAir 压缩空气整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmsReportPointAir(EmsReportPointAir emsReportPointAir) {
|
||||
emsReportPointAir.setUpdateTime(DateUtils.getNowDate());
|
||||
return emsReportPointAirMapper.updateEmsReportPointAir(emsReportPointAir);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除压缩空气整点数据
|
||||
*
|
||||
* @param objIds 需要删除的压缩空气整点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmsReportPointAirByObjIds(Long[] objIds) {
|
||||
return emsReportPointAirMapper.deleteEmsReportPointAirByObjIds(objIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除压缩空气整点数据信息
|
||||
*
|
||||
* @param objId 压缩空气整点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmsReportPointAirByObjId(Long objId) {
|
||||
return emsReportPointAirMapper.deleteEmsReportPointAirByObjId(objId);
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,91 @@
|
||||
package com.os.ems.report.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.os.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.os.ems.report.mapper.EmsReportPointNitrogenMapper;
|
||||
import com.os.ems.report.domain.EmsReportPointNitrogen;
|
||||
import com.os.ems.report.service.IEmsReportPointNitrogenService;
|
||||
|
||||
/**
|
||||
* 氮气整点数据Service业务层处理
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@Service
|
||||
public class EmsReportPointNitrogenServiceImpl implements IEmsReportPointNitrogenService {
|
||||
@Autowired
|
||||
private EmsReportPointNitrogenMapper emsReportPointNitrogenMapper;
|
||||
|
||||
/**
|
||||
* 查询氮气整点数据
|
||||
*
|
||||
* @param objId 氮气整点数据主键
|
||||
* @return 氮气整点数据
|
||||
*/
|
||||
@Override
|
||||
public EmsReportPointNitrogen selectEmsReportPointNitrogenByObjId(Long objId) {
|
||||
return emsReportPointNitrogenMapper.selectEmsReportPointNitrogenByObjId(objId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询氮气整点数据列表
|
||||
*
|
||||
* @param emsReportPointNitrogen 氮气整点数据
|
||||
* @return 氮气整点数据
|
||||
*/
|
||||
@Override
|
||||
public List<EmsReportPointNitrogen> selectEmsReportPointNitrogenList(EmsReportPointNitrogen emsReportPointNitrogen) {
|
||||
return emsReportPointNitrogenMapper.selectEmsReportPointNitrogenList(emsReportPointNitrogen);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增氮气整点数据
|
||||
*
|
||||
* @param emsReportPointNitrogen 氮气整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmsReportPointNitrogen(EmsReportPointNitrogen emsReportPointNitrogen) {
|
||||
emsReportPointNitrogen.setCreateTime(DateUtils.getNowDate());
|
||||
return emsReportPointNitrogenMapper.insertEmsReportPointNitrogen(emsReportPointNitrogen);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改氮气整点数据
|
||||
*
|
||||
* @param emsReportPointNitrogen 氮气整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmsReportPointNitrogen(EmsReportPointNitrogen emsReportPointNitrogen) {
|
||||
emsReportPointNitrogen.setUpdateTime(DateUtils.getNowDate());
|
||||
return emsReportPointNitrogenMapper.updateEmsReportPointNitrogen(emsReportPointNitrogen);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除氮气整点数据
|
||||
*
|
||||
* @param objIds 需要删除的氮气整点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmsReportPointNitrogenByObjIds(Long[] objIds) {
|
||||
return emsReportPointNitrogenMapper.deleteEmsReportPointNitrogenByObjIds(objIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除氮气整点数据信息
|
||||
*
|
||||
* @param objId 氮气整点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmsReportPointNitrogenByObjId(Long objId) {
|
||||
return emsReportPointNitrogenMapper.deleteEmsReportPointNitrogenByObjId(objId);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue