隨筆-71  評論-5  文章-0  trackbacks-0
          str.append(" left join (
          select customer_no,(case  when auth_type=1 then count(route) when auth_type=2 then count(route) when auth_type=3 then count(route) end) as auth_image from h_auth_info where audit_sign=1) h6
          ");




          select  auth_info.customer_no,
          (case when auth_info.auth_image=3 then 1 
                when auth_info.auth_image<3 then 0 
          end)
          as auth_result
          from(
          select customer_no,
          (case  when auth_type=1 then count(route) 
                 when auth_type=2 then count(route) 
                 when auth_type=3 then count(route) 
           end) 
          as auth_image 
          from h_auth_info 
          where audit_sign=1  and customer_no='18632116655'
          )  auth_info
          posted on 2014-12-26 09:14 藤本薔薇 閱讀(195) 評論(0)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 霍林郭勒市| 夏河县| 化隆| 隆回县| 锦州市| 景泰县| 庄浪县| 正蓝旗| 浦北县| 中卫市| 台东县| 苏尼特右旗| 鹤壁市| 沂源县| 三门县| 涡阳县| 平度市| 河东区| 高淳县| 二连浩特市| 肥东县| 屯留县| 盐津县| 洮南市| 华宁县| 枣庄市| 斗六市| 无棣县| 怀柔区| 利津县| 同仁县| 江都市| 沂源县| 理塘县| 卓尼县| 云龙县| 淳化县| 刚察县| 林周县| 铜川市| 南雄市|