diff --git a/pom.xml b/pom.xml
index 98728021..ed21472e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -79,7 +79,7 @@
shiro-ehcache
${shiro.version}
-
+
com.github.theborakompanioni
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/SelectParaAllController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/SelectParaAllController.java
index 3217152c..a3608629 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/SelectParaAllController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/SelectParaAllController.java
@@ -20,6 +20,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;
+import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -37,7 +38,7 @@ public class SelectParaAllController extends BaseController {
{
return prefix + "/ParaAllShow";
}
- @RequiresPermissions("nanjing:ProRpList:list")
+ @RequiresPermissions("nanjing:ParaAllShow:list")
@PostMapping("/paraAllShow")
@ResponseBody
public TableDataInfo list(HttpServletRequest request)
@@ -47,22 +48,24 @@ public class SelectParaAllController extends BaseController {
map.put("beginTime",null);
map.put("endTime",null);
map.put("semiBarcode",semiBarcode);
- List list = tracestateService.selectAllPara(map);
+ List list = tracestateService.selectAllPara(map);
return getDataTable(list);
}
- @RequiresPermissions("nanjing:ProRpList:export")
- @Log(title = "机种切换管理", businessType = BusinessType.EXPORT)
+ @RequiresPermissions("nanjing:ParaAllShow:export")
+ @Log(title = "产品码查询", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
- public AjaxResult export(ParaAllShow paraAllShow)
+ public AjaxResult export(HttpServletRequest request)
{
+ String semiBarcode = request.getParameter("semiBarcode");
Map map = new HashMap();
map.put("beginTime",null);
map.put("endTime",null);
- map.put("semiBarcode",paraAllShow.getSemiBarcode());
- List list = tracestateService.selectAllPara(map);
- ExcelUtil util = new ExcelUtil(ProRpList.class);
+ map.put("semiBarcode",semiBarcode);
+ List list = tracestateService.selectAllPara(map);
+ ExcelUtil util = new ExcelUtil(ParaAllShow.class);
return util.exportExcel(list, "ParaAllShow");
+// return null;
}
}
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/SelectProRpListController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/SelectProRpListController.java
index 67356e44..9e18268e 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/SelectProRpListController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/SelectProRpListController.java
@@ -56,7 +56,7 @@ public class SelectProRpListController extends BaseController
}
/**
- * 查询机种切换管理列表
+ * 查询时段统计
*/
@RequiresPermissions("nanjing:ProRpList:list")
@PostMapping("/list")
@@ -96,10 +96,10 @@ public class SelectProRpListController extends BaseController
return getDataTable(list);
}
/**
- * 导出机种切换管理列表
+ * 导出时段统计
*/
@RequiresPermissions("nanjing:ProRpList:export")
- @Log(title = "机种切换管理", businessType = BusinessType.EXPORT)
+ @Log(title = "时段统计", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(ProRpList proRpList)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/StatisticQ1ProductController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/StatisticQ1ProductController.java
new file mode 100644
index 00000000..8a219729
--- /dev/null
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/StatisticQ1ProductController.java
@@ -0,0 +1,74 @@
+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.page.TableDataInfo;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.nanjing.domain.QsProduct;
+import com.ruoyi.nanjing.service.ITBdProducttypeService;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@Controller
+@RequestMapping("/nanjing/StatisticQ1Product")
+public class StatisticQ1ProductController extends BaseController {
+ private String prefix = "nanjing/Statistic";
+ @Autowired
+ private ITBdProducttypeService producttypeService;
+ @RequiresPermissions("nanjing:Q1Product:view")
+ @GetMapping()
+ public String Q1Product()
+ {
+ return prefix + "/Q1Product";
+ }
+
+
+ /**
+ * 一次合格率统计
+ */
+ @RequiresPermissions("nanjing:Q1Product:list")
+ @PostMapping("/Q1list")
+ @ResponseBody
+ public TableDataInfo Q1list(QsProduct qsProduct)
+ {
+// startPage();
+ Map map = new HashMap();
+ map.put("beginTime",qsProduct.getBeginTime());
+ map.put("endTime",qsProduct.getEndTime());
+ map.put("productType",qsProduct.getProductType());
+ map.put("productId","");
+ List list = producttypeService.selectQsProductList(map);
+ return getDataTable(list);
+ }
+
+ /**
+ * 一次合格率统计
+ */
+ @RequiresPermissions("nanjing:Q1Product:export")
+ @Log(title = "时段统计", businessType = BusinessType.EXPORT)
+ @PostMapping("/Q1export")
+ @ResponseBody
+ public AjaxResult Q1export(QsProduct qsProduct)
+ {
+ Map map = new HashMap();
+ map.put("beginTime",qsProduct.getBeginTime());
+ map.put("endTime",qsProduct.getEndTime());
+ map.put("productType",qsProduct.getProductType());
+ map.put("productId","");
+ List list = producttypeService.selectQ1ProductList(map);
+ ExcelUtil util = new ExcelUtil(QsProduct.class);
+ return util.exportExcel(list, "QsProduct");
+ }
+
+}
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/StatisticQsProductController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/StatisticQsProductController.java
new file mode 100644
index 00000000..7edaa800
--- /dev/null
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/StatisticQsProductController.java
@@ -0,0 +1,82 @@
+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.page.TableDataInfo;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.nanjing.domain.ProRpList;
+import com.ruoyi.nanjing.domain.QsProduct;
+import com.ruoyi.nanjing.domain.QtProduct;
+import com.ruoyi.nanjing.domain.TBdProductinfo;
+import com.ruoyi.nanjing.service.ITBdProducttypeService;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.ModelMap;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@Controller
+@RequestMapping("/nanjing/StatisticQsProduct")
+public class StatisticQsProductController extends BaseController {
+ private String prefix = "nanjing/Statistic";
+ @Autowired
+ private ITBdProducttypeService producttypeService;
+
+ @RequiresPermissions("nanjing:QsProduct:view")
+ @GetMapping()
+ public String QsProduct()
+ {
+ return prefix + "/QsProduct";
+ }
+
+
+ /**
+ * 整机合格率统计
+ */
+ @RequiresPermissions("nanjing:QsProduct:list")
+ @PostMapping("/list")
+ @ResponseBody
+ public TableDataInfo list(QsProduct qsProduct)
+ {
+// startPage();
+ Map map = new HashMap();
+ map.put("beginTime",qsProduct.getBeginTime());
+ map.put("endTime",qsProduct.getEndTime());
+ map.put("productType",qsProduct.getProductType());
+ map.put("productId","");
+ List list = producttypeService.selectQ1ProductList(map);
+ return getDataTable(list);
+ }
+
+ /**
+ * 整机合格率统计
+ */
+ @RequiresPermissions("nanjing:QsProduct:export")
+ @Log(title = "时段统计", businessType = BusinessType.EXPORT)
+ @PostMapping("/export")
+ @ResponseBody
+ public AjaxResult export(QsProduct qsProduct)
+ {
+ Map map = new HashMap();
+ map.put("beginTime",qsProduct.getBeginTime());
+ map.put("endTime",qsProduct.getEndTime());
+ map.put("productType",qsProduct.getProductType());
+ map.put("productId","");
+ List list = producttypeService.selectQsProductList(map);
+ ExcelUtil util = new ExcelUtil(QsProduct.class);
+ return util.exportExcel(list, "QsProduct");
+ }
+
+
+
+}
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/StatisticQtProductController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/StatisticQtProductController.java
new file mode 100644
index 00000000..c4d07502
--- /dev/null
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/StatisticQtProductController.java
@@ -0,0 +1,83 @@
+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.page.TableDataInfo;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.nanjing.domain.ProRpList;
+import com.ruoyi.nanjing.domain.QtProduct;
+import com.ruoyi.nanjing.domain.TBdProductinfo;
+import com.ruoyi.nanjing.service.ITBdProducttypeService;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.ModelMap;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@Controller
+@RequestMapping("/nanjing/StatisticQtProduct")
+public class StatisticQtProductController extends BaseController {
+ private String prefix = "nanjing/Statistic";
+ @Autowired
+ private ITBdProducttypeService producttypeService;
+
+ @RequiresPermissions("nanjing:QtProduct:view")
+ @GetMapping()
+ public String QtProduct()
+ {
+ return prefix + "/QtProduct";
+ }
+
+ /**
+ * 查询时段统计
+ */
+ @RequiresPermissions("nanjing:QtProduct:list")
+ @PostMapping("/list")
+ @ResponseBody
+ public TableDataInfo list(QtProduct qtProduct)
+ {
+// startPage();
+ Map map = new HashMap();
+ map.put("beginTime",qtProduct.getBeginTime());
+ map.put("endTime",qtProduct.getEndTime());
+ map.put("productType",qtProduct.getProductType());
+ map.put("productId","");
+ map.put("shiftId","");
+ map.put("groupId","");
+ List list = producttypeService.selectQtProductList(map);
+ return getDataTable(list);
+ }
+
+ /**
+ * 导出时段统计
+ */
+ @RequiresPermissions("nanjing:QtProduct:export")
+ @Log(title = "时段统计", businessType = BusinessType.EXPORT)
+ @PostMapping("/export")
+ @ResponseBody
+ public AjaxResult export(QtProduct qtProduct)
+ {
+ Map map = new HashMap();
+ map.put("beginTime",qtProduct.getBeginTime());
+ map.put("endTime",qtProduct.getEndTime());
+ map.put("productType",qtProduct.getProductType());
+ map.put("productId","");
+ map.put("shiftId","");
+ map.put("groupId","");
+ List list = producttypeService.selectQtProductList(map);
+ ExcelUtil util = new ExcelUtil(QtProduct.class);
+ return util.exportExcel(list, "QtProduct");
+ }
+
+
+}
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/StatisticStProductController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/StatisticStProductController.java
new file mode 100644
index 00000000..4635ef15
--- /dev/null
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/StatisticStProductController.java
@@ -0,0 +1,42 @@
+package com.ruoyi.web.controller.nanjing;
+
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.nanjing.domain.QsProduct;
+import com.ruoyi.nanjing.service.ITBdProducttypeService;
+import com.ruoyi.system.domain.SysDept;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
+
+import java.util.List;
+
+@Controller
+@RequestMapping("/nanjing/StatisticStation")
+public class StatisticStProductController extends BaseController {
+
+ private String prefix = "nanjing/Statistic";
+ @Autowired
+ private ITBdProducttypeService producttypeService;
+
+ @RequiresPermissions("nanjing:stationStatistic:view")
+ @GetMapping()
+ public String stationProduct()
+ {
+ return prefix + "/QsStation";
+ }
+
+ @RequiresPermissions("nanjing:stationStatistic:list")
+ @PostMapping("/list")
+ @ResponseBody
+ public List list(QsProduct qsProduct)
+ {
+// List qsProducts = producttypeService.selectDeptList(qsProduct);
+// return qsProducts;
+ return null;
+ }
+
+}
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdSubstationController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdSubstationController.java
index d2266093..ce2f7819 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdSubstationController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/nanjing/TBdSubstationController.java
@@ -5,6 +5,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import com.ruoyi.common.core.domain.Ztree;
import com.ruoyi.common.core.text.Convert;
import com.ruoyi.framework.util.ShiroUtils;
import com.ruoyi.nanjing.domain.TBdLinetype;
@@ -75,6 +76,16 @@ public class TBdSubstationController extends BaseController
return getDataTable(list);
}
+ /**
+ * 加载工位列表树
+ */
+ @GetMapping("/treeData")
+ @ResponseBody
+ public List treeData()
+ {
+ List ztrees = tBdSubstationService.selectTbdStationTree(new TBdSubstation());
+ return ztrees;
+ }
/**
* 导出工位管理列表
*/
diff --git a/ruoyi-admin/src/main/resources/templates/nanjing/ParaAllShow/ParaAllShow.html b/ruoyi-admin/src/main/resources/templates/nanjing/ParaAllShow/ParaAllShow.html
index fff85bf9..cf473821 100644
--- a/ruoyi-admin/src/main/resources/templates/nanjing/ParaAllShow/ParaAllShow.html
+++ b/ruoyi-admin/src/main/resources/templates/nanjing/ParaAllShow/ParaAllShow.html
@@ -1,31 +1,31 @@
-
+