春风项目四线(合箱线、总装线)
wujian
2024-04-28 9bc5106810d7c0e6f27e904b584c9bbfb3725a19
jcdm-main/src/main/java/com/jcdm/main/sc/stationConf/controller/ScStationConfController.java
@@ -1,7 +1,11 @@
package com.jcdm.main.sc.stationConf.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.jcdm.main.util.IpInfoUtils;
import org.aspectj.weaver.loadtime.Aj;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -101,4 +105,13 @@
    {
        return toAjax(scStationConfService.deleteScStationConfByIds(ids));
    }
    /**
     * 查询ip
     */
    @GetMapping("/getIp")
    public AjaxResult getIp(HttpServletRequest request)
    {
        return AjaxResult.success(IpInfoUtils.getIpAddr(request));
    }
}