1:beetl模板中 cate.list
在java是调用cate对象的getList()方法
2:beetlsql
query.setParas使用
paras.put("status",1);
sql中:
select
@pageTag(){
o.*,p.supplierId,s.supplierName,p.fob,s.country
@}
FROM `order` o
LEFT JOIN gls_product p ON o.product_id=p.productId
LEFT JOIN gls_supplier s ON s.supplierId=p.supplierId
where 1=1
@if(!isEmpty(status)){
and `status`=#status#
@}