日期:2014-05-18 浏览次数:20719 次
<search id="searchOrdersByCriteria" resultMap="orderResultMap"
parameterType= "com.cl.shop.bean.CriteriaForm">
select * from clshop.cl_order where 1=1
<if test="custName != null and custName != '' ">
and cust_code = #{custCode}
</if>
<if test="status != null and status != '' ">
and status = #{status}
</if>
</search>