<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 12,  comments - 2,  trackbacks - 0
    ???? /**
    ?????*?根據(jù)commutype,epId查詢分期項目下拉列框的值(LabelValueEx對象)按indexNo升序排列,lable對應(yīng)typeName,value對應(yīng)commTypeId
    ?????*??
    @param ??epId
    ?????*?????????????開發(fā)商Id
    ?????*?
    @param ??commutype?
    ?????*?????????????通訊方法String類型,分別為tysms,tyemail,tyfax
    ?????*?
    @return ?List
    ?????*?
    @throws ?BusinessProcessException
    ?????
    */
    ??????如果在查詢的SQL中,用到left join fetch 查詢出來的只能是一個對象,而不能是某些列?
    ???? 否則會出現(xiàn)沒有取到延遲加載的列的錯誤
    ?

    ????
    public ?List?getCrmCommuInfoTyFms(String?epId,String?commutype)? throws ?BusinessProcessException?{
    ????????List?dicList?
    = ? new ?ArrayList();
    ????????
    if ( ! BlankUtil.isBlank(commutype))
    ????????{????????
    ????????
    try ?{
    ????????????String?query
    = " select?info.constValueId?from?SysConstValue?info "
    ????????????????
    + " ?where?info.constValue=' " + commutype + " ' " ;
    ????????????Long?scv
    = (Long)cDao.execute(query);
    ????????????String?sql?
    = ? " from?CrmCommInfoType?info?left?join?fetch?info.communicationTy "
    ????????????????
    + ? " ?where?info.epId=' " + epId + " ' " ?
    ????????????????
    + " ?and?info.communicationTy.constValueId= " + Long.parseLong(scv.toString());
    ????????????dicList?
    = ?cDao.queryObjects(sql);
    ?????????}?
    catch ?(Exception?ex)?{
    ????????????
    throw ? new ?BusinessProcessException( " getDictData_search_001 " );
    ?????????}
    ????????}
    ????????
    return ?dicList;
    ????}

    /**
    ?????*?根據(jù)commutype,epId查詢分期項目下拉列框的值(LabelValueEx對象),lable對應(yīng)typeName,value對應(yīng)commTypeId
    ?????*?
    ?????*?
    @param ?epId
    ?????*????????????開發(fā)商Id
    ?????*?
    @param ?commutype
    ?????*????????????通訊方法String類型,分別為tysms,tyemail,tyfax
    ?????*?
    @return ?List
    ?????*?
    @throws ?BusinessProcessException
    ?????
    */
    ????@SuppressWarnings(
    " unchecked " )
    ????
    public ?DicSelectionModel?getCrmCommuInfoTyFms(String?epId,?String?commutype)
    ????????????
    throws ?BusinessProcessException?{
    ????????
    try ?{
    ????????????
    if ?(DictionaryServ? == ? null )?{
    ????????????????System.out.println(
    " DictionaryServ?is?null. " );
    ????????????}
    ????????????System.out.println(
    " get?dicList:------>begin " );
    ????????????List?dicList?
    = ?DictionaryServ.getCrmCommuInfoTyFms(epId,?commutype);
    ????????????System.out.println(
    " get?dicList:------>end " );
    ????????????List
    < LabelValueEx > ?labelValueList? = ? new ?ArrayList();
    ????????????Iterator?it?
    = ?dicList.iterator();
    ????????????
    // ?System.out.println("***************?Iterator?begin");
    ????????????labelValueList.add( new ?LabelValueEx( " 請選擇 " ,? 0 ));
    ????????????
    while ?(it.hasNext())?{
    ????????????????CrmCommInfoType?result?
    =
    ?(CrmCommInfoType)?it.next();
    ????????????????String?label?
    = ?result.getTypeName();???????????????????????????????????? ?//根據(jù)對象取到響應(yīng)的列的值
    ????????????????
    long ?value? = ?result.getCommTypeId();
    ????????????????LabelValueEx?labelValue?
    = ? new ?LabelValueEx(label,?value);
    ????????????????labelValueList.add(labelValue);
    ????????????}

    ????????????DicSelectionModel?dicSelectionModel?
    = ? new ?DicSelectionModel(
    ????????????????????labelValueList);
    ????????????
    return ?dicSelectionModel;
    ????????}?
    catch ?(Exception?ex)?{
    ????????????
    throw ? new ?BusinessProcessException( " getCrmCommuInfoTyFms() " );
    ????????}
    ????}

    ?



    如果沒有用到延遲加載 可以返回 已知的列
    ????
    ????
    /**
    ?????*?根據(jù)epId查詢分析項下拉列框的值(LabelValue對象),lable對應(yīng)constNameChs,value對應(yīng)constName
    ?????*??
    @param??epId
    ?????*?????????????開發(fā)商Id
    ?????*?
    @return?List
    ?????*?
    @throws?BusinessProcessException
    ?????
    */
    ????
    public?List?getAnalyseItem(String?epId)?throws?BusinessProcessException?{
    ????????String?sql?
    =?"select?info.constNameChs,info.constName?from?SysConst?info"
    ????????????
    +?"?where?info.epId='"+epId+"'"
    ????????????
    +?"?and?flag='2'";
    ????????List?dicList?
    =?new?ArrayList();

    ????????
    try?{
    ????????????dicList?
    =?cDao.queryObjects(sql);
    ????????}?
    catch?(Exception?ex)?{
    ????????????
    throw?new?BusinessProcessException("getAnalyseItem()");
    ????????}
    ????????
    return?dicList;
    ????}

    posted on 2006-09-23 11:58 doodoosun 閱讀(275) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發(fā)表評論。


    網(wǎng)站導(dǎo)航:
     

    <2006年9月>
    272829303112
    3456789
    10111213141516
    17181920212223
    24252627282930
    1234567

    常用鏈接

    留言簿(1)

    隨筆分類(6)

    隨筆檔案(11)

    文章分類(30)

    文章檔案(34)

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 在线观看免费黄网站| 精品国产免费一区二区三区| 成人免费视频69| 蜜芽亚洲av无码精品色午夜| 免费看无码特级毛片| 亚洲精品成人无限看| 免费人成网站在线观看不卡 | 亚洲人成日本在线观看| 99ee6热久久免费精品6| 在线a人片天堂免费观看高清| 亚洲综合最新无码专区| 看一级毛片免费观看视频| 免费在线视频一区| 亚洲精品美女在线观看播放| 免费大片av手机看片高清| 免费a在线观看播放| 又硬又粗又长又爽免费看| 久久亚洲国产成人精品无码区| 亚洲免费闲人蜜桃| 免费国产黄线在线观看| 亚洲av网址在线观看| 一区二区免费视频| 精品日韩99亚洲的在线发布| 国产成人无码区免费内射一片色欲| 热99re久久免费视精品频软件| 亚洲嫩草影院久久精品| 我们的2018在线观看免费高清| 在线亚洲精品自拍| 久久大香香蕉国产免费网站| 亚洲国产日韩在线人成下载| 在线播放高清国语自产拍免费| 亚洲第一页中文字幕| 成人毛片视频免费网站观看| 一区二区三区视频免费| 又黄又大又爽免费视频| 野花香高清视频在线观看免费| 久久久久亚洲爆乳少妇无| 日韩色视频一区二区三区亚洲| 黄页网站在线观看免费高清| 久久久久亚洲av无码专区蜜芽| 国产真人无码作爱免费视频|