| | |
| | | import static com.moral.common.util.RedisUtil.hasKey;
|
| | | import static com.moral.common.util.ResourceUtil.getValue;
|
| | | import static com.moral.common.util.WebUtils.getParametersStartingWith;
|
| | | import static org.springframework.util.ObjectUtils.isEmpty;
|
| | |
|
| | | import java.io.IOException;
|
| | | import java.io.InputStreamReader;
|
| | |
| | | import com.alibaba.fastjson.JSON;
|
| | | import com.alibaba.fastjson.JSONReader;
|
| | | import com.alibaba.fastjson.TypeReference;
|
| | | import com.moral.common.exception.BusinessException;
|
| | | import com.moral.common.util.ValidateUtil;
|
| | | import com.moral.service.AccountService;
|
| | | import com.moral.service.DeviceService;
|
| | |
| | | */
|
| | | @GetMapping("sensor-standard")
|
| | | public Map<String, Object> getStandardBySensor(@RequestParam("macKey") String macKey) {
|
| | | ValidateUtil.notEmpty(macKey, "param.is.null");
|
| | | Map<String, Object> result = new HashMap<String, Object>();
|
| | | ValidateUtil.notEmpty(macKey, "参数不能为空!");
|
| | | result.put("standard", getValue(macKey + "-standard"));
|
| | | return result;
|
| | | }
|