重新生成dnld 消息
This commit is contained in:
+6
-5
@@ -8,7 +8,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.gzzn.omms.msgexchangeapi.entity.Cminmsg;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.schd.dnld.DnldMsg;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.schd.dnld.DNLDMsg;
|
||||
import com.gzzn.omms.msgexchangeapi.entity.msg.schd.dnld.FLTR;
|
||||
import com.gzzn.omms.msgexchangeapi.msghandler.HandlerResult;
|
||||
import com.gzzn.omms.msgexchangeapi.msghandler.MsgHandlerDispatcher;
|
||||
@@ -31,14 +31,15 @@ public class FlightInfoServiceImpl implements IFlightInfoService {
|
||||
@Override
|
||||
public Boolean updateByDaySchd(Cminmsg cminmsg) {
|
||||
String clobMsg = cminmsg.getCminmsgsClobMsg();
|
||||
DnldMsg dnldMsg = exchangeService.xmlstrToObject(clobMsg, DnldMsg.class);
|
||||
DNLDMsg dnldMsg = exchangeService.xmlstrToObject(clobMsg, DNLDMsg.class);
|
||||
|
||||
this.removeAll();
|
||||
|
||||
//
|
||||
List<FLTR> lsFltr = dnldMsg
|
||||
.getSchd()
|
||||
.getFltr();
|
||||
.getSCHD()
|
||||
.getFLTRS();
|
||||
|
||||
for(FLTR fltr : lsFltr)
|
||||
{
|
||||
Boolean result = redisSet(fltr);
|
||||
@@ -95,7 +96,7 @@ public class FlightInfoServiceImpl implements IFlightInfoService {
|
||||
*/
|
||||
private boolean redisSet(FLTR fltr)
|
||||
{
|
||||
return redisService.set(redisKey + fltr.getFlid(), fltr);
|
||||
return redisService.set(redisKey + fltr.getFLID(), fltr);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user