|
@@ -233,5 +233,15 @@ public class TProductController {
|
|
.body(new ResultMessage().setCode(false).setData(list1).setMessage(""));
|
|
.body(new ResultMessage().setCode(false).setData(list1).setMessage(""));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "通过编号获取商品")
|
|
|
|
+ @GetMapping("/getProductByNo")
|
|
|
|
+ public ResponseModel<TProduct> getProductByNo(@RequestParam(value = "no")String no, @RequestParam(value = "equipmentId")String equipmentId){
|
|
|
|
+ LambdaQueryWrapper<TProduct> query = Wrappers.lambdaQuery();
|
|
|
|
+ query.eq(TProduct::getNo,no);
|
|
|
|
+ query.eq(TProduct::getEquipmentId,Long.valueOf(equipmentId));
|
|
|
|
+ TProduct tProduct = tProductService.getOne(query);
|
|
|
|
+ return R.ok(tProduct);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|