|
|
|
@ -23,7 +23,7 @@ import com.os.common.utils.poi.ExcelUtil;
|
|
|
|
|
import com.os.common.core.page.TableDataInfo;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 蒸汽实时数据Controller
|
|
|
|
|
* 蒸汽历史数据Controller
|
|
|
|
|
*
|
|
|
|
|
* @author Yinq
|
|
|
|
|
* @date 2024-05-22
|
|
|
|
@ -35,7 +35,7 @@ public class EmsRecordSteamInstantController extends BaseController {
|
|
|
|
|
private IEmsRecordSteamInstantService emsRecordSteamInstantService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询蒸汽实时数据列表
|
|
|
|
|
* 查询蒸汽历史数据列表
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('ems/record:recordSteamInstant:list')")
|
|
|
|
|
@GetMapping("/list")
|
|
|
|
@ -47,19 +47,19 @@ public class EmsRecordSteamInstantController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 导出蒸汽实时数据列表
|
|
|
|
|
* 导出蒸汽历史数据列表
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('ems/record:recordSteamInstant:export')")
|
|
|
|
|
@Log(title = "蒸汽实时数据", businessType = BusinessType.EXPORT)
|
|
|
|
|
@Log(title = "蒸汽历史数据", businessType = BusinessType.EXPORT)
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
public void export(HttpServletResponse response, EmsRecordSteamInstant emsRecordSteamInstant) {
|
|
|
|
|
List<EmsRecordSteamInstant> list = emsRecordSteamInstantService.selectEmsRecordSteamInstantList(emsRecordSteamInstant);
|
|
|
|
|
ExcelUtil<EmsRecordSteamInstant> util = new ExcelUtil<EmsRecordSteamInstant>(EmsRecordSteamInstant.class);
|
|
|
|
|
util.exportExcel(response, list, "蒸汽实时数据数据");
|
|
|
|
|
util.exportExcel(response, list, "蒸汽历史数据数据");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取蒸汽实时数据详细信息
|
|
|
|
|
* 获取蒸汽历史数据详细信息
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('ems/record:recordSteamInstant:query')")
|
|
|
|
|
@GetMapping(value = "/{objId}")
|
|
|
|
@ -68,10 +68,10 @@ public class EmsRecordSteamInstantController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增蒸汽实时数据
|
|
|
|
|
* 新增蒸汽历史数据
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('ems/record:recordSteamInstant:add')")
|
|
|
|
|
@Log(title = "蒸汽实时数据", businessType = BusinessType.INSERT)
|
|
|
|
|
@Log(title = "蒸汽历史数据", businessType = BusinessType.INSERT)
|
|
|
|
|
@PostMapping
|
|
|
|
|
public AjaxResult add(@RequestBody EmsRecordSteamInstant emsRecordSteamInstant) {
|
|
|
|
|
emsRecordSteamInstant.setCreateBy(getUsername());
|
|
|
|
@ -79,10 +79,10 @@ public class EmsRecordSteamInstantController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 修改蒸汽实时数据
|
|
|
|
|
* 修改蒸汽历史数据
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('ems/record:recordSteamInstant:edit')")
|
|
|
|
|
@Log(title = "蒸汽实时数据", businessType = BusinessType.UPDATE)
|
|
|
|
|
@Log(title = "蒸汽历史数据", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PutMapping
|
|
|
|
|
public AjaxResult edit(@RequestBody EmsRecordSteamInstant emsRecordSteamInstant) {
|
|
|
|
|
emsRecordSteamInstant.setUpdateBy(getUsername());
|
|
|
|
@ -90,24 +90,34 @@ public class EmsRecordSteamInstantController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 删除蒸汽实时数据
|
|
|
|
|
* 删除蒸汽历史数据
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('ems/record:recordSteamInstant:remove')")
|
|
|
|
|
@Log(title = "蒸汽实时数据", businessType = BusinessType.DELETE)
|
|
|
|
|
@Log(title = "蒸汽历史数据", businessType = BusinessType.DELETE)
|
|
|
|
|
@DeleteMapping("/{objIds}")
|
|
|
|
|
public AjaxResult remove(@PathVariable Long[] objIds) {
|
|
|
|
|
return toAjax(emsRecordSteamInstantService.deleteEmsRecordSteamInstantByObjIds(objIds));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询蒸汽实时数据
|
|
|
|
|
* 查询蒸汽历史数据曲线
|
|
|
|
|
* @param emsRecordSteamInstant
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('ems/record:recordSteamInstant:list')")
|
|
|
|
|
@GetMapping("/steamInstantList")
|
|
|
|
|
public AjaxResult steamInstantList(EmsRecordSteamInstant emsRecordSteamInstant) {
|
|
|
|
|
List<EmsRecordSteamInstant> list = emsRecordSteamInstantService
|
|
|
|
|
.selectEmsRecordSteamInstantList(emsRecordSteamInstant);
|
|
|
|
|
return success(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('ems/record:recordSteamInstant:list')")
|
|
|
|
|
@GetMapping("/latestSteamInstantList")
|
|
|
|
|
public AjaxResult latestSteamInstantList(EmsRecordSteamInstant emsRecordSteamInstant) {
|
|
|
|
|
List<EmsRecordSteamInstant> list = emsRecordSteamInstantService
|
|
|
|
|
.selectEmsRecordLatestSteamInstantList(emsRecordSteamInstant);
|
|
|
|
|
return success(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|