/**
* 导出excel
* @param param
* @throws Exception
*/
@RequestMapping(value = "/export",method = RequestMethod.GET)
@ResponseBody
public void export( WsPurchase param, HttpServletResponse response){
List list = wsPurchaseService.findAll(param);
ExcelWriter writer = ExcelUtil.getWriter();
// Map row = new LinkedHashMap<>();
List
3、dao和service添加查询数据库方法
dao中代码
List findAll(WsPurchase param);
service中代码
public List findAll(WsStorage param){
return dao.findAll(param);
}
4、HTML中关联查询条件
前端请求后台参数
function excel(){
var startTime=$("#startTime").val();
var endTime=$("#endTime").val();
var supplyid=$("#supplyid").val();
var supplyname=$("#supplyname").val();
var goodsid=$("#goodsid").val();
var goodsname=$("#goodsname").val();
var currencyname=$("#currencyname").val();
var lotno=$("#lotno").val();
window.location.href="purchase/export?startTime="+startTime+"&endTime="+endTime+"&supplyid="+supplyid+
"&supplyname="+supplyname+"&goodsid="+goodsid+"&goodsname="+goodsname+"¤cyname="+currencyname+
"&lotno="+lotno
}
导出按钮
1. If语句作为表达式
val properties = if (jobIdToActiveJob.contains(jobId)) {
jobIdToActiveJob(stage.jobId).properties
} else {
// this stage will be assigned to "default" po
基础测试题
卷面上不能出现任何的涂写文字,所有的答案要求写在答题纸上,考卷不得带走。
选择题
1、 What will happen when you attempt to compile and run the following code? (3)
public class Static {
static {
int x = 5; // 在static内有效
}
st
表里的一行对于一个数据块太大的情况有二种(一行在一个数据块里放不下)
第一种情况:
INSERT的时候,INSERT时候行的大小就超一个块的大小。Oracle把这行的数据存储在一连串的数据块里(Oracle Stores the data for the row in a chain of data blocks),这种情况称为行链接(Row Chain),一般不可避免(除非使用更大的数据
Follow up for "Remove Duplicates":What if duplicates are allowed at most twice?
For example,Given sorted array nums = [1,1,1,2,2,3],
Your function should return length