Compare commits

...

3 Commits

@ -9,12 +9,6 @@ import lombok.Data;
@ApiModel(value = "查询GPS对象", description = "查询GPS对象描述") @ApiModel(value = "查询GPS对象", description = "查询GPS对象描述")
public class TerminalGpsVo { public class TerminalGpsVo {
@ApiModelProperty(value = "装置编号", example = "123455")
private Integer termid;
@ApiModelProperty(value = "查询时间", example = "123455")
private DateTime queryTime;
@ApiModelProperty(value = "装置ID", example = "123455") @ApiModelProperty(value = "装置ID", example = "123455")
private String cmdId; private String cmdId;
} }

@ -120,8 +120,8 @@ public class TerminalGpsServiceImpl implements TerminalGpsService {
model.setUpdatetime(MyDateUtils.date(updatetime.longValue())); model.setUpdatetime(MyDateUtils.date(updatetime.longValue()));
BigInteger queryTime = MyDateUtils.TimeMillSecond2Second(vo.getQueryTime()); BigInteger queryTime = MyDateUtils.TimeMillSecond2Second(vo.getQueryTime());
hasNew = updatetime.compareTo(queryTime) < 0 ? false : true; hasNew = updatetime.compareTo(queryTime) < 0 ? false : true;
model.setHasNew(hasNew);
} }
model.setHasNew(hasNew);
if (null!=model) { if (null!=model) {
return Asserts.success(model); return Asserts.success(model);
} else { } else {

Loading…
Cancel
Save