|
|
@ -505,6 +505,11 @@ public class UdiProductService extends ServiceImpl<UdiProductDao, UdiProductEnti
|
|
|
|
udiProductEntity1.setId(IdUtil.getSnowflakeNextId());
|
|
|
|
udiProductEntity1.setId(IdUtil.getSnowflakeNextId());
|
|
|
|
udiProductDao.insert(udiProductEntity1);
|
|
|
|
udiProductDao.insert(udiProductEntity1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (IntUtil.value(udiProductEntity1.getPackLevel()) == 1) {
|
|
|
|
|
|
|
|
calculateDistCount(udiProductEntity1, udiRelevanceEntity);
|
|
|
|
|
|
|
|
calculateUseCount(udiProductEntity1, udiRelevanceEntity);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
//必须先提交后才能保存
|
|
|
|
//必须先提交后才能保存
|
|
|
|
UdiProductEntity udiProductEntity1 = udiProductDao.findByNameCode(updateLevelDrugRequest.getNameCode());
|
|
|
|
UdiProductEntity udiProductEntity1 = udiProductDao.findByNameCode(updateLevelDrugRequest.getNameCode());
|
|
|
|