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>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值