Commit 9e0f1611 by 111-PC\111

[+]代码规范

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