<?xml version="1.0" encoding="utf-8" ?>
<select>
  <selectstr>
	SELECT u_lock_table.keyword
		,u_lock_table.billid
		,u_lock_table.billcode
		,u_lock_table.is_locked
		,u_lock_table.opemp
		,u_lock_table.lock_time
		,u_lock_table.expire_time
	FROM u_lock_table
  </selectstr>
  <where>
	<when notempty="@billcode">
		u_lock_table.billcode LIKE '%' + @billcode + '%'
	</when>
	<when notempty="@keyword">
		u_lock_table.keyword LIKE '%' + @keyword + '%'
	</when>
  </where>
  <orderstr>
	lock_time DESC
  </orderstr>
  <displayfields>
    <field field="pid" compute="getrow()">序</field>
	<field field="keyword" mapper="lock_billname">单据</field>
	<field field="billcode">单据编码</field>
	<field field="is_locked" datatype="checkbox">上锁</field>
	<field field="opemp">操作人</field>
	<field field="lock_time" datatype="datetime">创建日期</field>
	<field field="expire_time" datatype="datetime">过期日期</field>
  </displayfields>
</select>
