|
@@ -2,7 +2,6 @@ package com.rongwei.bscommon.system.service.impl;
|
|
|
|
|
|
import com.rongwei.bscommon.system.service.DrugService;
|
|
import com.rongwei.bscommon.system.service.DrugService;
|
|
import com.rongwei.bsentity.domain.QhseDrugManageDetailDo;
|
|
import com.rongwei.bsentity.domain.QhseDrugManageDetailDo;
|
|
-import com.rongwei.bsentity.domain.QhseDrugManageUseDetailDo;
|
|
|
|
import com.rongwei.rwcommon.base.R;
|
|
import com.rongwei.rwcommon.base.R;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -37,9 +36,9 @@ public class DrugServiceImpl implements DrugService {
|
|
}
|
|
}
|
|
List<String> drugIds = qhseDrugManageUseDetailDos.stream().map(QhseDrugManageDetailDo::getDrugmanageid).collect(Collectors.toList());
|
|
List<String> drugIds = qhseDrugManageUseDetailDos.stream().map(QhseDrugManageDetailDo::getDrugmanageid).collect(Collectors.toList());
|
|
// 库存数量更新
|
|
// 库存数量更新
|
|
- qhseDrugManageService.getBaseMapper().updateTotalPriceAndNum(drugIds);
|
|
|
|
|
|
+ qhseDrugManageService.getBaseMapper().updateTotalPriceAndNumByIds(drugIds);
|
|
// 更新预警状态
|
|
// 更新预警状态
|
|
- qhseDrugManageDetailService.getBaseMapper().updateWarningState(ids);
|
|
|
|
|
|
+ qhseDrugManageDetailService.getBaseMapper().updateWarningStateByIds(ids);
|
|
return R.ok();
|
|
return R.ok();
|
|
}
|
|
}
|
|
}
|
|
}
|