Commit 6654f034 by 徐高华

激活码查询

parent 70f108dd
......@@ -312,6 +312,33 @@
#{id,jdbcType=VARCHAR}
</foreach>
</if>
<!-- 其他占用 -->
<if test="occupy != null and 1==occupy">
and a.status_flag = 0 and a.update_time >= DATE_FORMAT(NOW(),'%Y-%m-%d') and a.active_status = 1
</if>
<!-- -->
<if test="occupy != null and 2==occupy">
and ( a.status_flag = 0 or a.expire_time <![CDATA[<]]> now() )
</if>
<!-- 许可状态 0 未激活,1 正常有效,2 即将过期,3 已过期,可多传,按‘,’隔开 -->
<if test="null != permitState">
<if test="permitState==0">
and a.active_status = 0
</if>
<if test="permitState==1">
and a.active_status = 1 and a.expire_time > now()
</if>
<if test="permitState==2">
and a.active_status = 1 and a.expire_time > now() and a.expire_time <![CDATA[<=]]> DATE_ADD(DATE_FORMAT(NOW(),'%Y-%m-%d'),INTERVAL 30 DAY)
</if>
<if test="permitState==3">
and a.active_status = 1 and a.expire_time <![CDATA[<]]> now()
</if>
</if>
<if test="departmentIds != null and departmentIds.size() > 0">
and b.department_id IN
<foreach collection="departmentIds" item="id" index="index" open="(" close=")" separator=",">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment