修改部件入库名称,返回Id
This commit is contained in:
parent
4d37f2b8d4
commit
65d550ff2b
@ -864,7 +864,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
|
||||
QueryWrapper query = QueryWrapper.create();
|
||||
switch (orderType){
|
||||
case "1":
|
||||
EbikeBikeInfo ebikeBikeInfo = ebikeBikeInfoMapper.selectOneById(ebikeBikeOrder.getOrderId());
|
||||
EbikeBikeInfo ebikeBikeInfo = ebikeBikeInfoMapper.selectOneById(ebikeBikeOrder.getBikeId());
|
||||
modifyMaintenanceStatus(ebikeBikeInfo.getBikeCode());
|
||||
break;
|
||||
case "2":
|
||||
|
||||
@ -25,9 +25,9 @@ public class EbikeComponentController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/componentInventoryEnterbound")
|
||||
public JsonResult<?> ecuStorageSave(@RequestBody ReqComponentEnterRecordDto params) {
|
||||
public JsonResult<?> componentInventoryEnterbound(@RequestBody ReqComponentEnterRecordDto params) {
|
||||
|
||||
return ebikeComponentService.ecuStorageSave(params);
|
||||
return ebikeComponentService.componentInventoryEnterbound(params);
|
||||
}
|
||||
/**
|
||||
* 设备部件入库作废 (通用
|
||||
|
||||
@ -19,7 +19,7 @@ public interface EbikeComponentService {
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
JsonResult<?> ecuStorageSave(ReqComponentEnterRecordDto params);
|
||||
JsonResult<?> componentInventoryEnterbound(ReqComponentEnterRecordDto params);
|
||||
|
||||
/**
|
||||
* 设备部件作废接口 (通用
|
||||
|
||||
@ -68,7 +68,7 @@ public class EbikeComponentServiceImpl implements EbikeComponentService {
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public JsonResult<?> ecuStorageSave(ReqComponentEnterRecordDto params) {
|
||||
public JsonResult<?> componentInventoryEnterbound(ReqComponentEnterRecordDto params) {
|
||||
Integer stockInType = params.getStockInType();
|
||||
String userId = getStaffId(); // 获取当前操作用户ID
|
||||
Long orgId = getOrgId(); // 获取当前操作用户所在组织ID
|
||||
@ -105,7 +105,7 @@ public class EbikeComponentServiceImpl implements EbikeComponentService {
|
||||
updateInventoryCount(ebikeComponentTypeInfo, orgId,enterQuantity,1);
|
||||
}
|
||||
}
|
||||
return JsonResult.success("成功");
|
||||
return JsonResult.success(componentEnterRecordId);
|
||||
}
|
||||
/*
|
||||
获取用户Id
|
||||
@ -436,7 +436,7 @@ public class EbikeComponentServiceImpl implements EbikeComponentService {
|
||||
updateInventoryCount(ebikeComponentTypeInfo, orgId,enterQuantity,2);
|
||||
}
|
||||
}
|
||||
return JsonResult.success("成功");
|
||||
return JsonResult.success(componentOutRecordId);
|
||||
}
|
||||
private EbikeComponentOutRecords buildOutRecord(ReqComponentOutRecordDto params, EbikeComponentTypeInfo ebikeComponentTypeInfo,Integer stockInType,Long orgId) {
|
||||
EbikeComponentOutRecords ebikeComponentOutRecords = new EbikeComponentOutRecords();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user