- 浏览: 19488 次
最新评论
文章列表
oracle 查询所有的子集和所有的父级
- 博客分类:
- oracle
查询id等于参数id的所有的子集(包括本身)
select field000 from sm_table_zzjg start with id="+id+" connect by prior id=pId
查询id等于参数id的所有的父集(包括本身)
select field000 from sm_table_zzjg start with id="+id+" connect by prior pId=id
/***********************前端css********************************/
<style>.ztree *{font-family:"微软雅黑";font-size:14px;} .ztree li span.button.pIcon_ico_open{margin-right:2px; background: url('<%=basePath%>resources/app/images/pIcon.png') no-repeat scroll 0 0 transparent ...
package util;
import java.io.InputStream;
import java.util.Properties;
import javax.activation.DataHandler;
import javax.activation.FileDataSource;
import javax.mail.BodyPart;
import javax.mail.Message;
import javax.mail.Multipart;
import javax.mail.Session;
import javax ...
package com.banmacoffee.utils;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import javax.imageio.ImageIO;
import com.swetake.uti ...
/**
* 判断ajax请求
* @param request
* @return
*/
boolean isAjax(HttpServletRequest request){
return (request.getHeader("X-Requested-With") != null && "XMLHttpRequest".equals( request.getHeader("X-Requested-With").toString()) ) ;
}
...
package com.framework.common.util;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.OutputS ...
package com.framework.common.util;import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.io.OutputStream;im ...
package com.framework.common.util;import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.text.SimpleDateFormat;import java.util.ArrayList;import java.util.Date;import java.util.HashMap;impor ...
package com.framework.common.util;import java.util.List;import java.util.ResourceBundle;import org.apache.commons.mail.EmailException;import org.apache.commons.mail.MultiPartEmail;public class SendMail { private static ResourceBundle p = SystemPropertyGetUtil.getResource("config"); /* ...
package com.framework.common.util;import java.math.BigDecimal;public class ArithUtil { //默认除法运算精度 private static final int DEF_DIV_SCALE = 10; /** * 提供精确的加法运算。 * @param v1 被加数 * @param v2 加数 * @return 两个参数的和 */ public static double add(double v1,double v2){ ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><meta http-equiv="Content-Type" content="text/html; charset=utf-8 ...
public class IdentityUtil { // wi =2(n-1)(mod 11);加权因子 final int[] wi = { 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2, 1 }; // 校验码 final int[] vi = { 1, 0, 'X', 9, 8, 7, 6, 5, 4, 3, 2 }; private int[] ai = new int[18];
public IdentityUtil() { }
// 校验身份证的校验码 public boolean verify ...
//url是apk存放的路径 ,由于项目需要,url是解析配置文件.xml,如下注释代码
//Document xml = getXmlDoc(path); //Node node = xml.selectSingleNode("/update/application/url"); //String url=node.getText();
URL downUrl = new URL(url); URLConnection conn = downUrl.openConnection(); ...
java解析xml文件
- 博客分类:
- xml
package com.framework.common.util;
import java.io.File;import java.io.IOException;import java.util.List;
import org.jdom.Document;import org.jdom.Element;import org.jdom.JDOMException;import org.jdom.Namespace;import org.jdom.input.SAXBuilder;
public class XMLUtil { public String getXm ...