Merge remote-tracking branch 'origin/dev_wkx_yutong_20260106' into dev
This commit is contained in:
+4
-1
@@ -53,7 +53,10 @@ public class MaterialCommandService {
|
|||||||
public void handle(UpdateMaterialCommand command) {
|
public void handle(UpdateMaterialCommand command) {
|
||||||
Material material = materialRepository.findById(command.getId())
|
Material material = materialRepository.findById(command.getId())
|
||||||
.orElseThrow(() -> new MaterialDomainException("物料不存在"));
|
.orElseThrow(() -> new MaterialDomainException("物料不存在"));
|
||||||
String shipper = userServiceFeignService.findUserNameByUserId(command.getOwnerId(),"物料模块-调用RPC错误");
|
String shipper = "";
|
||||||
|
if (command.getOwnerId() != null) {
|
||||||
|
shipper = userServiceFeignService.findUserNameByUserId(command.getOwnerId(),"物料模块-调用RPC错误");
|
||||||
|
}
|
||||||
material.update(command.getOwnerId(),shipper,
|
material.update(command.getOwnerId(),shipper,
|
||||||
command.getCategory(),
|
command.getCategory(),
|
||||||
command.getName(),
|
command.getName(),
|
||||||
|
|||||||
Reference in New Issue
Block a user