| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.Date; |
| | | |
| | | import java.util.HashMap; |
| | |
| | | for (AOrderStatus orderStatus : orderStatusList) { |
| | | int count = tbOrdersService.checkServiceOrdIDExists(orderStatus.getServiceOrdID()); |
| | | if (count > 0) { |
| | | log.info("服务订单ID存在:" + orderStatus.getServiceOrdID()); |
| | | // log.info("服务订单ID存在:" + orderStatus.getServiceOrdID()); |
| | | |
| | | TbOrders tbOrders = tbOrdersService.selectTbOrdersByServiceOrdID(orderStatus.getServiceOrdID()); |
| | | |
| | |
| | | |
| | | //如果车牌号不为空 |
| | | if(carLicense!=null && carLicense.length()>0){ |
| | | log.info("更新订单-车牌号关联表,【" + tbOrders.getOrderID() + "】车牌号:" + carLicense); |
| | | // log.info("更新订单-车牌号关联表,【" + tbOrders.getOrderID() + "】车牌号:" + carLicense); |
| | | |
| | | //查询是否存在关联记录 |
| | | TbVehicleOrder tbVehicleOrder = tbVehicleOrderService.selectTbVehicleOrderById(tbOrders.getOrderID()); |
| | |
| | | map.put("driverMobile",driverMobiles.toString()); |
| | | map.put("driverName", driverNames.toString()); |
| | | |
| | | //格式化更新时间 |
| | | try { |
| | | |
| | | // 2. 定义目标格式(24小时制 "HH") |
| | | DateTimeFormatter targetFormat = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); |
| | | String formattedTime = orderStatus.getUpdateTime().format(targetFormat); |
| | | map.put("updateTime", formattedTime); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | log.error("时间格式转化出错"); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | log.info("【监测】[" + tbOrders.getOrderID() + "]车牌号:" + carLicenseStr); |
| | | //打印map |
| | | log.info("【监测】[" + tbOrders.getOrderID() + "]回调请求参数:" + map); |