feat(material): 添加同步查询功能

- 实现了 syncSearch 接口用于根据图纸编号列表查询材料信息
- 添加了接口文档注释说明参数和功能
- 使用 LambdaQuery 查询数据库中的材料记录
- 返回成功响应并封装为 ApiResult 格式
This commit is contained in:
曹鹏飞 2026-02-28 14:59:29 +08:00
parent 2c323af7ed
commit 14b63082c1
1 changed files with 13 additions and 0 deletions

View File

@ -125,6 +125,19 @@ public class MaterialController extends BaseController {
);
}
/**
* 同步-查询
* @param materialNos 图纸编号列表
*/
@PostMapping("syncSearch")
public ApiResult<List<WmsShipmentMaterial>> syncSearch(@RequestBody @NotEmpty List<String> materialNos) {
return ApiResult.success(
shipmentMaterialService.lambdaQuery()
.in(WmsShipmentMaterial::getNo, materialNos)
.list()
);
}
/**
* 同步-保存
*/