|
@@ -8,6 +8,7 @@ import cn.hnthyy.thmz.mapper.his.yp.YpConfigMapper;
|
|
|
import cn.hnthyy.thmz.mapper.his.yp.YpOutDetlYfMapper;
|
|
|
import cn.hnthyy.thmz.service.his.yf.YfInventoryService;
|
|
|
import cn.hnthyy.thmz.vo.YpBaseYfVo;
|
|
|
+import cn.hutool.core.convert.Convert;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -39,13 +40,14 @@ public class YfInventoryServiceImpl implements YfInventoryService {
|
|
|
private YpConfigMapper ypConfigMapper;
|
|
|
|
|
|
@Override
|
|
|
- public List<YpBaseYfVo> queryYpInventoryData(String groupNo,String infusionFlag,String visibleFlag) {
|
|
|
+ public List<YpBaseYfVo> queryYpInventoryData(String groupNo,String infusionFlag,String visibleFlag,String drugText) {
|
|
|
List<YpBaseYfVo> ypBaseYfVos;
|
|
|
String drawNo = ypOutDetlYfMapper.selectInventoryDrawNo(groupNo);
|
|
|
+ drugText = Convert.toStr(drugText, "").toUpperCase();
|
|
|
if(StringUtils.isNotBlank(drawNo)){//当月已含有未审核盘点记录,查出修改
|
|
|
- ypBaseYfVos = ypOutDetlYfMapper.selectYpInventoryData(drawNo);
|
|
|
+ ypBaseYfVos = ypOutDetlYfMapper.selectYpInventoryData(drawNo, drugText);
|
|
|
}else{
|
|
|
- ypBaseYfVos = ypBaseYfMapper.selectYpInventoryData(groupNo, infusionFlag, visibleFlag);
|
|
|
+ ypBaseYfVos = ypBaseYfMapper.selectYpInventoryData(groupNo, infusionFlag, visibleFlag, drugText);
|
|
|
}
|
|
|
return ypBaseYfVos;
|
|
|
}
|