| | |
| | | |
| | | import com.stylefeng.guns.modular.system.service.IDriverService; |
| | | import com.stylefeng.guns.modular.system.service.IOrderService; |
| | | import com.stylefeng.guns.modular.system.service.ISettlementRecordService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.HashSet; |
| | | import java.util.Set; |
| | | import java.util.TimeZone; |
| | | |
| | | |
| | | /** |
| | |
| | | @Autowired |
| | | private JGPushUtil jgPushUtil; |
| | | |
| | | @Autowired |
| | | private ISettlementRecordService settlementRecordService; |
| | | |
| | | public Set<Integer> driverIds = new HashSet<>();//存储需要提醒司机预约单的司机id |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MMM-dd"); |
| | | System.err.println(sdf.format(new Date())); |
| | | } |
| | | |
| | | |
| | | /** |
| | |
| | | try { |
| | | //生成当天的司机活动 |
| | | driverService.addTodayActivity(); |
| | | //处理所有司机待结算数据 |
| | | settlementRecordService.taskSettlement(); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |