- */// a=esql.baseAdd(a,"公司留言","/servlet/lderp.xitong.message_manager","",true);
- public static String[] baseAdd(String[] str, String Col, String value,
- String type, boolean pri) throws Exception {
- str[0] = str[0] + "," + Col;
- if (type.equals("date")) {
- value = "to_date('" + value + "','yyyy-mm-dd')";
- str[1] = str[1] + "," + value;
- str[2] = str[2] + "," + Col + "=" + value;
- } else if (type.equals("date16")) {
- value = "to_date('" + value + "','yyyy-mm-dd HH24:MI')";
- str[1] = str[1] + "," + value;
- str[2] = str[2] + "," + Col + "=" + value;
- } else if (type.equals("num")) {
- str[1] = str[1] + "," + value;
- str[2] = str[2] + "," + (pri ? "1" : "0");
- } else {
- str[1] = str[1] + ",'" + value + "'";
- str[2] = str[2] + "," + Col + "='" + value + "'";
- }
- return str;
- }
复制代码 |
|