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