123123

--新增故障条件查询 start--
  IF (i_privatedynachar020 IS NOT NULL) THEN
     V_WHERESTR1 := V_WHERESTR1 || 'AND p.privatedynachar020 = '''||i_privatedynachar020||'''';
  END IF;
 
  IF (i_privatedynachar021 IS NOT NULL) THEN
     V_WHERESTR1 := V_WHERESTR1 || ' AND p.privatedynachar021  like ''%'||i_privatedynachar021||'%''';
  END IF;
 
  IF (i_privatedynachar023 IS NOT NULL) THEN
     V_WHERESTR1 := V_WHERESTR1 || 'AND p.privatedynachar023 = '''||i_privatedynachar023||'''';
  END IF;
 
  IF (i_privatedynachar024 IS NOT NULL) THEN
     V_WHERESTR1 := V_WHERESTR1 || 'AND p.privatedynachar024 = '''||i_privatedynachar024||'''';
  END IF;
 
  IF (i_privatedynachar028 IS NOT NULL) THEN
     V_WHERESTR1 := V_WHERESTR1 || 'AND p.privatedynachar028 = '''||i_privatedynachar028||'''';
  END IF;
 
  IF (i_privatedynachar034 IS NOT NULL) THEN
     V_WHERESTR1 := V_WHERESTR1 || 'AND p.privatedynachar034 = '''||i_privatedynachar034||'''';
  END IF;
 
  IF (i_privatedynachar036 IS NOT NULL) THEN
     V_WHERESTR1 := V_WHERESTR1 || 'AND p.privatedynachar036 = '''||i_privatedynachar036||'''';
  END IF;

PRIVATEDYNACHAR020 VARCHAR2(512) Y 测试卡归属地
PRIVATEDYNACHAR021 VARCHAR2(512) Y 终端型号
PRIVATEDYNACHAR022 VARCHAR2(512) Y 测试地点
PRIVATEDYNACHAR023 VARCHAR2(512) Y 项目名称
PRIVATEDYNACHAR024 VARCHAR2(512) Y 项目类型
PRIVATEDYNACHAR025 VARCHAR2(512) Y 故障信息
PRIVATEDYNACHAR026 VARCHAR2(512) Y 故障频率
PRIVATEDYNACHAR027 VARCHAR2(512) Y 终端情况
PRIVATEDYNACHAR028 VARCHAR2(512) Y 故障级别
PRIVATEDYNACHAR029 VARCHAR2(512) Y 故障描述
PRIVATEDYNACHAR030 VARCHAR2(512) Y 拨测路径
PRIVATEDYNACHAR031 VARCHAR2(512) Y 备注
PRIVATEDYNACHAR032 VARCHAR2(512) Y 故障解决时间
PRIVATEDYNACHAR033 VARCHAR2(512) Y 附件存放路径
PRIVATEDYNACHAR034 VARCHAR2(512) Y 故障单状态
PRIVATEDYNACHAR035 VARCHAR2(512) Y 724响应时间
PRIVATEDYNACHAR036 VARCHAR2(512) Y 故障原因定位
PRIVATEDYNACHAR037 VARCHAR2(512) Y 是否为BOC内部报障

 
  IF (i_privatedynachar037 IS NOT NULL) THEN
     V_WHERESTR1 := V_WHERESTR1 || 'AND p.privatedynachar037 = '''||i_privatedynachar037||'''';
  END IF;
  --新增故障条件查询 end--

你可能感兴趣的:(123123)