|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
package com.glxp.api.controller.trace;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import cn.hutool.core.lang.UUID;
|
|
|
|
|
import cn.hutool.core.util.IdUtil;
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
@ -27,7 +26,6 @@ import com.glxp.api.service.basic.BasicUdiRelService;
|
|
|
|
|
import com.glxp.api.service.sup.UserCompanyService;
|
|
|
|
|
import com.glxp.api.service.system.SystemParamConfigService;
|
|
|
|
|
import com.glxp.api.service.trace.*;
|
|
|
|
|
import com.glxp.api.util.DateUtil;
|
|
|
|
|
import com.glxp.api.util.GennerOrderUtils;
|
|
|
|
|
import com.glxp.api.util.udi.FilterUdiUtils;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
@ -46,9 +44,7 @@ import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Api(tags = "UDI追溯相关接口")
|
|
|
|
@ -59,13 +55,9 @@ import java.util.Map;
|
|
|
|
|
public class UdiTraceController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
TraceProductDetailService traceProductDetailService;
|
|
|
|
|
@Resource
|
|
|
|
|
BasicUdiRelService basicUdiRelService;
|
|
|
|
|
@Resource
|
|
|
|
|
GennerOrderUtils gennerOrderUtils;
|
|
|
|
|
@Resource
|
|
|
|
|
TraceTaskNoticeService traceTaskNoticeService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
@ -88,7 +80,7 @@ public class UdiTraceController extends BaseController {
|
|
|
|
|
private final RabbitTemplate rabbitTemplate;
|
|
|
|
|
|
|
|
|
|
@ApiIgnore
|
|
|
|
|
@ApiOperation(value = "消息推送接口",response = BaseResponse.class)
|
|
|
|
|
@ApiOperation(value = "消息推送接口", response = BaseResponse.class)
|
|
|
|
|
@GetMapping("/udi/trace/source/sendUDI")
|
|
|
|
|
public BaseResponse sendUdi(@RequestBody TraceRecordRequest traceRecordRequest) {
|
|
|
|
|
String messageJson = JSON.toJSONString(traceRecordRequest);
|
|
|
|
@ -106,14 +98,13 @@ public class UdiTraceController extends BaseController {
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 源头追溯查询
|
|
|
|
|
*
|
|
|
|
|
* @param traceRecordRequest
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation(value = "源头追溯查询",response = TraceOrderEntity.class)
|
|
|
|
|
@ApiOperation(value = "源头追溯查询", response = TraceOrderEntity.class)
|
|
|
|
|
@AuthRuleAnnotation("udi/trace/source/search")
|
|
|
|
|
@GetMapping("udi/trace/source/search")
|
|
|
|
|
public BaseResponse createTrace(TraceRecordRequest traceRecordRequest) {
|
|
|
|
@ -214,7 +205,7 @@ public class UdiTraceController extends BaseController {
|
|
|
|
|
* @param traceRecordRequest
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation(value = "现场检查查询",response = TraceOrderEntity.class)
|
|
|
|
|
@ApiOperation(value = "现场检查查询", response = TraceOrderEntity.class)
|
|
|
|
|
@AuthRuleAnnotation("udi/trace/scene/search")
|
|
|
|
|
@GetMapping("udi/trace/scene/search")
|
|
|
|
|
public BaseResponse sceneTrace(TraceRecordRequest traceRecordRequest) {
|
|
|
|
@ -309,7 +300,7 @@ public class UdiTraceController extends BaseController {
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Transactional
|
|
|
|
|
@ApiOperation(value = "客户端根据任务上传出入库单据",response = BaseResponse.class)
|
|
|
|
|
@ApiOperation(value = "客户端根据任务上传出入库单据", response = BaseResponse.class)
|
|
|
|
|
@AuthRuleAnnotation("udi/trace/order/upload")
|
|
|
|
|
@PostMapping("udi/trace/order/upload")
|
|
|
|
|
public BaseResponse uploadOrder(@RequestBody TraceOrderUploadRequest traceOrderUploadRequest, BindingResult bindingResult) {
|
|
|
|
@ -347,7 +338,7 @@ public class UdiTraceController extends BaseController {
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@Transactional
|
|
|
|
|
@ApiOperation(value = "客户端根据任务上传生产关联关系信息",response = BaseResponse.class)
|
|
|
|
|
@ApiOperation(value = "客户端根据任务上传生产关联关系信息", response = BaseResponse.class)
|
|
|
|
|
@AuthRuleAnnotation("udi/trace/manuOrder/upload")
|
|
|
|
|
@PostMapping("udi/trace/manuOrder/upload")
|
|
|
|
|
public BaseResponse uploadManuOrder(@RequestBody TraceManuOrderUploadRequest traceManuOrderUploadRequest, BindingResult bindingResult) {
|
|
|
|
|