123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- package com.zhongzheng.controller.schedule;
- import com.zhongzheng.common.core.controller.BaseController;
- import com.zhongzheng.common.core.domain.AjaxResult;
- import com.zhongzheng.framework.web.service.AsyncService;
- import com.zhongzheng.framework.web.service.WxLoginService;
- import com.zhongzheng.modules.exam.bo.ExamApplyQueryBo;
- import com.zhongzheng.modules.polyv.service.IPolyvLiveService;
- import com.zhongzheng.modules.schedule.service.IScheduleService;
- import com.zhongzheng.modules.sdk.service.ITopNuoMplatformLogService;
- import com.zhongzheng.modules.top.order.service.ITopOrderRecNoteService;
- import com.zhongzheng.modules.user.bo.UserQueryBo;
- import com.zhongzheng.modules.user.bo.UserWxFollowQueryBo;
- import com.zhongzheng.modules.wx.bo.WxLoginBody;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import lombok.RequiredArgsConstructor;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- import java.text.ParseException;
- import java.util.Arrays;
- import java.util.List;
- import java.util.Map;
- /**
- * 定时任务
- *
- * @author ruoyi
- * @date 2021-11-10
- */
- @Api(value = "定时任务", tags = {"定时任务管理"})
- @RequiredArgsConstructor(onConstructor_ = @Autowired)
- @RestController
- @RequestMapping("/sys/common")
- public class ScheduleController extends BaseController {
- private final ITopNuoMplatformLogService iTopNuoMplatformLogService;
- private final ITopOrderRecNoteService iTopOrderRecNoteService;
- private final IScheduleService iScheduleService;
- @ApiOperation("发票开票结果更新")
- @GetMapping("/distributionRebate")
- public AjaxResult distributionRebate(UserQueryBo bo){
- iTopNuoMplatformLogService.updateByBatch();
- return AjaxResult.success();
- }
- @ApiOperation("重开发票开票")
- @GetMapping("/reOpenMplatform")
- public AjaxResult reOpenMplatform(){
- iTopNuoMplatformLogService.reOpenMplatform();
- return AjaxResult.success();
- }
- @ApiOperation("催款提醒")
- @GetMapping("/recTimeNoteBatchPush")
- public AjaxResult recTimeNoteBatchPush(){
- iTopOrderRecNoteService.timeNoteBatchPush();
- return AjaxResult.success();
- }
- @ApiOperation("应收应付机构分成月度账单")
- @GetMapping("/makeDivideMonthBill")
- public AjaxResult makeDivideMonthBill(){
- iScheduleService.makeDivideMonthBill();
- return AjaxResult.success();
- }
- @ApiOperation("应收应付机构佣金月度账单")
- @GetMapping("/makeDivideBrokerageMonthBill")
- public AjaxResult makeDivideBrokerageMonthBill(){
- iScheduleService.makeDivideBrokerageMonthBill();
- return AjaxResult.success();
- }
- @ApiOperation("应收应付业务员提成月度账单")
- @GetMapping("/makeDivideSellerMonthBill")
- public AjaxResult makeDivideSellerMonthBill(){
- iScheduleService.makeDivideSellerMonthBill();
- return AjaxResult.success();
- }
- }
|