change - add水、电整点数据
parent
fdbac98d84
commit
6f25e0086f
@ -0,0 +1,99 @@
|
||||
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.EmsReportPointDnb;
|
||||
import com.os.ems.report.service.IEmsReportPointDnbService;
|
||||
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/reportPointDnb")
|
||||
public class EmsReportPointDnbController extends BaseController {
|
||||
@Autowired
|
||||
private IEmsReportPointDnbService emsReportPointDnbService;
|
||||
|
||||
/**
|
||||
* 查询电整点数据列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointDnb:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmsReportPointDnb emsReportPointDnb) {
|
||||
startPage();
|
||||
List<EmsReportPointDnb> list = emsReportPointDnbService.selectEmsReportPointDnbList(emsReportPointDnb);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出电整点数据列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointDnb:export')")
|
||||
@Log(title = "电整点数据", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmsReportPointDnb emsReportPointDnb) {
|
||||
List<EmsReportPointDnb> list = emsReportPointDnbService.selectEmsReportPointDnbList(emsReportPointDnb);
|
||||
ExcelUtil<EmsReportPointDnb> util = new ExcelUtil<EmsReportPointDnb>(EmsReportPointDnb.class);
|
||||
util.exportExcel(response, list, "电整点数据数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取电整点数据详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointDnb:query')")
|
||||
@GetMapping(value = "/{objId}")
|
||||
public AjaxResult getInfo(@PathVariable("objId") Long objId) {
|
||||
return success(emsReportPointDnbService.selectEmsReportPointDnbByObjId(objId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增电整点数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointDnb:add')")
|
||||
@Log(title = "电整点数据", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmsReportPointDnb emsReportPointDnb) {
|
||||
return toAjax(emsReportPointDnbService.insertEmsReportPointDnb(emsReportPointDnb));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改电整点数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointDnb:edit')")
|
||||
@Log(title = "电整点数据", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmsReportPointDnb emsReportPointDnb) {
|
||||
emsReportPointDnb.setUpdateBy(getUsername());
|
||||
return toAjax(emsReportPointDnbService.updateEmsReportPointDnb(emsReportPointDnb));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除电整点数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointDnb:remove')")
|
||||
@Log(title = "电整点数据", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{objIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] objIds) {
|
||||
return toAjax(emsReportPointDnbService.deleteEmsReportPointDnbByObjIds(objIds));
|
||||
}
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
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.EmsReportPointWater;
|
||||
import com.os.ems.report.service.IEmsReportPointWaterService;
|
||||
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/reportPointWater")
|
||||
public class EmsReportPointWaterController extends BaseController {
|
||||
@Autowired
|
||||
private IEmsReportPointWaterService emsReportPointWaterService;
|
||||
|
||||
/**
|
||||
* 查询水整点数据列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointWater:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmsReportPointWater emsReportPointWater) {
|
||||
startPage();
|
||||
List<EmsReportPointWater> list = emsReportPointWaterService.selectEmsReportPointWaterList(emsReportPointWater);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出水整点数据列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointWater:export')")
|
||||
@Log(title = "水整点数据", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmsReportPointWater emsReportPointWater) {
|
||||
List<EmsReportPointWater> list = emsReportPointWaterService.selectEmsReportPointWaterList(emsReportPointWater);
|
||||
ExcelUtil<EmsReportPointWater> util = new ExcelUtil<EmsReportPointWater>(EmsReportPointWater.class);
|
||||
util.exportExcel(response, list, "水整点数据数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取水整点数据详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointWater:query')")
|
||||
@GetMapping(value = "/{objId}")
|
||||
public AjaxResult getInfo(@PathVariable("objId") Long objId) {
|
||||
return success(emsReportPointWaterService.selectEmsReportPointWaterByObjId(objId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增水整点数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointWater:add')")
|
||||
@Log(title = "水整点数据", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmsReportPointWater emsReportPointWater) {
|
||||
return toAjax(emsReportPointWaterService.insertEmsReportPointWater(emsReportPointWater));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改水整点数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointWater:edit')")
|
||||
@Log(title = "水整点数据", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmsReportPointWater emsReportPointWater) {
|
||||
emsReportPointWater.setUpdateBy(getUsername());
|
||||
return toAjax(emsReportPointWaterService.updateEmsReportPointWater(emsReportPointWater));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除水整点数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('ems/report:reportPointWater:remove')")
|
||||
@Log(title = "水整点数据", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{objIds}")
|
||||
public AjaxResult remove(@PathVariable Long[] objIds) {
|
||||
return toAjax(emsReportPointWaterService.deleteEmsReportPointWaterByObjIds(objIds));
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.os.ems.report.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.os.ems.report.domain.EmsReportPointDnb;
|
||||
|
||||
/**
|
||||
* 电整点数据Mapper接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface EmsReportPointDnbMapper
|
||||
{
|
||||
/**
|
||||
* 查询电整点数据
|
||||
*
|
||||
* @param objId 电整点数据主键
|
||||
* @return 电整点数据
|
||||
*/
|
||||
public EmsReportPointDnb selectEmsReportPointDnbByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询电整点数据列表
|
||||
*
|
||||
* @param emsReportPointDnb 电整点数据
|
||||
* @return 电整点数据集合
|
||||
*/
|
||||
public List<EmsReportPointDnb> selectEmsReportPointDnbList(EmsReportPointDnb emsReportPointDnb);
|
||||
|
||||
/**
|
||||
* 新增电整点数据
|
||||
*
|
||||
* @param emsReportPointDnb 电整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmsReportPointDnb(EmsReportPointDnb emsReportPointDnb);
|
||||
|
||||
/**
|
||||
* 修改电整点数据
|
||||
*
|
||||
* @param emsReportPointDnb 电整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmsReportPointDnb(EmsReportPointDnb emsReportPointDnb);
|
||||
|
||||
/**
|
||||
* 删除电整点数据
|
||||
*
|
||||
* @param objId 电整点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsReportPointDnbByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 批量删除电整点数据
|
||||
*
|
||||
* @param objIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsReportPointDnbByObjIds(Long[] objIds);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.os.ems.report.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.os.ems.report.domain.EmsReportPointWater;
|
||||
|
||||
/**
|
||||
* 水整点数据Mapper接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface EmsReportPointWaterMapper
|
||||
{
|
||||
/**
|
||||
* 查询水整点数据
|
||||
*
|
||||
* @param objId 水整点数据主键
|
||||
* @return 水整点数据
|
||||
*/
|
||||
public EmsReportPointWater selectEmsReportPointWaterByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询水整点数据列表
|
||||
*
|
||||
* @param emsReportPointWater 水整点数据
|
||||
* @return 水整点数据集合
|
||||
*/
|
||||
public List<EmsReportPointWater> selectEmsReportPointWaterList(EmsReportPointWater emsReportPointWater);
|
||||
|
||||
/**
|
||||
* 新增水整点数据
|
||||
*
|
||||
* @param emsReportPointWater 水整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmsReportPointWater(EmsReportPointWater emsReportPointWater);
|
||||
|
||||
/**
|
||||
* 修改水整点数据
|
||||
*
|
||||
* @param emsReportPointWater 水整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmsReportPointWater(EmsReportPointWater emsReportPointWater);
|
||||
|
||||
/**
|
||||
* 删除水整点数据
|
||||
*
|
||||
* @param objId 水整点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsReportPointWaterByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 批量删除水整点数据
|
||||
*
|
||||
* @param objIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsReportPointWaterByObjIds(Long[] objIds);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.os.ems.report.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.os.ems.report.domain.EmsReportPointDnb;
|
||||
|
||||
/**
|
||||
* 电整点数据Service接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IEmsReportPointDnbService {
|
||||
/**
|
||||
* 查询电整点数据
|
||||
*
|
||||
* @param objId 电整点数据主键
|
||||
* @return 电整点数据
|
||||
*/
|
||||
public EmsReportPointDnb selectEmsReportPointDnbByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询电整点数据列表
|
||||
*
|
||||
* @param emsReportPointDnb 电整点数据
|
||||
* @return 电整点数据集合
|
||||
*/
|
||||
public List<EmsReportPointDnb> selectEmsReportPointDnbList(EmsReportPointDnb emsReportPointDnb);
|
||||
|
||||
/**
|
||||
* 新增电整点数据
|
||||
*
|
||||
* @param emsReportPointDnb 电整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmsReportPointDnb(EmsReportPointDnb emsReportPointDnb);
|
||||
|
||||
/**
|
||||
* 修改电整点数据
|
||||
*
|
||||
* @param emsReportPointDnb 电整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmsReportPointDnb(EmsReportPointDnb emsReportPointDnb);
|
||||
|
||||
/**
|
||||
* 批量删除电整点数据
|
||||
*
|
||||
* @param objIds 需要删除的电整点数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsReportPointDnbByObjIds(Long[] objIds);
|
||||
|
||||
/**
|
||||
* 删除电整点数据信息
|
||||
*
|
||||
* @param objId 电整点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsReportPointDnbByObjId(Long objId);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.os.ems.report.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.os.ems.report.domain.EmsReportPointWater;
|
||||
|
||||
/**
|
||||
* 水整点数据Service接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
public interface IEmsReportPointWaterService {
|
||||
/**
|
||||
* 查询水整点数据
|
||||
*
|
||||
* @param objId 水整点数据主键
|
||||
* @return 水整点数据
|
||||
*/
|
||||
public EmsReportPointWater selectEmsReportPointWaterByObjId(Long objId);
|
||||
|
||||
/**
|
||||
* 查询水整点数据列表
|
||||
*
|
||||
* @param emsReportPointWater 水整点数据
|
||||
* @return 水整点数据集合
|
||||
*/
|
||||
public List<EmsReportPointWater> selectEmsReportPointWaterList(EmsReportPointWater emsReportPointWater);
|
||||
|
||||
/**
|
||||
* 新增水整点数据
|
||||
*
|
||||
* @param emsReportPointWater 水整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmsReportPointWater(EmsReportPointWater emsReportPointWater);
|
||||
|
||||
/**
|
||||
* 修改水整点数据
|
||||
*
|
||||
* @param emsReportPointWater 水整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEmsReportPointWater(EmsReportPointWater emsReportPointWater);
|
||||
|
||||
/**
|
||||
* 批量删除水整点数据
|
||||
*
|
||||
* @param objIds 需要删除的水整点数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsReportPointWaterByObjIds(Long[] objIds);
|
||||
|
||||
/**
|
||||
* 删除水整点数据信息
|
||||
*
|
||||
* @param objId 水整点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEmsReportPointWaterByObjId(Long objId);
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
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.EmsReportPointDnbMapper;
|
||||
import com.os.ems.report.domain.EmsReportPointDnb;
|
||||
import com.os.ems.report.service.IEmsReportPointDnbService;
|
||||
|
||||
/**
|
||||
* 电整点数据Service业务层处理
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@Service
|
||||
public class EmsReportPointDnbServiceImpl implements IEmsReportPointDnbService {
|
||||
@Autowired
|
||||
private EmsReportPointDnbMapper emsReportPointDnbMapper;
|
||||
|
||||
/**
|
||||
* 查询电整点数据
|
||||
*
|
||||
* @param objId 电整点数据主键
|
||||
* @return 电整点数据
|
||||
*/
|
||||
@Override
|
||||
public EmsReportPointDnb selectEmsReportPointDnbByObjId(Long objId) {
|
||||
return emsReportPointDnbMapper.selectEmsReportPointDnbByObjId(objId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询电整点数据列表
|
||||
*
|
||||
* @param emsReportPointDnb 电整点数据
|
||||
* @return 电整点数据
|
||||
*/
|
||||
@Override
|
||||
public List<EmsReportPointDnb> selectEmsReportPointDnbList(EmsReportPointDnb emsReportPointDnb) {
|
||||
return emsReportPointDnbMapper.selectEmsReportPointDnbList(emsReportPointDnb);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增电整点数据
|
||||
*
|
||||
* @param emsReportPointDnb 电整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmsReportPointDnb(EmsReportPointDnb emsReportPointDnb) {
|
||||
emsReportPointDnb.setCreateTime(DateUtils.getNowDate());
|
||||
return emsReportPointDnbMapper.insertEmsReportPointDnb(emsReportPointDnb);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改电整点数据
|
||||
*
|
||||
* @param emsReportPointDnb 电整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmsReportPointDnb(EmsReportPointDnb emsReportPointDnb) {
|
||||
emsReportPointDnb.setUpdateTime(DateUtils.getNowDate());
|
||||
return emsReportPointDnbMapper.updateEmsReportPointDnb(emsReportPointDnb);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除电整点数据
|
||||
*
|
||||
* @param objIds 需要删除的电整点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmsReportPointDnbByObjIds(Long[] objIds) {
|
||||
return emsReportPointDnbMapper.deleteEmsReportPointDnbByObjIds(objIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除电整点数据信息
|
||||
*
|
||||
* @param objId 电整点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmsReportPointDnbByObjId(Long objId) {
|
||||
return emsReportPointDnbMapper.deleteEmsReportPointDnbByObjId(objId);
|
||||
}
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
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.EmsReportPointWaterMapper;
|
||||
import com.os.ems.report.domain.EmsReportPointWater;
|
||||
import com.os.ems.report.service.IEmsReportPointWaterService;
|
||||
|
||||
/**
|
||||
* 水整点数据Service业务层处理
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-05-22
|
||||
*/
|
||||
@Service
|
||||
public class EmsReportPointWaterServiceImpl implements IEmsReportPointWaterService {
|
||||
@Autowired
|
||||
private EmsReportPointWaterMapper emsReportPointWaterMapper;
|
||||
|
||||
/**
|
||||
* 查询水整点数据
|
||||
*
|
||||
* @param objId 水整点数据主键
|
||||
* @return 水整点数据
|
||||
*/
|
||||
@Override
|
||||
public EmsReportPointWater selectEmsReportPointWaterByObjId(Long objId) {
|
||||
return emsReportPointWaterMapper.selectEmsReportPointWaterByObjId(objId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询水整点数据列表
|
||||
*
|
||||
* @param emsReportPointWater 水整点数据
|
||||
* @return 水整点数据
|
||||
*/
|
||||
@Override
|
||||
public List<EmsReportPointWater> selectEmsReportPointWaterList(EmsReportPointWater emsReportPointWater) {
|
||||
return emsReportPointWaterMapper.selectEmsReportPointWaterList(emsReportPointWater);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增水整点数据
|
||||
*
|
||||
* @param emsReportPointWater 水整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmsReportPointWater(EmsReportPointWater emsReportPointWater) {
|
||||
emsReportPointWater.setCreateTime(DateUtils.getNowDate());
|
||||
return emsReportPointWaterMapper.insertEmsReportPointWater(emsReportPointWater);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改水整点数据
|
||||
*
|
||||
* @param emsReportPointWater 水整点数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateEmsReportPointWater(EmsReportPointWater emsReportPointWater) {
|
||||
emsReportPointWater.setUpdateTime(DateUtils.getNowDate());
|
||||
return emsReportPointWaterMapper.updateEmsReportPointWater(emsReportPointWater);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除水整点数据
|
||||
*
|
||||
* @param objIds 需要删除的水整点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmsReportPointWaterByObjIds(Long[] objIds) {
|
||||
return emsReportPointWaterMapper.deleteEmsReportPointWaterByObjIds(objIds);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除水整点数据信息
|
||||
*
|
||||
* @param objId 水整点数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteEmsReportPointWaterByObjId(Long objId) {
|
||||
return emsReportPointWaterMapper.deleteEmsReportPointWaterByObjId(objId);
|
||||
}
|
||||
}
|
@ -0,0 +1,121 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.os.ems.report.mapper.EmsReportPointDnbMapper">
|
||||
|
||||
<resultMap type="EmsReportPointDnb" id="EmsReportPointDnbResult">
|
||||
<result property="objId" column="obj_id"/>
|
||||
<result property="monitorCode" column="monitor_code"/>
|
||||
<result property="monitorName" column="monitor_name"/>
|
||||
<result property="instrumentValue" column="instrument_value"/>
|
||||
<result property="expend" column="expend"/>
|
||||
<result property="recordTime" column="record_time"/>
|
||||
<result property="beginTime" column="begin_time"/>
|
||||
<result property="endTime" column="end_time"/>
|
||||
<result property="updateFlag" column="update_flag"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmsReportPointDnbVo">
|
||||
select erpd.obj_id,
|
||||
erpd.monitor_code,
|
||||
ebmi.monitor_name,
|
||||
erpd.instrument_value,
|
||||
erpd.expend,
|
||||
erpd.record_time,
|
||||
erpd.begin_time,
|
||||
erpd.end_time,
|
||||
erpd.update_flag,
|
||||
erpd.create_by,
|
||||
erpd.create_time,
|
||||
erpd.update_by,
|
||||
erpd.update_time
|
||||
from ems_report_point_dnb erpd
|
||||
left join ems_base_monitor_info ebmi on erpd.monitor_code = ebmi.monitor_code
|
||||
</sql>
|
||||
|
||||
<select id="selectEmsReportPointDnbList" parameterType="EmsReportPointDnb" resultMap="EmsReportPointDnbResult">
|
||||
<include refid="selectEmsReportPointDnbVo"/>
|
||||
<where>
|
||||
<if test="monitorCode != null and monitorCode != ''">and erpd.monitor_code = #{monitorCode}</if>
|
||||
<if test="instrumentValue != null ">and erpd.instrument_value = #{instrumentValue}</if>
|
||||
<if test="expend != null ">and erpd.expend = #{expend}</if>
|
||||
<if test="recordTime != null ">and erpd.record_time = #{recordTime}</if>
|
||||
<if test="params.beginBeginTime != null and params.beginBeginTime != '' and params.endBeginTime != null and params.endBeginTime != ''">
|
||||
and erpd.begin_time between #{params.beginBeginTime} and #{params.endBeginTime}
|
||||
</if>
|
||||
<if test="endTime != null ">and erpd.end_time = #{endTime}</if>
|
||||
<if test="updateFlag != null and updateFlag != ''">and erpd.update_flag = #{updateFlag}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectEmsReportPointDnbByObjId" parameterType="Long" resultMap="EmsReportPointDnbResult">
|
||||
<include refid="selectEmsReportPointDnbVo"/>
|
||||
where erpd.obj_id = #{objId}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmsReportPointDnb" parameterType="EmsReportPointDnb" useGeneratedKeys="true" keyProperty="objId">
|
||||
insert into ems_report_point_dnb
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="monitorCode != null">monitor_code,</if>
|
||||
<if test="instrumentValue != null">instrument_value,</if>
|
||||
<if test="expend != null">expend,</if>
|
||||
<if test="recordTime != null">record_time,</if>
|
||||
<if test="beginTime != null">begin_time,</if>
|
||||
<if test="endTime != null">end_time,</if>
|
||||
<if test="updateFlag != null">update_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="monitorCode != null">#{monitorCode},</if>
|
||||
<if test="instrumentValue != null">#{instrumentValue},</if>
|
||||
<if test="expend != null">#{expend},</if>
|
||||
<if test="recordTime != null">#{recordTime},</if>
|
||||
<if test="beginTime != null">#{beginTime},</if>
|
||||
<if test="endTime != null">#{endTime},</if>
|
||||
<if test="updateFlag != null">#{updateFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmsReportPointDnb" parameterType="EmsReportPointDnb">
|
||||
update ems_report_point_dnb
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="monitorCode != null">monitor_code = #{monitorCode},</if>
|
||||
<if test="instrumentValue != null">instrument_value = #{instrumentValue},</if>
|
||||
<if test="expend != null">expend = #{expend},</if>
|
||||
<if test="recordTime != null">record_time = #{recordTime},</if>
|
||||
<if test="beginTime != null">begin_time = #{beginTime},</if>
|
||||
<if test="endTime != null">end_time = #{endTime},</if>
|
||||
<if test="updateFlag != null">update_flag = #{updateFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where obj_id = #{objId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmsReportPointDnbByObjId" parameterType="Long">
|
||||
delete
|
||||
from ems_report_point_dnb
|
||||
where obj_id = #{objId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmsReportPointDnbByObjIds" parameterType="String">
|
||||
delete from ems_report_point_dnb where obj_id in
|
||||
<foreach item="objId" collection="array" open="(" separator="," close=")">
|
||||
#{objId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,123 @@
|
||||
<?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.os.ems.report.mapper.EmsReportPointWaterMapper">
|
||||
|
||||
<resultMap type="EmsReportPointWater" id="EmsReportPointWaterResult">
|
||||
<result property="objId" column="obj_id"/>
|
||||
<result property="monitorCode" column="monitor_code"/>
|
||||
<result property="monitorName" column="monitor_name"/>
|
||||
<result property="instrumentValue" column="instrument_value"/>
|
||||
<result property="expend" column="expend"/>
|
||||
<result property="recordTime" column="record_time"/>
|
||||
<result property="beginTime" column="begin_time"/>
|
||||
<result property="endTime" column="end_time"/>
|
||||
<result property="updateFlag" column="update_flag"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmsReportPointWaterVo">
|
||||
select erpw.obj_id,
|
||||
erpw.monitor_code,
|
||||
ebmi.monitor_name,
|
||||
erpw.instrument_value,
|
||||
erpw.expend,
|
||||
erpw.record_time,
|
||||
erpw.begin_time,
|
||||
erpw.end_time,
|
||||
erpw.update_flag,
|
||||
erpw.create_by,
|
||||
erpw.create_time,
|
||||
erpw.update_by,
|
||||
erpw.update_time
|
||||
from ems_report_point_water erpw
|
||||
left join ems_base_monitor_info ebmi on erpw.monitor_code = ebmi.monitor_code
|
||||
</sql>
|
||||
|
||||
<select id="selectEmsReportPointWaterList" parameterType="EmsReportPointWater"
|
||||
resultMap="EmsReportPointWaterResult">
|
||||
<include refid="selectEmsReportPointWaterVo"/>
|
||||
<where>
|
||||
<if test="monitorCode != null and monitorCode != ''">and erpw.monitor_code = #{monitorCode}</if>
|
||||
<if test="instrumentValue != null ">and erpw.instrument_value = #{instrumentValue}</if>
|
||||
<if test="expend != null ">and erpw.expend = #{expend}</if>
|
||||
<if test="recordTime != null ">and erpw.record_time = #{recordTime}</if>
|
||||
<if test="params.beginBeginTime != null and params.beginBeginTime != '' and params.endBeginTime != null and params.endBeginTime != ''">
|
||||
and erpw.begin_time between #{params.beginBeginTime} and #{params.endBeginTime}
|
||||
</if>
|
||||
<if test="endTime != null ">and erpw.end_time = #{endTime}</if>
|
||||
<if test="updateFlag != null and updateFlag != ''">and erpw.update_flag = #{updateFlag}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectEmsReportPointWaterByObjId" parameterType="Long" resultMap="EmsReportPointWaterResult">
|
||||
<include refid="selectEmsReportPointWaterVo"/>
|
||||
where erpw.obj_id = #{objId}
|
||||
</select>
|
||||
|
||||
<insert id="insertEmsReportPointWater" parameterType="EmsReportPointWater" useGeneratedKeys="true"
|
||||
keyProperty="objId">
|
||||
insert into ems_report_point_water
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="monitorCode != null">monitor_code,</if>
|
||||
<if test="instrumentValue != null">instrument_value,</if>
|
||||
<if test="expend != null">expend,</if>
|
||||
<if test="recordTime != null">record_time,</if>
|
||||
<if test="beginTime != null">begin_time,</if>
|
||||
<if test="endTime != null">end_time,</if>
|
||||
<if test="updateFlag != null">update_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="monitorCode != null">#{monitorCode},</if>
|
||||
<if test="instrumentValue != null">#{instrumentValue},</if>
|
||||
<if test="expend != null">#{expend},</if>
|
||||
<if test="recordTime != null">#{recordTime},</if>
|
||||
<if test="beginTime != null">#{beginTime},</if>
|
||||
<if test="endTime != null">#{endTime},</if>
|
||||
<if test="updateFlag != null">#{updateFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmsReportPointWater" parameterType="EmsReportPointWater">
|
||||
update ems_report_point_water
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="monitorCode != null">monitor_code = #{monitorCode},</if>
|
||||
<if test="instrumentValue != null">instrument_value = #{instrumentValue},</if>
|
||||
<if test="expend != null">expend = #{expend},</if>
|
||||
<if test="recordTime != null">record_time = #{recordTime},</if>
|
||||
<if test="beginTime != null">begin_time = #{beginTime},</if>
|
||||
<if test="endTime != null">end_time = #{endTime},</if>
|
||||
<if test="updateFlag != null">update_flag = #{updateFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where obj_id = #{objId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEmsReportPointWaterByObjId" parameterType="Long">
|
||||
delete
|
||||
from ems_report_point_water
|
||||
where obj_id = #{objId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmsReportPointWaterByObjIds" parameterType="String">
|
||||
delete from ems_report_point_water where obj_id in
|
||||
<foreach item="objId" collection="array" open="(" separator="," close=")">
|
||||
#{objId}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Loading…
Reference in New Issue