feat(api): 新增ERP产品管理功能

- 新增ErpProduct实体类,用于接收ERP产品信息
- 在IToErpService接口中增加创建车间入库单和其它出入库单的方法
- 在IToWmsService接口中增加接收、修改、作废物料的方法
- 实现ToErpServiceImpl中的callbackTransferBill方法,定时回调其他出入库单
- 实现ToWmsServiceImpl中对ErpProduct的接收、更新及作废操作
- 修改MydoJobServiceImpl逻辑,优化任务完成后的回调处理流程
- 更新ToErpApiController控制器,调整相关接口路径与实现方式
- 更新ToWmsApiController控制器,新增物料相关的RESTful接口
- 调整代码结构,引入必要的依赖并删除无用的导入包
- 修复部分注释和日志描述不准确的问题
This commit is contained in:
liuhanqing
2025-12-10 16:23:21 +08:00
parent fa1cf1565c
commit a072e6f862
8 changed files with 241 additions and 164 deletions

View File

@@ -28,34 +28,12 @@ public class ToErpApiController {
@Autowired
private IToErpService toErpService;
/**
* 接收物料信息
*/
@GetMapping("/receiveMaterial")
public AjaxResult receiveMaterial(@RequestBody BasProduct basProduct) {
return toErpService.receiveMaterial(basProduct);
}
/**
* 接收客户信息
*/
@GetMapping("/receiveCustomer")
public AjaxResult receiveCustomer(@RequestBody BasCustomer basProduct) {
return toErpService.receiveCustomer(basProduct);
}
/**
* 接收供应商信息
*/
@GetMapping("/receiveSupplier")
public AjaxResult receiveSupplier(@RequestBody BasSupplier basSupplier) {
return toErpService.receiveSupplier(basSupplier);
}
/**
* 生成调拨单
* 回传其他出入库单
*/
@Scheduled(fixedDelay = 1500)
public void saveTransferBill() {
toErpService.saveTransferBill();
public void callbackTransferBill() {
toErpService.callbackTransferBill();
}
}