`
文章列表
with rpl(id,name,parent) as ( select id,name,parent from A_ORGAN where id=999 union all
--合并重复行 select * from A union select * from B --不合并重复行 select * from A union all select * from B 按某个字段排序 --合并重复行 select *from ( select * from A union select * from B) AS T order by 字段名 --不合并重复行 select *from ( select * from A union all ...
CREATE FUNCTION "ADMINISTRATOR"."DIGUI" ( PARENTID BIGINT, "TYPE" VARCHAR(10), YEAR VARCHAR(10) ) RETURNS BIGINT BEGIN atomic return with rpl(id,name,parent) as ( select id,name,parent from A_ORGAN whe ...
第一、 首先你对drools有一些初步了解,这个要求你自己去读drools规则引擎文档。 第二、当你对规则引擎有一定了解的话,下面是读取规则引擎drl的工具类: public class DroolRuleUtil { private static final Log log= LogFactory.getLog(DroolRuleUtil.class); /** * 读取规则文件 * * @param doc 公文信息VO */ public void readRule(DocumentInfoFo ...
AffixFile af = new AffixFile(); File file = new File(dir, name); try { byte[] buffer = new byte[(int) file.length()]; FileInputStream inputStream = new FileInputStream(file); inputStream.read(buffer); inputStream.clo ...
/** * 取得系统当前时间后n个月的相对应的一天 * * @param n int * @return String yyyy-mm-dd */ public String getNMonthAfterCurrentDay(int n) { Calendar c = Calendar.getInstance(); c.add(c.MONTH, n); return "" + c.get(c.YEAR) + "-" + (c ...
Services中调用接口方法:    1.重新生成索引        /** * 重新生成索引 * * @return */ public String newIndex(String page) { HelpSearchDomain helpSearchDomain = (HelpSearchDomain) getContextBean("helpSearchDomain"); BaseInfoAttributeDomain baseInfoAttributeDomai ...
一后台接口方法:    1.创建索引       /** * 创建知识索引 * * @param flag * @param path * @param indexPath * @param title * @param knowlegeid */ public void createKnowledgeIndex(boolean flag, String path, String indexPath, String title, Date createtime, String in ...
一个可读取:Excel,html,pdf,txt,word工具类:    package com.topsoft.info.services; /** * Created by IntelliJ IDEA. * User: * Date: 2009-10-9 * Time: 10:40:12 * To change this template use File | Settings | File Templates. */ import java.io.*; import org.apache.commons.logging.Log; import ...
第一张表:投票主题(VoteTheme)    实体:     package com.topsoft.icf.domain.entities; import java.util.Date; import java.util.Set; /** * Created by IntelliJ IDEA. * User: * Date: 2010-4-28 * Time: 16:03:48 * To change this template use File | Settings | File Templates. * @hibernate.mapping d ...
JS中如何实现List列表中复选框,选择多条数据进行批量删除,下面代码只是点击复选框触发的方法以此得到,每条数据的ID,封装到数组里面,后台通过解析数组id循环进行删除: var delArr = []; var index; function check(obj) { // document.all.proid.value=obj.value; if (obj instanceof Array) { index = obj[0]; } else { index = obj.parentElement.parentEleme ...
java中如何读取properties文件: import java.util.Properties; import java.io.InputStream; import java.io.IOException; import java.io.UnsupportedEncodingException; /** * Created by IntelliJ IDEA. * User: limengwei * Date: 2010-4-22 * Time: 14:35:15 * To change this template use File | Settings ...
第一种:          /** * 判断是否为操作员 * * @param operatorName 操作员名称 * @param operatorPsw 操作员密码 * @return 返回操作员,不存在返回空 */ public Operator isOperator(String operatorName, String operatorPsw) { Operator operator = null; Session session = getSession( ...
    解决方法:   在SRC目录下新建一个文件struts.properties 内容为 struts.locale=en_GB   struts.properties文件settings配置详解:   详细介绍如下: struts.configuration     该属性指定加载Struts 2配置文件的配置文件管理器。该属性的默认值是org.apache.Struts2.config.DefaultConfiguration,这是Struts 2默认的配置文件管理器。如果需要实现自己的配置管理器,开发者则可以实现一个实现Configuration接口的类,该类可以 ...
前提物质条件: 1.Struts Framework;    2.struts-tiles.tld 一. web.xml配置 <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>con ...
Global site tag (gtag.js) - Google Analytics