|
|
|
@ -8,7 +8,6 @@ import com.hw.common.log.annotation.Log;
|
|
|
|
|
import com.hw.common.log.enums.BusinessType;
|
|
|
|
|
import com.hw.common.security.annotation.RequiresPermissions;
|
|
|
|
|
import com.hw.ems.record.domain.RecordDnbInstant;
|
|
|
|
|
import com.hw.ems.record.domain.vo.RecordDnbInstantDataVo;
|
|
|
|
|
import com.hw.ems.record.service.IRecordDnbInstantService;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
@ -17,7 +16,6 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 电实时数据Controller
|
|
|
|
@ -33,38 +31,38 @@ public class RecordDnbInstantController extends BaseController {
|
|
|
|
|
@Autowired
|
|
|
|
|
private IRecordDnbInstantService recordDnbInstantService;
|
|
|
|
|
|
|
|
|
|
@RequiresPermissions("record:dnbInstant:view")
|
|
|
|
|
@GetMapping()
|
|
|
|
|
public String dnbInstant()
|
|
|
|
|
{
|
|
|
|
|
return prefix + "/dnbInstant";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 点钞数据
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/dnbCountingData")
|
|
|
|
|
public String dnbCountingData()
|
|
|
|
|
{
|
|
|
|
|
return prefix + "/dnbCountingData";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/dnbHistoryData")
|
|
|
|
|
public String dnbHistoryData()
|
|
|
|
|
{
|
|
|
|
|
return prefix + "/dnbHistoryData";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 手动抄表
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/dnbMeterReading")
|
|
|
|
|
public String dnbMeterReading()
|
|
|
|
|
{
|
|
|
|
|
return prefix + "/dnbMeterReading";
|
|
|
|
|
}
|
|
|
|
|
// @RequiresPermissions("record:dnbInstant:view")
|
|
|
|
|
// @GetMapping()
|
|
|
|
|
// public String dnbInstant()
|
|
|
|
|
// {
|
|
|
|
|
// return prefix + "/dnbInstant";
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// /**
|
|
|
|
|
// * 点钞数据
|
|
|
|
|
// * @return
|
|
|
|
|
// */
|
|
|
|
|
// @GetMapping("/dnbCountingData")
|
|
|
|
|
// public String dnbCountingData()
|
|
|
|
|
// {
|
|
|
|
|
// return prefix + "/dnbCountingData";
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// @GetMapping("/dnbHistoryData")
|
|
|
|
|
// public String dnbHistoryData()
|
|
|
|
|
// {
|
|
|
|
|
// return prefix + "/dnbHistoryData";
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// /**
|
|
|
|
|
// * 手动抄表
|
|
|
|
|
// * @return
|
|
|
|
|
// */
|
|
|
|
|
// @GetMapping("/dnbMeterReading")
|
|
|
|
|
// public String dnbMeterReading()
|
|
|
|
|
// {
|
|
|
|
|
// return prefix + "/dnbMeterReading";
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询电实时数据列表
|
|
|
|
@ -118,14 +116,14 @@ public class RecordDnbInstantController extends BaseController {
|
|
|
|
|
util.exportExcel(response,list, "电实时数据数据");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增电实时数据
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping("/add")
|
|
|
|
|
public String add()
|
|
|
|
|
{
|
|
|
|
|
return prefix + "/add";
|
|
|
|
|
}
|
|
|
|
|
// /**
|
|
|
|
|
// * 新增电实时数据
|
|
|
|
|
// */
|
|
|
|
|
// @GetMapping("/add")
|
|
|
|
|
// public String add()
|
|
|
|
|
// {
|
|
|
|
|
// return prefix + "/add";
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增保存电实时数据
|
|
|
|
@ -134,7 +132,7 @@ public class RecordDnbInstantController extends BaseController {
|
|
|
|
|
@Log(title = "电实时数据", businessType = BusinessType.INSERT)
|
|
|
|
|
@PostMapping("/add")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public AjaxResult addSave(RecordDnbInstant recordDnbInstant)
|
|
|
|
|
public AjaxResult addSave(@RequestBody RecordDnbInstant recordDnbInstant)
|
|
|
|
|
{
|
|
|
|
|
return toAjax(recordDnbInstantService.insertRecordDnbInstant(recordDnbInstant));
|
|
|
|
|
}
|
|
|
|
@ -158,7 +156,7 @@ public class RecordDnbInstantController extends BaseController {
|
|
|
|
|
@Log(title = "电实时数据", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PostMapping("/edit")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public AjaxResult editSave(RecordDnbInstant recordDnbInstant)
|
|
|
|
|
public AjaxResult editSave(@RequestBody RecordDnbInstant recordDnbInstant)
|
|
|
|
|
{
|
|
|
|
|
return toAjax(recordDnbInstantService.updateRecordDnbInstant(recordDnbInstant));
|
|
|
|
|
}
|
|
|
|
@ -167,10 +165,11 @@ public class RecordDnbInstantController extends BaseController {
|
|
|
|
|
* 删除电实时数据
|
|
|
|
|
*/
|
|
|
|
|
@Log(title = "电实时数据", businessType = BusinessType.DELETE)
|
|
|
|
|
@GetMapping("/dnbRemove/{objids}")
|
|
|
|
|
public AjaxResult remove(@PathVariable Long[] objids)
|
|
|
|
|
@GetMapping("/remove/{ids}")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
|
|
|
{
|
|
|
|
|
return toAjax(recordDnbInstantService.deleteRecordDnbInstantByObjids(objids));
|
|
|
|
|
return success(recordDnbInstantService.deleteRecordDnbInstantByObjids(ids));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|