|
|
@@ -1,10 +1,9 @@
|
|
|
package com.gubersail.u9data.controller;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.gubersail.u9data.dto.TeHbbTob;
|
|
|
import com.gubersail.u9data.service.TeHbbTobService;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
@@ -27,5 +26,11 @@ public class B2bController {
|
|
|
return teHbbTobService.getAll();
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("getMaterialDetail")
|
|
|
+ public TeHbbTob getMaterialDetail(@RequestParam("tireNumber") String tireNumber) {
|
|
|
+ return teHbbTobService.getOne(new LambdaQueryWrapper<TeHbbTob>()
|
|
|
+ .eq(TeHbbTob::getBarCode, tireNumber));
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|