|  | @@ -1120,4 +1120,66 @@ public class YpDictService {
 | 
	
		
			
				|  |  |          return ResultVoUtil.success(resultMap);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * @Description 更新高警示药品标志
 | 
	
		
			
				|  |  | +     * @Author hsh
 | 
	
		
			
				|  |  | +     * @param code 药品编码 serial 序号 flag 高警示药品标志
 | 
	
		
			
				|  |  | +     * @return map
 | 
	
		
			
				|  |  | +     * @Date 2024/9/2 16:32
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  | +    public ResultVo<Map<String, Object>> updateYpHighWarning(String code, String serial, String flag){
 | 
	
		
			
				|  |  | +        if(StringUtil.isBlank(code)) {
 | 
	
		
			
				|  |  | +            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有找到药品编码,请检查!");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        YpZdDict yp = dao.selectYpDictByCode(code, serial);
 | 
	
		
			
				|  |  | +        if(null == yp){
 | 
	
		
			
				|  |  | +            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "药品编码(" + code + ")的药品账页字典信息不存在,请检查!");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        Map<String, Object> resultMap = new HashMap<>();
 | 
	
		
			
				|  |  | +        try{
 | 
	
		
			
				|  |  | +            int num = dao.updateYpHighWarningByCode(code, flag);
 | 
	
		
			
				|  |  | +            if(num == 0){
 | 
	
		
			
				|  |  | +                return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "更新高警示药品标志失败!");
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            resultMap.put("cg", "更新高警示药品标志成功!");
 | 
	
		
			
				|  |  | +            return ResultVoUtil.success(resultMap);
 | 
	
		
			
				|  |  | +        } catch(Exception e){
 | 
	
		
			
				|  |  | +            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "更新高警示药品标志失败!");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * @Description 更新国家组织药品集中采购中标药品标志
 | 
	
		
			
				|  |  | +     * @Author hsh
 | 
	
		
			
				|  |  | +     * @param code 药品编码 serial 序号 flag 国家组织药品集中采购中标药品标志
 | 
	
		
			
				|  |  | +     * @return map
 | 
	
		
			
				|  |  | +     * @Date 2024/9/2 17:15
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  | +    public ResultVo<Map<String, Object>> updateYpWinningBidder(String code, String serial, String flag){
 | 
	
		
			
				|  |  | +        if(StringUtil.isBlank(code)) {
 | 
	
		
			
				|  |  | +            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "没有找到药品编码,请检查!");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        YpZdDict yp = dao.selectYpDictByCode(code, serial);
 | 
	
		
			
				|  |  | +        if(null == yp){
 | 
	
		
			
				|  |  | +            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "药品编码(" + code + ")的药品账页字典信息不存在,请检查!");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        Map<String, Object> resultMap = new HashMap<>();
 | 
	
		
			
				|  |  | +        try{
 | 
	
		
			
				|  |  | +            int num = dao.updateYpWinningBidderByCode(code, flag);
 | 
	
		
			
				|  |  | +            if(num == 0){
 | 
	
		
			
				|  |  | +                return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "更新国家组织药品集中采购中标药品标志失败!");
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            resultMap.put("cg", "更新国家组织药品集中采购中标药品标志成功!");
 | 
	
		
			
				|  |  | +            return ResultVoUtil.success(resultMap);
 | 
	
		
			
				|  |  | +        } catch(Exception e){
 | 
	
		
			
				|  |  | +            return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "更新国家组织药品集中采购中标药品标志失败!");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  }
 |