| | |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | |
| | | @Autowired |
| | | private LocDetlService locDetlService; |
| | | |
| | | @GetMapping("/getIpConfig") |
| | | public R getIpConfig(HttpServletRequest request) { |
| | | HashMap<String, String> map = new HashMap<>(); |
| | | for (LedSlave slave : slaveProperties.getLed()) { |
| | | if (slave.getIp().equals(request.getRemoteAddr())) { |
| | | |
| | | map.put("ledIp","10.10.10.200"); |
| | | map.put("ledPort","8080"); |
| | | map.put("ledUrl","wcs"); |
| | | map.put("ledId", String.valueOf(slave.getStaArr().get(0))); |
| | | |
| | | break; |
| | | } |
| | | } |
| | | return R.ok(map); |
| | | } |
| | | |
| | | @GetMapping(value = "/locDetl/pda/statisticalModel") |
| | | public R statisticalModel() { |
| | | EntityWrapper<LocDetl> locDetlEntityWrapper = new EntityWrapper<>(); |