摘要:
JAVA中按照"\"截取字符串,则:4个\相当于一个\,涉及到JAVA中的转义字符:String[] strs=imageValue.split("\\\\"); 阅读全文
摘要:
页面.ftl: 后台JAVA代码: import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java... 阅读全文
摘要:
List jfAuctionListValue=new ArrayList(); Map jfAuctionMap = new HashMap(); for (Integer key : jfAuctionMap.keySet()) { jfAuctionListValue.add(jfAucti... 阅读全文
摘要:
List jfAuctionListValue=null; if(jfAuctionList!=null && jfAuctionList.size()>0){ Map jfAuctionMap = new HashMap(); for(JfAuction jfAuction:jfAuctio... 阅读全文
摘要:
public List comparatorScoreAscTest(List jfAuctionList){ Collections.sort(jfAuctionList, new Comparator() { /* * int compare(Student o1, Student o2... 阅读全文
摘要:
public int getMaxScoreByJfEventIdNumber(Integer jfEventId) { int numberValue=0; String hql = "from JfAuction where jfEvent.id =:jfEventId"; Finder fi... 阅读全文
摘要:
String hql ="select j from JfAuction j where 1=1 "; hql+=" and j.jfEvent.id ="; hql+=jfEventId; hql+=" order by j.score desc "; Query query = jfAucti... 阅读全文
摘要:
public JfAuction getMaxScoreByJfEventId(Integer jfEventId) { JfAuction jfAuction=null; String hql = "from JfAuction where jfEvent.id =:jfEventId and ... 阅读全文
摘要:
public List getListScoreByJfEventId(Integer jfEventId){ List jfAuctionList=null; String hql ="select j.id,j.user,j.jfEvent,sum(j.score),j.status,j.cre... 阅读全文