提交源码

master
CaesarBao 11 months ago
parent 9e9808f43e
commit 421481822b

@ -1,8 +1,12 @@
package com.ruoyi.web.controller.nanjing;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.nanjing.domain.TBdSubstation;
import com.ruoyi.nanjing.service.ITBdSubstationService;
import com.ruoyi.nanjing.service.ITSyTracestateService;
@ -51,8 +55,14 @@ public class StationParaInfoController extends BaseController {
String stationCode = request.getParameter("stationCode");
String beginTime = request.getParameter("beginTime");
String endTime = request.getParameter("endTime");
String s = tracestateService.selectSemi(productBarcode);
if (s==null&& productBarcode.length()!=0){
String s = "";
if(productBarcode.isEmpty()){
}
else{
s = tracestateService.selectSemi(productBarcode);
if (s==null && productBarcode.length()!=0){
System.out.println(productBarcode.length());
System.out.println("nulllllllllllllllllllllllllllllllllllllllllllllll");
map.put("SemiBarcode", "qqqqqqqqqqqqqqqqqqqqqqqqqqqq");
@ -62,6 +72,7 @@ public class StationParaInfoController extends BaseController {
System.out.println("s=="+s);
System.out.println("notnull");
}
}
map.put("beginTime", beginTime);
map.put("endTime", endTime);
@ -94,7 +105,6 @@ public class StationParaInfoController extends BaseController {
}
}
// @RequiresPermissions("nanjing:StationPara:export")
// @Log(title = "产品码查询", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ -108,10 +118,12 @@ public class StationParaInfoController extends BaseController {
map.put("endTime", null);
map.put("semiBarcode", semiBarcode);
List list = tracestateService.selectStationPara(map);
for (int i = 0; i < list.size() ; i++) {
System.out.println(list.get(i));
}
// for (int i = 0; i < list.size() ; i++) {
// System.out.println(list.get(i));
// }
ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class);
return util.exportExcel(list, "工位参数");
// try {
// ByteArrayOutputStream os = new ByteArrayOutputStream();
// ExcelUtil.createWorkBook()
@ -120,6 +132,6 @@ public class StationParaInfoController extends BaseController {
// }finally {
//
// }
return null;
//return null;
}
}

@ -34,7 +34,7 @@
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="searc()"><i class="fa fa-search"></i>&nbsp;搜索</a>
<!-- <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;查询全部</a>-->
<!-- <a class="btn btn-info btn-rounded btn-sm" onclick="expro()" ><i class="fa fa-download"></i> 导出</a>-->
<a class="btn btn-info btn-rounded btn-sm" onclick="expro()" ><i class="fa fa-download"></i> 导出</a>
</li>
</ul>
</div>

@ -887,6 +887,7 @@ public class ExcelUtil<T>
*/
public void createSheet(double sheetNo, int index)
{
this.sheet = wb.createSheet();
this.sheet = wb.createSheet();
this.styles = createStyles(wb);
// 设置工作表的名称.

Loading…
Cancel
Save