|
@@ -17,6 +17,8 @@ import com.sqx.modules.exportExecl.service.ExportJobService;
|
|
|
import com.sqx.modules.order.dao.AppOrderDao;
|
|
import com.sqx.modules.order.dao.AppOrderDao;
|
|
|
import com.sqx.modules.pay.controller.query.CashOutQueryDTO;
|
|
import com.sqx.modules.pay.controller.query.CashOutQueryDTO;
|
|
|
import com.sqx.modules.pay.controller.query.WalletDetailQuery;
|
|
import com.sqx.modules.pay.controller.query.WalletDetailQuery;
|
|
|
|
|
+import com.sqx.modules.riderStation.entity.RiderStation;
|
|
|
|
|
+import com.sqx.modules.riderStation.service.RiderStationService;
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
@@ -46,11 +48,9 @@ import java.util.Date;
|
|
|
public class ExportExeclController {
|
|
public class ExportExeclController {
|
|
|
|
|
|
|
|
private final AppOrderDao appOrderDao;
|
|
private final AppOrderDao appOrderDao;
|
|
|
-
|
|
|
|
|
private final ExportJobService exportJobService;
|
|
private final ExportJobService exportJobService;
|
|
|
-
|
|
|
|
|
private final CommonInfoService commonInfoService;
|
|
private final CommonInfoService commonInfoService;
|
|
|
-
|
|
|
|
|
|
|
+ private final RiderStationService riderStationService;
|
|
|
private final SftpUtil sftpUtil;
|
|
private final SftpUtil sftpUtil;
|
|
|
|
|
|
|
|
@GetMapping("excelOrder")
|
|
@GetMapping("excelOrder")
|
|
@@ -266,7 +266,14 @@ public class ExportExeclController {
|
|
|
if(!StringUtils.hasText(queryDTO.getUserId())){
|
|
if(!StringUtils.hasText(queryDTO.getUserId())){
|
|
|
return Result.error("用户id不能为空");
|
|
return Result.error("用户id不能为空");
|
|
|
}
|
|
}
|
|
|
- ExportJob exportJob =this.buildExportJob("骑手排行.xlsx","rankList",queryDTO.getUserId(),queryDTO.toStrMessage(),queryDTO.toStrCode());
|
|
|
|
|
|
|
+ String strMessage=queryDTO.toStrMessage();
|
|
|
|
|
+ if(StringUtils.hasText(queryDTO.getRiderStationId())){
|
|
|
|
|
+ RiderStation riderStation=riderStationService.getById(queryDTO.getRiderStationId());
|
|
|
|
|
+ if(riderStation!=null){
|
|
|
|
|
+ strMessage=strMessage+"站点"+riderStation.getStationName();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ ExportJob exportJob =this.buildExportJob("骑手排行.xlsx","rankList",queryDTO.getUserId(),strMessage,queryDTO.toStrCode());
|
|
|
boolean a=exportJobService.save(exportJob);
|
|
boolean a=exportJobService.save(exportJob);
|
|
|
if (a){
|
|
if (a){
|
|
|
return Result.success("新增骑手排行导出计划成功");
|
|
return Result.success("新增骑手排行导出计划成功");
|