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

    ????
    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;
    ????}

    /**
    ?????*?根據commutype,epId查詢分期項目下拉列框的值(LabelValueEx對象),lable對應typeName,value對應commTypeId
    ?????*?
    ?????*?
    @param ?epId
    ?????*????????????開發商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();???????????????????????????????????? ?//根據對象取到響應的列的值
    ????????????????
    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() " );
    ????????}
    ????}

    ?



    如果沒有用到延遲加載 可以返回 已知的列
    ????
    ????
    /**
    ?????*?根據epId查詢分析項下拉列框的值(LabelValue對象),lable對應constNameChs,value對應constName
    ?????*??
    @param??epId
    ?????*?????????????開發商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 閱讀(276) 評論(0)  編輯  收藏

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


    網站導航:
     

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

    常用鏈接

    留言簿(1)

    隨筆分類(6)

    隨筆檔案(11)

    文章分類(30)

    文章檔案(34)

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 亚洲午夜精品在线| 国产亚洲精品成人AA片新蒲金| 亚洲av中文无码乱人伦在线咪咕| 黄色一级毛片免费| 国产在线98福利播放视频免费| 亚洲一区二区三区高清在线观看| 成年丰满熟妇午夜免费视频| 亚洲AV综合色区无码二区偷拍 | 亚洲国产日产无码精品| 在线看无码的免费网站| 亚洲黄色在线观看| 日韩免费一区二区三区在线播放| 亚洲已满18点击进入在线观看| 免费下载成人电影| 亚洲一区二区无码偷拍| 四只虎免费永久观看| 一本久久A久久免费精品不卡 | 91亚洲va在线天线va天堂va国产 | 成人免费无码大片A毛片抽搐| 欧洲亚洲国产精华液| 亚洲精品色婷婷在线影院| 一个人看的www免费高清| 亚洲AV无码久久精品狠狠爱浪潮| 人妻无码久久一区二区三区免费 | 亚洲AV福利天堂一区二区三| 1000部拍拍拍18勿入免费视频软件| 国产精品亚洲精品青青青| 免费无遮挡无码视频网站| 亚州**色毛片免费观看| 亚洲男人都懂得羞羞网站| 无人影院手机版在线观看免费 | jizzjizz亚洲日本少妇| 国产成人A人亚洲精品无码| 国产成人午夜精品免费视频| 色天使亚洲综合一区二区| 久久激情亚洲精品无码?V| 四虎在线成人免费网站| 深夜特黄a级毛片免费播放| 亚洲精品国产美女久久久| 免费做爰猛烈吃奶摸视频在线观看| 牛牛在线精品免费视频观看|