|
|
|
@ -1,7 +1,12 @@
|
|
|
|
|
package com.logpm.report.controller; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.EnumUtil; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
|
import com.logpm.factorydata.enums.BrandEnums; |
|
|
|
|
import com.logpm.factorydata.enums.NodeEnums; |
|
|
|
|
import com.logpm.factorydata.util.FactoryDataMessageSender; |
|
|
|
|
import com.logpm.factorydata.vo.NodePushMsg; |
|
|
|
|
import com.logpm.report.query.BillDetailsQuery; |
|
|
|
|
import com.logpm.report.query.BillLoadingTasksQuery; |
|
|
|
|
import com.logpm.report.service.IReportBillLoadingAsyncService; |
|
|
|
@ -12,13 +17,19 @@ import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
import java.util.Date; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 自提报表前端控制器 |
|
|
|
|
* |
|
|
|
|
* @Author zqb |
|
|
|
|
* @Date 2024/3/14 |
|
|
|
|
**/ |
|
|
|
@ -30,6 +41,25 @@ public class ReportBillLoadingController {
|
|
|
|
|
|
|
|
|
|
private IReportBillLoadingAsyncService reportBillLoadingAsyncService; |
|
|
|
|
|
|
|
|
|
private final FactoryDataMessageSender sender; |
|
|
|
|
|
|
|
|
|
@PostMapping("/sendMessage") |
|
|
|
|
@ApiOperation(value = "发送消息测试", notes = "发送消息测试") |
|
|
|
|
public R<String> tasksPage(@RequestBody Map map) { |
|
|
|
|
String node = (String) map.get("node"); |
|
|
|
|
NodeEnums nodeEnums = EnumUtil.fromString(NodeEnums.class, node); |
|
|
|
|
NodePushMsg build = NodePushMsg.builder() |
|
|
|
|
.node(nodeEnums) |
|
|
|
|
.brand(BrandEnums.ZB) |
|
|
|
|
.operatorTime(new Date()) |
|
|
|
|
.operator("test") |
|
|
|
|
.address("test") |
|
|
|
|
.content((List<Object>) map.get("content")) |
|
|
|
|
.build(); |
|
|
|
|
sender.sendNodeDataByBrand(build); |
|
|
|
|
return R.data("成功"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/tasks") |
|
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
|
@ApiOperation(value = "自提任务维度", notes = "自提任务维度") |
|
|
|
|