var licensePlate = msg.payload.data.list[0].licencePlate;
var startTime = new Array();
var endTime = new Array();
var sumTime = new Array();
var latitude = new Array();
var longitude = new Array();
var parkName = new Array();
var truckSpaceName = new Array();
var orderCreatedTime = new Array();
var shouldMoney = new Array();
var payStatus = new Array();
var totalMoney= msg.payload.data.totalMoney/100;
var billcount = msg.payload.data.list.length;
var msgs = [];
for (var j = 0; j < billcount; j++) {
msgs.push ({
payload: {
// licensePlate: licensePlate,
startTime: msg.payload.data.list[j].startTime,
endTime: msg.payload.data.list[j].endTime,
sumTime: msg.payload.data.list[j].sumTime,
latitude: msg.payload.data.list[j].latitude,
longitude: msg.payload.data.list[j].longitude,
parkName: msg.payload.data.list[j].parkName,
truckSpaceName: msg.payload.data.list[j].truckSpaceName,
orderCreatedTime: msg.payload.data.list[j].orderCreatedTime,
shouldMoney: msg.payload.data.list[j].shouldMoney/100,
payStatus: msg.payload.data.list[j].payStatus,
totalMoney: totalMoney,
billcount: billcount
}
});
}
return [msgs];