change - ems电手动补录维护

master
yinq 1 day ago
parent 0f6755e862
commit dba810ac57

@ -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));
}
/**

@ -49,7 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and record_dnb_instant.record_time between #{params.beginRecordTime} and #{params.endRecordTime}
</if>
<if test="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''">
and record_dnb_instant.collect_time between #{beginTime} and #{endTime}
and record_dnb_instant.collect_time between #{params.beginTime} and #{params.endTime}
</if>
<if test="monitorSubset != null and monitorSubset != ''">
and (record_dnb_instant.monitor_id = #{monitorSubset} OR record_dnb_instant.monitor_id IN

@ -37,11 +37,11 @@ export function updateUser(data) {
}
// 删除用户
export function delUser(data) {
export function delUser(userIds) {
return request({
url: '/ems/record/dnbInstant/remove',
method: 'post',
data:data
url: '/ems/record/dnbInstant/remove/' + userIds,
method: 'get',
// data:data
// data: qs.stringify(data),
// contentType:'application/x-www-form-urlencoded',
})

@ -692,7 +692,7 @@ export default {
.confirm("确定删除该条电实时数据信息吗?")
.then(function () {
console.log("userIds", userIds);
return delUser({ ids: userIds });
return delUser(userIds);
})
.then(() => {
this.getList();

Loading…
Cancel
Save