jquery和mybaits的一点小使用

var leixing =$('tbody:eq(0) tr:eq(0) td:last').html().replace(/(^\s+)|(\s+$)/g,"");
         if(leixing=="系统自动审核"){ 
            $('#xgbjyxx').attr("disabled",true);
            $('#tj1').attr("disabled",true);
            $('#tj2').attr("disabled",true);
        } 

  • select
  • CASE b.is_auto_aduit_price
    • WHEN 0 THEN 3
      WHEN 1 THEN 1
      WHEN 2 THEN 2
      ELSE 9
      end as num
      from t_ask_price_info b ;

      select
    • CASE
      • WHEN b.is_auto_aduit_price = 0 THEN 3
        WHEN b.is_auto_aduit_price = 1 THEN 1
        WHEN b.is_auto_aduit_price = 2 THEN 2
        ELSE 9
        end as num
        from t_ask_price_info b ;

param.put("isAutoAduitPrice", new Integer[] {
                0,     //0:待系统自动审核 1:报价审核人员审核 2:首席检测审核
                1 , 2  }); 

<isNotEmpty prepend="and" property="isAutoAduitPrice">
                b.is_auto_aduit_price in 
                <iterate open="(" close=")" conjunction="," property="isAutoAduitPrice"> #isAutoAduitPrice[]# </iterate>
            </isNotEmpty>

发布了29 篇原创文章 · 获赞 66 · 访问量 52万+

猜你喜欢

转载自blog.csdn.net/M_Jack/article/details/103683836