コード例 #1
0
 public Map getFj(Map p) throws Exception {
   String id = (String) (p.get("id") == null ? "" : p.get("id"));
   String sql =
       "select * from zx_sys_files f, zx_sys_filesandyw s where f.id = s.fileid and s.ywid =?";
   List fjList = fjglDao.findAddMapBySql(sql, new Object[] {id});
   if (fjList.size() > 0) {
     p.put("fjList", fjList);
   }
   return null;
 }
コード例 #2
0
 public void delFile(Map p) throws Exception {
   // TODO Auto-generated method stub
   String fileid = (String) (p.get("fileid") == null ? "" : p.get("fileid"));
   /*String id=null;
   if(fileid!=null&&!"".equals(fileid)){
   	List<Map<String,String>> list = this.fjglDao.findAddMapBySql("select id from zx_sys_filesandyw t where t.fileid=?", new Object[]{fileid});
   	if(list.size()>0){
   		id=list.get(0).get("id");
   	}*/
   fjglDao.delete(ZxSysFiles.class, fileid);
   /*	fjglDao.delete(ZxSysFilesandyw.class, id);
   }*/
 }