您的位置:首页 > 数据库

beetl 和 beetlsql

2016-07-27 10:47 489 查看
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#
@}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  beetl