Defry

博客园 首页 新随笔 联系 订阅 管理

2016年7月13日 #

摘要: 实现类: public class InfoDAOImpl extends BaseDao<Info> 1、List<Object[]> midlist=super.createSqlQuery(sqlStr, null);//根据SQL返回记录,每条记录对应对象数组 2、Map map = new 阅读全文
posted @ 2016-07-13 16:55 Defry 阅读(245) 评论(0) 推荐(0) 编辑

2016年6月22日 #

摘要: 参考:http://www.cnblogs.com/benio/archive/2010/09/14/1825909.html 阅读全文
posted @ 2016-06-22 17:00 Defry 阅读(113) 评论(0) 推荐(0) 编辑

2016年6月20日 #

摘要: 1、写入Excel,并加密压缩、不保存文件 String dcxh = String.format("%03d", keyValue); String folderFileName="Q10152900H1I002016060071.zip"; File file=new File(folderFi 阅读全文
posted @ 2016-06-20 15:35 Defry 阅读(1271) 评论(0) 推荐(0) 编辑

2016年6月12日 #

摘要: /*XML结果解析*/ Document document = DocumentHelper.parseText(resultStr); Element root = document.getRootElement(); String backStatus = root.element("Body" 阅读全文
posted @ 2016-06-12 11:24 Defry 阅读(120) 评论(0) 推荐(0) 编辑

2016年5月3日 #

摘要: 1、查询结果填充到实体list try{ Session session =null; SQLQuery sQuery =null; session = this.getSession(); sQuery = session.createSQLQuery(sql.toString()); sQuer 阅读全文
posted @ 2016-05-03 13:24 Defry 阅读(135) 评论(0) 推荐(0) 编辑

2016年4月21日 #

摘要: js: JSON.stringify(idinfo)//将对象转化为 JSON串 //查询后为将json串赋值给表单 function _form1_load() { AOS.ajax({ url: 'getForm1Info.jhtml', ok: function (data) {//{card 阅读全文
posted @ 2016-04-21 15:53 Defry 阅读(342) 评论(0) 推荐(0) 编辑

2016年2月24日 #

摘要: 1、action String templete=ConstantsAppParams.CONTRACT_TEMPLET_DOC;//contract_templet.tldString templeteHtml=ConstantsAppParams.CONTRACT_TEMPLET_HTML;// 阅读全文
posted @ 2016-02-24 16:57 Defry 阅读(373) 评论(0) 推荐(0) 编辑

2015年9月8日 #

摘要: // 得到一个表单里的全部信息function getFormQueryString() {var frmID=document.forms[0];var i,queryString="",and="";var item;// for each form's objectvar itemValue;... 阅读全文
posted @ 2015-09-08 14:26 Defry 阅读(5092) 评论(0) 推荐(0) 编辑

2015年8月27日 #

摘要: c.add(Restrictions.sqlRestriction("exists (SELECT p.loan_contract_no FROM crf_p2p_app_info p WHERE p.loan_contract_no={alias}.loan_contract_no)")); 阅读全文
posted @ 2015-08-27 13:11 Defry 阅读(267) 评论(0) 推荐(0) 编辑

2015年8月19日 #

摘要: dd 阅读全文
posted @ 2015-08-19 12:04 Defry 阅读(117) 评论(0) 推荐(0) 编辑