// 根据编码取“内部单位”字段 : 只有公司本部才使用此函数
 private String[] getInnerCorpByCode(String xCorp) throws Exception {
  String[] innerCorp = null;
  String br = "select basicinfopk,basicinfocode,basicinfovalue from xx_contrasttable x1 left join xx_defaultinfotable x2 on x1.pk_defaultinfopk = x2.pk_defaultinfopk where x2.pk_basicdoc  = '0001V01000000000023L' and x2.pk_corp = '1036' and x1.xternalvalue = '"
    + xCorp
    + "' and x1.dr = 0 and x2.dr = 0 and x2.sysno = 'mcnc' ";
  //String br1 = "select ";  java.util.ArrayList<Object[]> list = (ArrayList) query.executeQuery(br,
    new ArrayListProcessor());
  if (list != null && list.size() > 0) {
   innerCorp = new String[3];
   Object[] obj = (Object[]) list.get(0);
   innerCorp[0] = (String) obj[0];
   innerCorp[1] = (String) obj[1];
   innerCorp[2] = (String) obj[2];
  }
  return innerCorp;
 }上边的代码是VO接口的一个方法,在执行这个方法的时候会执行上述br的SQL语句,但是执行SQL语句时有一个问题,就是数据库中xx_defaultinfotable 表里sysno这个字段可能会为空,就得先在数据库里执行update  xx_defaultinfotable set sysno='mcnc' where pk_basicdoc='0001V01000000000023L'
   and sysno is null条SQL语句使得sysno有值,但是在上面的方法体中,请问有谁有好的方法能解决把sysno这个空值能带入值呢,这里不能使用JDBC。