|
|
|
@ -13,6 +13,7 @@ import com.glxp.api.config.rabbit.TopicRabbitConfig;
|
|
|
|
|
import com.glxp.api.constant.Constant;
|
|
|
|
|
import com.glxp.api.controller.BaseController;
|
|
|
|
|
import com.glxp.api.entity.basic.UdiEntity;
|
|
|
|
|
import com.glxp.api.entity.stat.AnncmntProductEntity;
|
|
|
|
|
import com.glxp.api.entity.sup.UserCompanyEntity;
|
|
|
|
|
import com.glxp.api.entity.trace.*;
|
|
|
|
|
import com.glxp.api.req.basic.FilterUdiRelRequest;
|
|
|
|
@ -24,6 +25,7 @@ import com.glxp.api.res.basic.BasicUdiRelResponse;
|
|
|
|
|
import com.glxp.api.res.sup.UserCompanyResponse;
|
|
|
|
|
import com.glxp.api.res.trace.TraceSearchReponse;
|
|
|
|
|
import com.glxp.api.service.basic.BasicUdiRelService;
|
|
|
|
|
import com.glxp.api.service.stat.AnncmntProductService;
|
|
|
|
|
import com.glxp.api.service.sup.UserCompanyService;
|
|
|
|
|
import com.glxp.api.service.system.SystemParamConfigService;
|
|
|
|
|
import com.glxp.api.service.trace.*;
|
|
|
|
@ -297,6 +299,24 @@ public class UdiTraceController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
AnncmntProductService anncmntProductService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* UDI扫码校验不良信息库
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation(value = "UDI扫码校验不良信息库", response = TraceOrderEntity.class)
|
|
|
|
|
@GetMapping("udi/trace/badDb/search")
|
|
|
|
|
public BaseResponse badDbSearch(TraceRecordRequest traceRecordRequest) {
|
|
|
|
|
|
|
|
|
|
UdiEntity udiEntity = FilterUdiUtils.getUdi(traceRecordRequest.getUdiCode());
|
|
|
|
|
AnncmntProductEntity anncmntProductEntity = anncmntProductService.getOne(new QueryWrapper<AnncmntProductEntity>().eq("nameCode", udiEntity.getUdi()).last("limit 1"));
|
|
|
|
|
if (anncmntProductEntity != null) {
|
|
|
|
|
return ResultVOUtils.success(anncmntProductEntity);
|
|
|
|
|
}
|
|
|
|
|
return ResultVOUtils.error(500, "无异常!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// /**
|
|
|
|
|
// * 客户端根据任务上传出入库单据
|
|
|
|
|
// *
|
|
|
|
|