l3能源成本分摊(部分完成留存)
This commit is contained in:
@@ -2,11 +2,13 @@ package com.klp.ems.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Arrays;
|
||||
import java.io.IOException;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.constraints.*;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import com.klp.common.annotation.RepeatSubmit;
|
||||
import com.klp.common.annotation.Log;
|
||||
@@ -96,4 +98,21 @@ public class EmsMeterController extends BaseController {
|
||||
@PathVariable Long[] meterIds) {
|
||||
return toAjax(iEmsMeterService.deleteWithValidByIds(Arrays.asList(meterIds), true));
|
||||
}
|
||||
|
||||
/**
|
||||
* 下载设备导入模板
|
||||
*/
|
||||
@GetMapping("/template")
|
||||
public void downloadTemplate(HttpServletResponse response) {
|
||||
iEmsMeterService.downloadTemplate(response);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入设备
|
||||
*/
|
||||
@Log(title = "计量设备(阈值移至此处)", businessType = BusinessType.IMPORT)
|
||||
@PostMapping("/import")
|
||||
public R<Void> importMeters(@RequestParam("file") MultipartFile file) {
|
||||
return toAjax(iEmsMeterService.importMeters(file));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user