ScheduleController.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. package com.zhongzheng.controller.schedule;
  2. import com.zhongzheng.common.core.controller.BaseController;
  3. import com.zhongzheng.common.core.domain.AjaxResult;
  4. import com.zhongzheng.framework.web.service.AsyncService;
  5. import com.zhongzheng.framework.web.service.WxLoginService;
  6. import com.zhongzheng.modules.exam.bo.ExamApplyQueryBo;
  7. import com.zhongzheng.modules.polyv.service.IPolyvLiveService;
  8. import com.zhongzheng.modules.schedule.service.IScheduleService;
  9. import com.zhongzheng.modules.sdk.service.ITopNuoMplatformLogService;
  10. import com.zhongzheng.modules.top.order.service.ITopOrderRecNoteService;
  11. import com.zhongzheng.modules.user.bo.UserQueryBo;
  12. import com.zhongzheng.modules.user.bo.UserWxFollowQueryBo;
  13. import com.zhongzheng.modules.wx.bo.WxLoginBody;
  14. import io.swagger.annotations.Api;
  15. import io.swagger.annotations.ApiOperation;
  16. import lombok.RequiredArgsConstructor;
  17. import org.springframework.beans.factory.annotation.Autowired;
  18. import org.springframework.web.bind.annotation.GetMapping;
  19. import org.springframework.web.bind.annotation.RequestMapping;
  20. import org.springframework.web.bind.annotation.RestController;
  21. import java.text.ParseException;
  22. import java.util.Arrays;
  23. import java.util.List;
  24. import java.util.Map;
  25. /**
  26. * 定时任务
  27. *
  28. * @author ruoyi
  29. * @date 2021-11-10
  30. */
  31. @Api(value = "定时任务", tags = {"定时任务管理"})
  32. @RequiredArgsConstructor(onConstructor_ = @Autowired)
  33. @RestController
  34. @RequestMapping("/sys/common")
  35. public class ScheduleController extends BaseController {
  36. private final ITopNuoMplatformLogService iTopNuoMplatformLogService;
  37. private final ITopOrderRecNoteService iTopOrderRecNoteService;
  38. private final IScheduleService iScheduleService;
  39. @ApiOperation("发票开票结果更新")
  40. @GetMapping("/distributionRebate")
  41. public AjaxResult distributionRebate(UserQueryBo bo){
  42. iTopNuoMplatformLogService.updateByBatch();
  43. return AjaxResult.success();
  44. }
  45. @ApiOperation("重开发票开票")
  46. @GetMapping("/reOpenMplatform")
  47. public AjaxResult reOpenMplatform(){
  48. iTopNuoMplatformLogService.reOpenMplatform();
  49. return AjaxResult.success();
  50. }
  51. @ApiOperation("催款提醒")
  52. @GetMapping("/recTimeNoteBatchPush")
  53. public AjaxResult recTimeNoteBatchPush(){
  54. iTopOrderRecNoteService.timeNoteBatchPush();
  55. return AjaxResult.success();
  56. }
  57. @ApiOperation("应收应付机构分成月度账单")
  58. @GetMapping("/makeDivideMonthBill")
  59. public AjaxResult makeDivideMonthBill(){
  60. iScheduleService.makeDivideMonthBill();
  61. return AjaxResult.success();
  62. }
  63. @ApiOperation("应收应付机构佣金月度账单")
  64. @GetMapping("/makeDivideBrokerageMonthBill")
  65. public AjaxResult makeDivideBrokerageMonthBill(){
  66. iScheduleService.makeDivideBrokerageMonthBill();
  67. return AjaxResult.success();
  68. }
  69. @ApiOperation("应收应付业务员提成月度账单")
  70. @GetMapping("/makeDivideSellerMonthBill")
  71. public AjaxResult makeDivideSellerMonthBill(){
  72. iScheduleService.makeDivideSellerMonthBill();
  73. return AjaxResult.success();
  74. }
  75. }