@@ -89,8 +89,6 @@ public class CommonServiceImpl implements ICommonService {
@Resource
private ISupplierService supplierService ;
< < < < < < < HEAD
= = = = = = =
@Resource
private IDocInventoryItemStaticService iDocInventoryItemStaticService ;
@@ -100,7 +98,6 @@ public class CommonServiceImpl implements ICommonService {
@Resource
private IDeviceDispenseService deviceDispenseService ;
> > > > > > > v1 . 3
/**
* 获取药房列表
*
@@ -119,7 +116,6 @@ public class CommonServiceImpl implements ICommonService {
locationDtoList . add ( locationDto ) ;
}
return locationDtoList ;
}
@@ -267,20 +263,20 @@ public class CommonServiceImpl implements ICommonService {
*/
@Override
public R < ? > getInventoryItemList ( InventoryItemParam inventoryItemParam , String searchKey , Integer pageNo ,
Integer pageSize ) {
Integer pageSize ) {
Integer purchaseFlag = inventoryItemParam . getPurchaseFlag ( ) ;
inventoryItemParam . setPurchaseFlag ( null ) ;
// 构建查询条件
QueryWrapper < InventoryItemParam > queryWrapper = HisQueryUtils . buildQueryWrapper ( inventoryItemParam , searchKey ,
new HashSet < > ( Arrays . asList ( CommonConstants . FieldName . Name , CommonConstants . FieldName . PyStr ,
CommonConstants . FieldName . WbStr ) ) ,
null ) ;
new HashSet < > ( Arrays . asList ( CommonConstants . FieldName . Name , CommonConstants . FieldName . PyStr ,
CommonConstants . FieldName . WbStr ) ) ,
null ) ;
// 查询库存项目信息
IPage < InventoryItemDto > inventoryItems = commonAppMapper . selectInventoryItemList ( new Page < > ( pageNo , pageSize ) ,
CommonConstants . TableName . MED_MEDICATION_DEFINITION , CommonConstants . TableName . ADM_DEVICE_DEFINITION ,
ItemType . MEDICINE . getValue ( ) , ItemType . DEVICE . getValue ( ) , purchaseFlag , ConditionCode . PURCHASE . getCode ( ) ,
PublicationStatus . RETIRED . getValue ( ) , queryWrapper ) ;
CommonConstants . TableName . MED_MEDICATION_DEFINITION , CommonConstants . TableName . ADM_DEVICE_DEFINITION ,
ItemType . MEDICINE . getValue ( ) , ItemType . DEVICE . getValue ( ) , purchaseFlag , ConditionCode . PURCHASE . getCode ( ) ,
PublicationStatus . RETIRED . getValue ( ) , queryWrapper ) ;
List < InventoryItemDto > inventoryItemDtoList = inventoryItems . getRecords ( ) ;
inventoryItemDtoList . forEach ( e - > {
// 项目类型
@@ -307,9 +303,9 @@ public class CommonServiceImpl implements ICommonService {
public R < ? > getInventoryItemInfo ( InventoryItemParam inventoryItemParam ) {
// 查询项目库存相关信息
List < LocationInventoryDto > locationInventoryDtoList = commonAppMapper . selectInventoryItemInfo (
inventoryItemParam . getOrgLocationId ( ) , CommonConstants . TableName . MED_MEDICATION_DEFINITION ,
CommonConstants . TableName . ADM_DEVICE_DEFINITION , inventoryItemParam . getObjLocationId ( ) ,
inventoryItemParam . getLotNumber ( ) , inventoryItemParam . getItemId ( ) , ConditionCode . PURCHASE . getCode ( ) ) ;
inventoryItemParam . getOrgLocationId ( ) , CommonConstants . TableName . MED_MEDICATION_DEFINITION ,
CommonConstants . TableName . ADM_DEVICE_DEFINITION , inventoryItemParam . getObjLocationId ( ) ,
inventoryItemParam . getLotNumber ( ) , inventoryItemParam . getItemId ( ) , ConditionCode . PURCHASE . getCode ( ) ) ;
// 医保编码和生产厂家校验
for ( LocationInventoryDto dto : locationInventoryDtoList ) {
@@ -353,7 +349,7 @@ public class CommonServiceImpl implements ICommonService {
if ( traceNo ! = null & & ! StringUtils . isEmpty ( traceNo ) ) {
// 数据源更改
InventoryItem inventoryItem = inventoryItemService . getOne (
new LambdaQueryWrapper < InventoryItem > ( ) . like ( InventoryItem : : getTraceNo , traceNo ) . last ( " LIMIT 1 " ) ) ;
new LambdaQueryWrapper < InventoryItem > ( ) . like ( InventoryItem : : getTraceNo , traceNo ) . last ( " LIMIT 1 " ) ) ;
if ( inventoryItem ! = null ) {
String itemId = inventoryItem . getItemId ( ) . toString ( ) ;
// TraceNoManage traceNoManage = commonAppMapper.getInfoByTraceNo("%" + traceNo + "%");
@@ -387,11 +383,11 @@ public class CommonServiceImpl implements ICommonService {
// 判断传入的是药品还是耗材,查询追溯码状态只有进的数据
if ( searchTraceNoParam . getItemType ( ) . equals ( ItemType . MEDICINE . getValue ( ) ) ) {
traceNoManageList = traceNoManageMapper . getItemTraceNoInfo (
CommonConstants . TableName . MED_MEDICATION_DEFINITION , searchTraceNoParam . getItemId ( ) ,
searchTraceNoParam . getLocationId ( ) , searchTraceNoParam . getLotNumber ( ) ) ;
CommonConstants . TableName . MED_MEDICATION_DEFINITION , searchTraceNoParam . getItemId ( ) ,
searchTraceNoParam . getLocationId ( ) , searchTraceNoParam . getLotNumber ( ) ) ;
} else if ( searchTraceNoParam . getItemType ( ) . equals ( ItemType . DEVICE . getValue ( ) ) ) {
traceNoManageList = traceNoManageMapper . getItemTraceNoInfo ( CommonConstants . TableName . ADM_DEVICE_DEFINITION ,
searchTraceNoParam . getItemId ( ) , searchTraceNoParam . getLocationId ( ) , searchTraceNoParam . getLotNumber ( ) ) ;
searchTraceNoParam . getItemId ( ) , searchTraceNoParam . getLocationId ( ) , searchTraceNoParam . getLotNumber ( ) ) ;
}
if ( traceNoManageList ! = null ) {
for ( TraceNoManage traceNoItem : traceNoManageList ) {
@@ -409,8 +405,8 @@ public class CommonServiceImpl implements ICommonService {
@Override
public R < ? > getContractMetadata ( ) {
// TODO: Contract表的基础数据维护还没做,具体不知道状态字段的取值是什么,先查询默认值为0的数据
List < Contract > ContractList =
contractMapper . selectList ( new LambdaQueryWrapper < Contract > ( ) . eq ( Contract : : getStatusEnum , 0 ) ) ;
List < Contract > ContractList
= contractMapper . selectList ( new LambdaQueryWrapper < Contract > ( ) . eq ( Contract : : getStatusEnum , 0 ) ) ;
// 复制同名字段并 return
return R . ok ( ContractList . stream ( ) . map ( contract - > {
ContractMetadata metadata = new ContractMetadata ( ) ;
@@ -447,8 +443,8 @@ public class CommonServiceImpl implements ICommonService {
Location location = locationService . getById ( locationId ) ;
// 查询所有子集位置
List < Location > childLocations = locationService . list ( new LambdaQueryWrapper < Location > ( )
. likeRight ( Location : : getBusNo , location . getBusNo ( ) ) . eq ( Location : : getFormEnum , locationForm )
. ne ( Location : : getStatusEnum , LocationStatus . INACTIVE . getValue ( ) ) ) ;
. likeRight ( Location : : getBusNo , location . getBusNo ( ) ) . eq ( Location : : getFormEnum , locationForm )
. ne ( Location : : getStatusEnum , LocationStatus . INACTIVE . getValue ( ) ) ) ;
List < LocationDto > locationDtoList = new ArrayList < > ( ) ;
LocationDto locationDto ;
for ( Location childLocation : childLocations ) {
@@ -470,8 +466,8 @@ public class CommonServiceImpl implements ICommonService {
// 查询当前登录者管理的病区
Long practitionerId = SecurityUtils . getLoginUser ( ) . getPractitionerId ( ) ;
List < Long > locationIds = practitionerRoleService . getLocationIdsByPractitionerId ( practitionerId ) ;
List < Location > locationList =
locationService . getLocationList ( locationIds , Collections . singletonList ( LocationStatus . ACTIVE . getValue ( ) ) ) ;
List < Location > locationList
= locationService . getLocationList ( locationIds , Collections . singletonList ( LocationStatus . ACTIVE . getValue ( ) ) ) ;
List < Location > wardList = new ArrayList < > ( ) ;
for ( Location ward : locationList ) {
if ( LocationForm . WARD . getValue ( ) . equals ( ward . getFormEnum ( ) ) ) {
@@ -517,12 +513,12 @@ public class CommonServiceImpl implements ICommonService {
advicePrintInfoDto = commonAppMapper . selectTreatmentPrintInfo ( requestIds ) ;
}
advicePrintInfoDto
. setAge ( advicePrintInfoDto . getBirthDate ( ) ! = null
? AgeCalculatorUtil . getAge ( advicePrintInfoDto . getBirthDate ( ) ) : " " )
. setGenderEnum_enumText (
EnumUtils . getInfoByValue ( AdministrativeGender . class , advicePrintInfoDto . getGenderEnum ( ) ) )
. setEncounterYbClass_enumText (
EnumUtils . getInfoByValue ( EncounterYbClass . class , advicePrintInfoDto . getEncounterYbClass ( ) ) ) ;
. setAge ( advicePrintInfoDto . getBirthDate ( ) ! = null
? AgeCalculatorUtil . getAge ( advicePrintInfoDto . getBirthDate ( ) ) : " " )
. setGenderEnum_enumText (
EnumUtils . getInfoByValue ( AdministrativeGender . class , advicePrintInfoDto . getGenderEnum ( ) ) )
. setEncounterYbClass_enumText (
EnumUtils . getInfoByValue ( EncounterYbClass . class , advicePrintInfoDto . getEncounterYbClass ( ) ) ) ;
if ( advicePrintInfoDto . getChrgitmLv ( ) ! = null ) {
advicePrintInfoDto
. setChrgitmLv_enumText ( EnumUtils . getInfoByValue ( InsuranceLevel . class , advicePrintInfoDto . getChrgitmLv ( ) ) ) ;
@@ -549,8 +545,8 @@ public class CommonServiceImpl implements ICommonService {
@Override
public R < ? > getSupplierList ( ) {
return R . ok ( supplierService . list ( new LambdaQueryWrapper < Supplier > ( ) . select ( Supplier : : getId , Supplier : : getName )
. eq ( Supplier : : getTypeEnum , SupplierType . SUPPLIER . getValue ( ) )
. eq ( Supplier : : getDeleteFlag , DelFlag . NO . getCode ( ) ) . eq ( Supplier : : getActiveFlag , Whether . YES . getValue ( ) ) ) ) ;
. eq ( Supplier : : getTypeEnum , SupplierType . SUPPLIER . getValue ( ) )
. eq ( Supplier : : getDeleteFlag , DelFlag . NO . getCode ( ) ) . eq ( Supplier : : getActiveFlag , Whether . YES . getValue ( ) ) ) ) ;
}
/**
@@ -563,8 +559,6 @@ public class CommonServiceImpl implements ICommonService {
return R . ok ( commonAppMapper . getActivityDefinition ( PublicationStatus . ACTIVE . getValue ( ) ) ) ;
}
< < < < < < < HEAD
= = = = = = =
/**
* 查询备份单号
*
@@ -572,16 +566,16 @@ public class CommonServiceImpl implements ICommonService {
*/
@Override
public R < ? > getBackupNoList ( ) {
List < DocInventoryItemStatic > docInventoryItemStaticList =
iDocInventoryItemStaticService . list ( new LambdaQueryWrapper < DocInventoryItemStatic > ( )
. eq ( DocInventoryItemStatic : : getDeleteFlag , DelFlag . NO . getCode ( ) )
. eq ( DocInventoryItemStatic : : getTenantId , SecurityUtils . getLoginUser ( ) . getTenantId ( ) ) ) ;
List < DocInventoryItemStatic > docInventoryItemStaticList
= iDocInventoryItemStaticService . list ( new LambdaQueryWrapper < DocInventoryItemStatic > ( )
. eq ( DocInventoryItemStatic : : getDeleteFlag , DelFlag . NO . getCode ( ) )
. eq ( DocInventoryItemStatic : : getTenantId , SecurityUtils . getLoginUser ( ) . getTenantId ( ) ) ) ;
if ( docInventoryItemStaticList . isEmpty ( ) ) {
return null ;
}
// 直接去重并按BusNo倒序排序
List < String > busNoList = docInventoryItemStaticList . stream ( ) . map ( DocInventoryItemStatic : : getBusNo ) . distinct ( ) // 去重
. sorted ( Comparator . reverseOrder ( ) ) . collect ( Collectors . toList ( ) ) ;
. sorted ( Comparator . reverseOrder ( ) ) . collect ( Collectors . toList ( ) ) ;
return R . ok ( busNoList ) ;
}
@@ -595,27 +589,27 @@ public class CommonServiceImpl implements ICommonService {
public R < ? > lotNumberMatch ( List < Long > encounterIdList ) {
// 查询患者待发放的药品信息
List < MedicationDispense > medicationDispenseList = medicationDispenseService
. list ( new LambdaQueryWrapper < MedicationDispense > ( ) . in ( MedicationDispense : : getEncounterId , encounterIdList )
. eq ( MedicationDispense : : getStatusEnum , DispenseStatus . PREPARATION . getValue ( ) )
. eq ( MedicationDispense : : getDeleteFlag , DelFlag . NO . getCode ( ) ) ) ;
. list ( new LambdaQueryWrapper < MedicationDispense > ( ) . in ( MedicationDispense : : getEncounterId , encounterIdList )
. eq ( MedicationDispense : : getStatusEnum , DispenseStatus . PREPARATION . getValue ( ) )
. eq ( MedicationDispense : : getDeleteFlag , DelFlag . NO . getCode ( ) ) ) ;
// 药品批号匹配
if ( medicationDispenseList ! = null & & ! medicationDispenseList . isEmpty ( ) ) {
// 获取待发放的药品id
List < Long > medicationIdList =
medicationDispenseList . stream ( ) . map ( MedicationDispense : : getMedicationId ) . distinct ( ) . toList ( ) ;
List < Long > medicationIdList
= medicationDispenseList . stream ( ) . map ( MedicationDispense : : getMedicationId ) . distinct ( ) . toList ( ) ;
// 获取发药药房
List < Long > locationIdList =
medicationDispenseList . stream ( ) . map ( MedicationDispense : : getLocationId ) . distinct ( ) . toList ( ) ;
List < Long > locationIdList
= medicationDispenseList . stream ( ) . map ( MedicationDispense : : getLocationId ) . distinct ( ) . toList ( ) ;
// 查询待发放药品的库存明细
List < InventoryDetailDto > inventoryDetailList = commonAppMapper
. selectMedicineInventoryDetail ( medicationIdList , locationIdList , PublicationStatus . ACTIVE . getValue ( ) ) ;
. selectMedicineInventoryDetail ( medicationIdList , locationIdList , PublicationStatus . ACTIVE . getValue ( ) ) ;
if ( inventoryDetailList = = null | | inventoryDetailList . isEmpty ( ) ) {
return R . fail ( " 发药单生成失败,请检查药品库存 " ) ;
}
// 将库存信息根据药品id和库房id进行分组
Map < String , List < InventoryDetailDto > > inventoryDetailMap = inventoryDetailList . stream ( )
. collect ( Collectors . groupingBy ( x - > x . getItemId ( ) + CommonConstants . Common . DASH + x . getLocationId ( ) ) ) ;
. collect ( Collectors . groupingBy ( x - > x . getItemId ( ) + CommonConstants . Common . DASH + x . getLocationId ( ) ) ) ;
// 按照效期排序(先进先出)
for ( List < InventoryDetailDto > inventoryList : inventoryDetailMap . values ( ) ) {
inventoryList . sort ( Comparator . comparing ( InventoryDetailDto : : getExpirationDate ) ) ;
@@ -628,7 +622,7 @@ public class CommonServiceImpl implements ICommonService {
currentIndex + + ;
// 根据发放药品和发放药房做key
String inventoryKey = medicationDispense . getMedicationId ( ) + CommonConstants . Common . DASH
+ medicationDispense . getLocationId ( ) ;
+ medicationDispense . getLocationId ( ) ;
// 查询对应的库存信息
if ( ! inventoryDetailMap . containsKey ( inventoryKey ) ) {
return R . fail ( " 药品库存不存在, 药品ID: " + medicationDispense . getMedicationId ( ) ) ;
@@ -653,8 +647,8 @@ public class CommonServiceImpl implements ICommonService {
}
// 获取库存剩余数量
BigDecimal remainingInventoryQuantity =
inventoryDetailDto . getInventoryQuantity ( ) . subtract ( dispenseQuantity ) ;
BigDecimal remainingInventoryQuantity
= inventoryDetailDto . getInventoryQuantity ( ) . subtract ( dispenseQuantity ) ;
// 如果剩余库存数量大于等于0, 则说明当前批号库存充足
if ( remainingInventoryQuantity . compareTo ( BigDecimal . ZERO ) > = 0 ) {
medicationDispense . setLotNumber ( inventoryDetailDto . getInventoryLotNumber ( ) ) ;
@@ -665,7 +659,7 @@ public class CommonServiceImpl implements ICommonService {
if ( ! inventoryDetailDto . getInventoryUnitCode ( ) . equals ( medicationDispense . getUnitCode ( ) ) ) {
// 发药数量取库存大单位数量
dispenseQuantity = inventoryDetailDto . getInventoryQuantity ( )
. divide ( inventoryDetailDto . getPartPercent ( ) , 0 , RoundingMode . HALF_UP ) ;
. divide ( inventoryDetailDto . getPartPercent ( ) , 0 , RoundingMode . HALF_UP ) ;
// 大单位数量不足则跳出循环
if ( dispenseQuantity . compareTo ( BigDecimal . ZERO ) = = 0 ) {
continue ;
@@ -680,10 +674,10 @@ public class CommonServiceImpl implements ICommonService {
BeanUtils . copyProperties ( medicationDispense , splitMedicationDispense ) ;
// 数量拆分
splitMedicationDispense . setQuantity ( medicationDispense . getQuantity ( ) . subtract ( dispenseQuantity ) )
// 重置id与批号
. setId ( null ) . setLotNumber ( null )
// 重新生成发药单编码
. setBusNo ( assignSeqUtil . getSeqByDay ( AssignSeqEnum . MEDICATION_DIS_NO . getPrefix ( ) , 4 ) ) ;
// 重置id与批号
. setId ( null ) . setLotNumber ( null )
// 重新生成发药单编码
. setBusNo ( assignSeqUtil . getSeqByDay ( AssignSeqEnum . MEDICATION_DIS_NO . getPrefix ( ) , 4 ) ) ;
// 将拆分出来的发药单添加到原发药单列表中
medicationDispenseList . add ( splitMedicationDispense ) ;
@@ -710,27 +704,27 @@ public class CommonServiceImpl implements ICommonService {
}
// 查询患者待发放的耗材信息
List < DeviceDispense > deviceDispenseList = deviceDispenseService
. list ( new LambdaQueryWrapper < DeviceDispense > ( ) . in ( DeviceDispense : : getEncounterId , encounterIdList )
. eq ( DeviceDispense : : getStatusEnum , DispenseStatus . PREPARATION . getValue ( ) )
. eq ( DeviceDispense : : getDeleteFlag , DelFlag . NO . getCode ( ) ) ) ;
. list ( new LambdaQueryWrapper < DeviceDispense > ( ) . in ( DeviceDispense : : getEncounterId , encounterIdList )
. eq ( DeviceDispense : : getStatusEnum , DispenseStatus . PREPARATION . getValue ( ) )
. eq ( DeviceDispense : : getDeleteFlag , DelFlag . NO . getCode ( ) ) ) ;
// 耗材批号匹配
if ( deviceDispenseList ! = null & & ! deviceDispenseList . isEmpty ( ) ) {
// 获取待发放的耗材id
List < Long > deviceIdList =
deviceDispenseList . stream ( ) . map ( DeviceDispense : : getDeviceDefId ) . distinct ( ) . toList ( ) ;
List < Long > deviceIdList
= deviceDispenseList . stream ( ) . map ( DeviceDispense : : getDeviceDefId ) . distinct ( ) . toList ( ) ;
// 获取发耗材房
List < Long > locationIdList =
deviceDispenseList . stream ( ) . map ( DeviceDispense : : getLocationId ) . distinct ( ) . toList ( ) ;
List < Long > locationIdList
= deviceDispenseList . stream ( ) . map ( DeviceDispense : : getLocationId ) . distinct ( ) . toList ( ) ;
// 查询待发放耗材的库存明细
List < InventoryDetailDto > inventoryDetailList = commonAppMapper . selectDeviceInventoryDetail ( deviceIdList ,
locationIdList , PublicationStatus . ACTIVE . getValue ( ) ) ;
locationIdList , PublicationStatus . ACTIVE . getValue ( ) ) ;
if ( inventoryDetailList = = null | | inventoryDetailList . isEmpty ( ) ) {
return R . fail ( " 发耗材单生成失败,请检查耗材库存 " ) ;
}
// 将库存信息根据耗材id和库房id进行分组
Map < String , List < InventoryDetailDto > > inventoryDetailMap = inventoryDetailList . stream ( )
. collect ( Collectors . groupingBy ( x - > x . getItemId ( ) + CommonConstants . Common . DASH + x . getLocationId ( ) ) ) ;
. collect ( Collectors . groupingBy ( x - > x . getItemId ( ) + CommonConstants . Common . DASH + x . getLocationId ( ) ) ) ;
// 按照效期排序(先进先出)
for ( List < InventoryDetailDto > inventoryList : inventoryDetailMap . values ( ) ) {
inventoryList . sort ( Comparator . comparing ( InventoryDetailDto : : getExpirationDate ) ) ;
@@ -742,8 +736,8 @@ public class CommonServiceImpl implements ICommonService {
DeviceDispense deviceDispense = deviceDispenseList . get ( currentIndex ) ;
currentIndex + + ;
// 根据发放耗材和发放耗材房做key
String inventoryKey =
deviceDispense . getDeviceDefId ( ) + CommonConstants . Common . DASH + deviceDispense . getLocationId ( ) ;
String inventoryKey
= deviceDispense . getDeviceDefId ( ) + CommonConstants . Common . DASH + deviceDispense . getLocationId ( ) ;
// 查询对应的库存信息
if ( ! inventoryDetailMap . containsKey ( inventoryKey ) ) {
return R . fail ( " 耗材库存不存在, 耗材ID: " + deviceDispense . getDeviceDefId ( ) ) ;
@@ -768,8 +762,8 @@ public class CommonServiceImpl implements ICommonService {
}
// 获取库存剩余数量
BigDecimal remainingInventoryQuantity =
inventoryDetailDto . getInventoryQuantity ( ) . subtract ( dispenseQuantity ) ;
BigDecimal remainingInventoryQuantity
= inventoryDetailDto . getInventoryQuantity ( ) . subtract ( dispenseQuantity ) ;
// 如果剩余库存数量大于等于0, 则说明当前批号库存充足
if ( remainingInventoryQuantity . compareTo ( BigDecimal . ZERO ) > = 0 ) {
deviceDispense . setLotNumber ( inventoryDetailDto . getInventoryLotNumber ( ) ) ;
@@ -780,7 +774,7 @@ public class CommonServiceImpl implements ICommonService {
if ( ! inventoryDetailDto . getInventoryUnitCode ( ) . equals ( deviceDispense . getUnitCode ( ) ) ) {
// 发耗材数量取库存大单位数量
dispenseQuantity = inventoryDetailDto . getInventoryQuantity ( )
. divide ( inventoryDetailDto . getPartPercent ( ) , 0 , RoundingMode . HALF_UP ) ;
. divide ( inventoryDetailDto . getPartPercent ( ) , 0 , RoundingMode . HALF_UP ) ;
// 大单位数量不足则跳出循环
if ( dispenseQuantity . compareTo ( BigDecimal . ZERO ) = = 0 ) {
continue ;
@@ -795,10 +789,10 @@ public class CommonServiceImpl implements ICommonService {
BeanUtils . copyProperties ( deviceDispense , splitDeviceDispense ) ;
// 数量拆分
splitDeviceDispense . setQuantity ( deviceDispense . getQuantity ( ) . subtract ( dispenseQuantity ) )
// 重置id与批号
. setId ( null ) . setLotNumber ( null )
// 重新生成发耗材单编码
. setBusNo ( assignSeqUtil . getSeqByDay ( AssignSeqEnum . DEVICE_DIS_NO . getPrefix ( ) , 4 ) ) ;
// 重置id与批号
. setId ( null ) . setLotNumber ( null )
// 重新生成发耗材单编码
. setBusNo ( assignSeqUtil . getSeqByDay ( AssignSeqEnum . DEVICE_DIS_NO . getPrefix ( ) , 4 ) ) ;
// 将拆分出来的发耗材单添加到原发耗材单列表中
deviceDispenseList . add ( splitDeviceDispense ) ;
@@ -825,5 +819,4 @@ public class CommonServiceImpl implements ICommonService {
}
return R . ok ( ) ;
}
> > > > > > > v1 . 3
}