You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.3 KiB
Java

package com.aucma.api.controller;
import com.aucma.report.service.IRecordElectricalInspectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;
/**
* @Author YinQ
* @create 2023-09-26 14:29
*/
@RestController
@RequestMapping("/webApi")
public class ElectricalInspectionController {
@Autowired
private IRecordElectricalInspectionService electricalInspectionService;
/**
* 解析电检数据接口
* @param paramMap
* @return
*/
@PostMapping("/electricalInspectionElectricalinspection")
public HashMap<String, String> getSAPMaterialData(@RequestBody Map paramMap) {
return electricalInspectionService.analysisElectricalInspectionData(paramMap);
}
/**
* 解析电检数据接口NEW
* @param paramMap
* @return
*/
@PostMapping("/Electricalinspection")
public HashMap<String, String> electricalInspection(@RequestBody Map paramMap) {
return electricalInspectionService.analysisElectricalInspectionData(paramMap);
}
}