change - ems电手动补录维护

master
yinq 4 days 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.log.enums.BusinessType;
import com.hw.common.security.annotation.RequiresPermissions; import com.hw.common.security.annotation.RequiresPermissions;
import com.hw.ems.record.domain.RecordDnbInstant; import com.hw.ems.record.domain.RecordDnbInstant;
import com.hw.ems.record.domain.vo.RecordDnbInstantDataVo;
import com.hw.ems.record.service.IRecordDnbInstantService; import com.hw.ems.record.service.IRecordDnbInstantService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
@ -17,7 +16,6 @@ import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.util.List; import java.util.List;
import java.util.Map;
/** /**
* Controller * Controller
@ -33,38 +31,38 @@ public class RecordDnbInstantController extends BaseController {
@Autowired @Autowired
private IRecordDnbInstantService recordDnbInstantService; private IRecordDnbInstantService recordDnbInstantService;
@RequiresPermissions("record:dnbInstant:view") // @RequiresPermissions("record:dnbInstant:view")
@GetMapping() // @GetMapping()
public String dnbInstant() // public String dnbInstant()
{ // {
return prefix + "/dnbInstant"; // return prefix + "/dnbInstant";
} // }
//
/** // /**
* // * 点钞数据
* @return // * @return
*/ // */
@GetMapping("/dnbCountingData") // @GetMapping("/dnbCountingData")
public String dnbCountingData() // public String dnbCountingData()
{ // {
return prefix + "/dnbCountingData"; // return prefix + "/dnbCountingData";
} // }
//
@GetMapping("/dnbHistoryData") // @GetMapping("/dnbHistoryData")
public String dnbHistoryData() // public String dnbHistoryData()
{ // {
return prefix + "/dnbHistoryData"; // return prefix + "/dnbHistoryData";
} // }
//
/** // /**
* // * 手动抄表
* @return // * @return
*/ // */
@GetMapping("/dnbMeterReading") // @GetMapping("/dnbMeterReading")
public String dnbMeterReading() // public String dnbMeterReading()
{ // {
return prefix + "/dnbMeterReading"; // return prefix + "/dnbMeterReading";
} // }
/** /**
* *
@ -118,14 +116,14 @@ public class RecordDnbInstantController extends BaseController {
util.exportExcel(response,list, "电实时数据数据"); util.exportExcel(response,list, "电实时数据数据");
} }
/** // /**
* // * 新增电实时数据
*/ // */
@GetMapping("/add") // @GetMapping("/add")
public String add() // public String add()
{ // {
return prefix + "/add"; // return prefix + "/add";
} // }
/** /**
* *
@ -134,7 +132,7 @@ public class RecordDnbInstantController extends BaseController {
@Log(title = "电实时数据", businessType = BusinessType.INSERT) @Log(title = "电实时数据", businessType = BusinessType.INSERT)
@PostMapping("/add") @PostMapping("/add")
@ResponseBody @ResponseBody
public AjaxResult addSave(RecordDnbInstant recordDnbInstant) public AjaxResult addSave(@RequestBody RecordDnbInstant recordDnbInstant)
{ {
return toAjax(recordDnbInstantService.insertRecordDnbInstant(recordDnbInstant)); return toAjax(recordDnbInstantService.insertRecordDnbInstant(recordDnbInstant));
} }
@ -158,7 +156,7 @@ public class RecordDnbInstantController extends BaseController {
@Log(title = "电实时数据", businessType = BusinessType.UPDATE) @Log(title = "电实时数据", businessType = BusinessType.UPDATE)
@PostMapping("/edit") @PostMapping("/edit")
@ResponseBody @ResponseBody
public AjaxResult editSave(RecordDnbInstant recordDnbInstant) public AjaxResult editSave(@RequestBody RecordDnbInstant recordDnbInstant)
{ {
return toAjax(recordDnbInstantService.updateRecordDnbInstant(recordDnbInstant)); return toAjax(recordDnbInstantService.updateRecordDnbInstant(recordDnbInstant));
} }
@ -167,10 +165,11 @@ public class RecordDnbInstantController extends BaseController {
* *
*/ */
@Log(title = "电实时数据", businessType = BusinessType.DELETE) @Log(title = "电实时数据", businessType = BusinessType.DELETE)
@GetMapping("/dnbRemove/{objids}") @GetMapping("/remove/{ids}")
public AjaxResult remove(@PathVariable Long[] objids) @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} and record_dnb_instant.record_time between #{params.beginRecordTime} and #{params.endRecordTime}
</if> </if>
<if test="params.beginTime != null and params.beginTime != '' and params.endTime != null and params.endTime != ''"> <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>
<if test="monitorSubset != null and monitorSubset != ''"> <if test="monitorSubset != null and monitorSubset != ''">
and (record_dnb_instant.monitor_id = #{monitorSubset} OR record_dnb_instant.monitor_id IN 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({ return request({
url: '/ems/record/dnbInstant/remove', url: '/ems/record/dnbInstant/remove/' + userIds,
method: 'post', method: 'get',
data:data // data:data
// data: qs.stringify(data), // data: qs.stringify(data),
// contentType:'application/x-www-form-urlencoded', // contentType:'application/x-www-form-urlencoded',
}) })

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

Loading…
Cancel
Save