调整航班日计划获取
This commit is contained in:
@@ -26,7 +26,7 @@ public class CmoutmsgServiceImpl implements ICmoutmsgService {
|
||||
@Autowired
|
||||
private CmoutmsgDao cmoutmsgDao;
|
||||
|
||||
public Boolean sendSchdGetMsg(Date date)
|
||||
public Boolean sendSchdGetMsg(Date startDate,Date endDate)
|
||||
{
|
||||
//构造消息
|
||||
MSG rqfdMsg = new MSGBuilder().
|
||||
@@ -40,13 +40,15 @@ public class CmoutmsgServiceImpl implements ICmoutmsgService {
|
||||
.build();
|
||||
|
||||
RQFD rqfd = new RQFD();
|
||||
rqfd.setSTDB(
|
||||
DateTimeUtil.gtFormatStr(
|
||||
date,
|
||||
"ddMMMyyHHmm",
|
||||
Locale.ENGLISH)
|
||||
.toUpperCase()
|
||||
);
|
||||
if(null != startDate)
|
||||
{
|
||||
rqfd.setSTDB(getDateStr(startDate));
|
||||
}
|
||||
if(null != endDate)
|
||||
{
|
||||
rqfd.setSTDE(getDateStr(endDate));
|
||||
}
|
||||
|
||||
rqfdMsg.setRQFD(rqfd);
|
||||
|
||||
//发送消息到数据库
|
||||
@@ -59,4 +61,13 @@ public class CmoutmsgServiceImpl implements ICmoutmsgService {
|
||||
return rtCmoutmsg != null;
|
||||
}
|
||||
|
||||
|
||||
private String getDateStr(Date date)
|
||||
{
|
||||
return DateTimeUtil.gtFormatStr(
|
||||
date,
|
||||
"ddMMMyyHHmm",
|
||||
Locale.ENGLISH)
|
||||
.toUpperCase();
|
||||
}//end function
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user