package com.aucma.api.controller;

import com.aucma.api.domain.dto.SAPPortDto;
import com.aucma.api.domain.dto.WERKSDto;
import com.aucma.base.domain.BaseMaterialInfo;
import com.aucma.common.core.domain.AjaxResult;
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.List;
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);
    }



}
