public List<TplRelease> searchTplReleaseById(TplRelease tr)throws Exception{
DBOperator dbo = getDBOperator();
try{
List<TplRelease> tplReleaseList = new ArrayList<TplRelease>();
String sqlWhere = "select b.* from "+
"(SELECT max(a.CREATE_TIME) AS CREATE_TIME , a.TPL_ID FROM template.tpl_release a WHERE a.TPL_ID =? AND a.TPL_STATUS ='1' GROUP BY a.TPL_ID ) c "+
" left join template.tpl_release b on c.CREATE_TIME = b.CREATE_TIME and c.TPL_ID = b.TPL_ID";
PreparedStatement pst = dbo.createPreparedStatement(sqlWhere);
pst.setString(1,tr.getTplID());
ResultSet rs = pst.executeQuery();
while (rs.next()) {
TplRelease tplRelease = new TplRelease();
tplRelease.setTplID(rs.getString("Tpl_ID"));
tplRelease.setTplVersion(rs.getString("Tpl_Version"));
tplRelease.setTplName(rs.getString("Tpl_Name"));
tplRelease.setTplNamePy(rs.getString("Tpl_Name_Py"));
tplRelease.setTplDesc(rs.getString("Tpl_Desc"));
tplRelease.setTplData(rs.getString("Tpl_Data"));
tplRelease.setTplStatus(rs.getString("Tpl_Status"));
tplRelease.setTreeNode(rs.getString("Tree_Node"));
tplRelease.setNodeIndex(rs.getString("Node_Index"));
tplRelease.setCreator(rs.getString("Creator"));
tplRelease.setCreateTime(rs.getString("Create_Time"));
tplRelease.setModifier(rs.getString("Modifier"));
tplRelease.setModifyTime(rs.getString("Modify_Time"));
tplRelease.setOwnerOrg(rs.getString("Owner_Org"));
tplRelease.setInoutFlag(rs.getString("Inout_Flag"));
tplRelease.setTplType(rs.getString("Tpl_Type"));
tplReleaseList.add(tplRelease);
}
dbo.commit();
return tplReleaseList;
}catch(Exception e){
dbo.rollback();
throw e;
}finally{
dbo.close();
}
}

Naked Search in service的更多相关文章

  1. java.lang.ClassNotFoundException: com.demo.search.extractAbstract.service.ExtractAbstractServiceHandler

    在利用 Spring 对 thrift 进行集成时,出现错误: avax.servlet.ServletException: Servlet.init() for servlet search-nlp ...

  2. SharePoint 2013 Search REST API 使用示例

    前言:在SharePoint2013中,提供Search REST service搜索服务,你可以在自己的客户端搜索方法或者移动应用程序中使用,该服务支持REST web request.你可以使用K ...

  3. 修改SharePoint 2013中Search Topology时遇到的一些问题以及一些Tips

    这次操作在笔者的场中涉及到5台服务器, CA, APP2, APP3, APP4, APP5. 原本只有CA运行着Search Service Applicaiton, 现在想让APP2-5运行这项服 ...

  4. Android的系统服务一览

    System_Server进程 运行在system server进程中的服务比较多,这是整个Android框架的基础 Native服务 SurfaceFlinger 这是framebuffer合成的服 ...

  5. [SharePoint] SharePoint 错误集 2

    1 Run command “New-SPConfigurationDatabase" Feature Description: error message popup after run ...

  6. AppStore 相关

    App 跳转 AppStore 网址链接   https://itunes.apple.com/app/uri/id582319843?mt=8   https 可替换成 itms,可直接避免进入 S ...

  7. ATT GATT Profile

    Bluetooth: ATT and GATT Bluetooth 4.0, which includes the Low Energy specification, brings two new c ...

  8. ElasticSearch在Azure中的集群配置和Auto-Scale

    最近在项目中ElasticSearch的使用越来越多,最新的项目中要求ES使用集群,在啥都不知道的情况下弄了两天后,终于搞定,因此写个笔记记录下. 1.首先我们需要创建一个Virtual networ ...

  9. centos下 rpm包sphinx安装成功提示

    sphinx: /etc/sphinx /usr/share/sphinx Sphinx installed! Now create a full-text index, start the sear ...

随机推荐

  1. servlet 生命周期

    Ò编写一个HelloWordServlet类

  2. Reapter控件的特殊使用:使用EVAL调取asp:Repeater里面绑定的值来进行判断 根据从数据库获取的数据进行判断 ,进而显示成想要的内容

    1.这个判断的过程你可以写在后台,如先在后台写一个public类型的方法:public bool CheckAduit(string code){ //根据你传入的code来判断,并返回true或者f ...

  3. 数据模型类对比 反射c#

    using System;using System.ComponentModel.DataAnnotations; public class LoginModel    {               ...

  4. Java复数的四则运算

    import java.util.Scanner;   import com.sun.jndi.url.iiopname.iiopnameURLContextFactory;   public cla ...

  5. C# Delegate 匿名 Delegate

    C#6.0新添加了 lambda的强力支持,用lambda的确可以节省好多代码,让代码看起来更简洁,更直观: 这里做一个笔记,C#的匿名委托 Demo class Program { static v ...

  6. 4.20-4.24程序设计基础结束,UID课程

    通过其他方式实现string函数的效果,效果有比较数组字符.显示字符串长度.复制字符串等.在比较字符串的时候,首先是比较字符串的长度,当长度一样的时候进行不同位置上一一对应的字符比较大小.关于字符长度 ...

  7. 套题 codeforces 359

    A题:Free Ice Cream 注意要使用LL,避免爆int #include <bits/stdc++.h> #define scan(x,y) scanf("%d%d&q ...

  8. 用groovy采集网页数据

    首先,用 http://groovyconsole.appspot.com/ 测试下面的代码,发现引用总是失败. 下载了GGTS: https://spring.io/tools/ggts 测试成功: ...

  9. Asp.Net Web API 2第三课——.NET客户端调用Web API

    详情请查看http://aehyok.com/Blog/Detail/70.html 个人网站地址:aehyok.com QQ 技术群号:206058845,验证码为:aehyok 本文文章链接:ht ...

  10. Flash矢量图与位图性能对比

    Flash中使用位图的性能要高于矢量图,究竟有多大区别呢?数据有最好的说服力,开始测试: 一.机器配置 二.测试过程 测试程序控制红色小球在舞台中不停匀速移动,通过改变小球数量控制实际帧率在24帧/秒 ...