|
@@ -81,12 +81,8 @@ public class EartagServiceImpl implements IEartagService {
|
|
|
lastAct = eartagData.getAct();
|
|
|
}
|
|
|
int nowActInt = Integer.parseInt(nowAct);
|
|
|
+ return nowActInt < lastAct ? nowActInt: nowActInt - lastAct;
|
|
|
|
|
|
- if (lastAct <nowActInt ){
|
|
|
- return nowActInt - lastAct;
|
|
|
- }else {
|
|
|
- return nowActInt;
|
|
|
- }
|
|
|
|
|
|
//读取hash
|
|
|
// Object actObj = redisTemplate.opsForHash().get(deviceCode, "act");
|