This commit is contained in:
zhuangqian 2016-09-09 10:46:48 +08:00
parent 7ae69a4e3d
commit 9f2b84dea5
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ public class ExampleBlade extends BladeController{
public void other(){ public void other(){
Blade dao = Blade.create(Notice.class); Blade dao = Blade.create(Notice.class);
//指定表名查询条件查询多条数据(完整sql) //指定表名查询条件查询多条数据(完整sql)
List<Notice> list = dao.find("select * from tb_tfw_tzgg where f_it_xl = #{xl},f_it_cjr = #{cjr}", Record.create().set("xl", 1).set("cjr", 1)); List<Notice> list = dao.find("select * from tb_tfw_tzgg where f_it_xl = #{xl} and f_it_cjr = #{cjr}", Record.create().set("xl", 1).set("cjr", 1));
System.out.println(list); System.out.println(list);
} }

View File

@ -21,7 +21,7 @@ public class ExampleExcel extends BladeController {
/** /**
* excel视图方式 * excel视图方式
*/ */
@RequestMapping("/export1") @RequestMapping("/export")
public String exportMerchantProfitQuery(ModelMap modelMap, public String exportMerchantProfitQuery(ModelMap modelMap,
HttpServletResponse response) { HttpServletResponse response) {
List<ExcelExportEntity> entityList = new ArrayList<ExcelExportEntity>(); List<ExcelExportEntity> entityList = new ArrayList<ExcelExportEntity>();