Commit 9e0f1611 by 111-PC\111

[+]代码规范

1 parent 3731de6d
......@@ -8,6 +8,7 @@ import cn.com.glsx.consumer.entity.DeviceVo;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
......@@ -22,10 +23,10 @@ import java.util.List;
@Service
public class DeviceEventService {
@Resource
@Autowired
private InfoService infoService;
@Resource
@Autowired
private DeviceService deviceService;
/**
......
......@@ -5,6 +5,7 @@ import cn.com.glsx.consumer.entity.DeviceVo;
import cn.com.glsx.consumer.utils.HttpUtil;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
......@@ -19,7 +20,7 @@ import java.util.HashMap;
@Slf4j
public class DeviceService {
@Resource
@Autowired
private SceneClient sceneClient;
@Value("${getDeviceNameUrl}")
......
......@@ -25,9 +25,9 @@ import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
......@@ -41,25 +41,25 @@ import java.util.stream.Collectors;
@Slf4j
public class InfoService {
@Resource
@Autowired
private SmartDevideStatusMapper smartDevideStatusMapper;
@Resource
@Autowired
private SmartSceneDataMapper smartSceneDataMapper;
@Resource
@Autowired
private DayInfoMapper dayInfoMapper;
@Resource
@Autowired
private ConditionStrategy conditionStrategy;
@Resource
@Autowired
private SceneClient sceneClient;
@Resource
@Autowired
private RedisService redisService;
@Resource
@Autowired
private DeviceService deviceService;
/**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!