时段统计查询-over

产品码查询-doing
master
Limy 4 years ago
parent 2ccbcb42a7
commit 87b655ce8f

@ -0,0 +1,68 @@
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.ParaAllShow;
import com.ruoyi.nanjing.domain.ProRpList;
import com.ruoyi.nanjing.domain.TBdProductinfo;
import com.ruoyi.nanjing.service.ITSyTracestateService;
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 javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Controller
@RequestMapping("/nanjing/selectParaAll")
public class SelectParaAllController extends BaseController {
private String prefix = "nanjing/ParaAllShow";
@Autowired
private ITSyTracestateService tracestateService;
@RequiresPermissions("nanjing:ParaAllShow:view")
@GetMapping()
public String ProRpList(ModelMap map)
{
return prefix + "/ParaAllShow";
}
@RequiresPermissions("nanjing:ProRpList:list")
@PostMapping("/paraAllShow")
@ResponseBody
public TableDataInfo list(HttpServletRequest request)
{
String semiBarcode = request.getParameter("semiBarcode");
Map map = new HashMap<String,Object>();
map.put("beginTime",null);
map.put("endTime",null);
map.put("semiBarcode",semiBarcode);
List<ProRpList> list = tracestateService.selectAllPara(map);
return getDataTable(list);
}
@RequiresPermissions("nanjing:ProRpList:export")
@Log(title = "机种切换管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(ParaAllShow paraAllShow)
{
Map map = new HashMap<String,Object>();
map.put("beginTime",null);
map.put("endTime",null);
map.put("semiBarcode",paraAllShow.getSemiBarcode());
List<ProRpList> list = tracestateService.selectAllPara(map);
ExcelUtil<ProRpList> util = new ExcelUtil<ProRpList>(ProRpList.class);
return util.exportExcel(list, "ParaAllShow");
}
}

@ -0,0 +1,119 @@
package com.ruoyi.web.controller.nanjing;
import java.util.*;
import com.ruoyi.common.core.text.Convert;
import com.ruoyi.framework.util.ShiroUtils;
import com.ruoyi.nanjing.domain.ProRpList;
import com.ruoyi.nanjing.domain.TBdProductinfo;
import com.ruoyi.nanjing.service.ITBdProductinfoService;
import com.ruoyi.nanjing.service.ITBdProducttypeService;
import com.ruoyi.nanjing.service.ITSyTracestateService;
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.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.nanjing.domain.TRpProductchangeinfo;
import com.ruoyi.nanjing.service.ITRpProductchangeinfoService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import javax.servlet.http.HttpServletRequest;
/**
*
*
* @author limy
* @date 2021-02-2
*/
@Controller
@RequestMapping("/nanjing/selectProRpList")
public class SelectProRpListController extends BaseController
{
private String prefix = "nanjing/ProRpList";
@Autowired
private ITBdProductinfoService tBdProductinfoService;
@Autowired
private ITBdProducttypeService itBdProducttypeService;
@RequiresPermissions("nanjing:ProRpList:view")
@GetMapping()
public String ProRpList(ModelMap map)
{
List<TBdProductinfo> tBdProductinfoList = tBdProductinfoService.selectTBdProductinfoList(new TBdProductinfo());
map.addAttribute("list",tBdProductinfoList);
return prefix + "/SelectProRpList";
}
/**
*
*/
@RequiresPermissions("nanjing:ProRpList:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(ProRpList proRpList)
{
// startPage();
Map map = new HashMap<String,Object>();
map.put("beginTime",proRpList.getBeginTime());
map.put("endTime",proRpList.getEndTime());
map.put("productId",proRpList.getProductID());
map.put("productType",proRpList.getProductType());
map.put("state",proRpList.getState());
map.put("semiBarcode",proRpList.getSemiBarcode());
List<ProRpList> list = null;
return getDataTable(list);
}
@PostMapping("/getData")
@ResponseBody
public TableDataInfo getData(ProRpList proRpList)
{
// startPage();
List<ProRpList> list = new ArrayList<ProRpList>();
if(proRpList.getBeginTime()==null||proRpList.getEndTime()==null)
{
return getDataTable(list);
}
Map map = new HashMap<String,Object>();
map.put("beginTime",proRpList.getBeginTime());
map.put("endTime",proRpList.getEndTime());
map.put("productId",proRpList.getProductID());
map.put("productType",proRpList.getProductType());
map.put("state",proRpList.getState());
map.put("semiBarcode",proRpList.getSemiBarcode());
list = itBdProducttypeService.selectProLists(map);
return getDataTable(list);
}
/**
*
*/
@RequiresPermissions("nanjing:ProRpList:export")
@Log(title = "机种切换管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(ProRpList proRpList)
{
Map map = new HashMap<String,Object>();
map.put("beginTime",proRpList.getBeginTime());
map.put("endTime",proRpList.getEndTime());
map.put("productId",proRpList.getProductID());
map.put("productType",proRpList.getProductType());
map.put("state",proRpList.getState());
map.put("semiBarcode",proRpList.getSemiBarcode());
List<ProRpList> list = itBdProducttypeService.selectProLists(map);
ExcelUtil<ProRpList> util = new ExcelUtil<ProRpList>(ProRpList.class);
return util.exportExcel(list, "ProRpList");
}
}

@ -87,47 +87,47 @@ public class TBdProducttypeController extends BaseController
/**
*
*/
@RequiresPermissions("nanjing:ProductType:add")
@Log(title = "机种类型", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TBdProducttype tBdProducttype)
{
return toAjax(tBdProducttypeService.insertTBdProducttype(tBdProducttype));
}
// @RequiresPermissions("nanjing:ProductType:add")
// @Log(title = "机种类型", businessType = BusinessType.INSERT)
// @PostMapping("/add")
// @ResponseBody
// public AjaxResult addSave(TBdProducttype tBdProducttype)
// {
// return toAjax(tBdProducttypeService.insertTBdProducttype(tBdProducttype));
// }
//
/**
*
*/
@GetMapping("/edit/{ID}")
public String edit(@PathVariable("ID") Long ID, ModelMap mmap)
{
TBdProducttype tBdProducttype = tBdProducttypeService.selectTBdProducttypeById(ID);
mmap.put("tBdProducttype", tBdProducttype);
return prefix + "/edit";
}
// @GetMapping("/edit/{ID}")
// public String edit(@PathVariable("ID") Long ID, ModelMap mmap)
// {
// TBdProducttype tBdProducttype = tBdProducttypeService.selectTBdProducttypeById(ID);
// mmap.put("tBdProducttype", tBdProducttype);
// return prefix + "/edit";
// }
/**
*
*/
@RequiresPermissions("nanjing:ProductType:edit")
@Log(title = "机种类型", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TBdProducttype tBdProducttype)
{
return toAjax(tBdProducttypeService.updateTBdProducttype(tBdProducttype));
}
// @RequiresPermissions("nanjing:ProductType:edit")
// @Log(title = "机种类型", businessType = BusinessType.UPDATE)
// @PostMapping("/edit")
// @ResponseBody
// public AjaxResult editSave(TBdProducttype tBdProducttype)
// {
// return toAjax(tBdProducttypeService.updateTBdProducttype(tBdProducttype));
// }
/**
*
*/
@RequiresPermissions("nanjing:ProductType:remove")
@Log(title = "机种类型", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(tBdProducttypeService.deleteTBdProducttypeByIds(ids));
}
// @RequiresPermissions("nanjing:ProductType:remove")
// @Log(title = "机种类型", businessType = BusinessType.DELETE)
// @PostMapping( "/remove")
// @ResponseBody
// public AjaxResult remove(String ids)
// {
// return toAjax(tBdProducttypeService.deleteTBdProducttypeByIds(ids));
// }
}

@ -1,5 +1,9 @@
package com.ruoyi.web.controller.nanjing;
import java.text.DecimalFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import com.ruoyi.nanjing.domain.TBdSubstation;
@ -22,6 +26,9 @@ import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Controller
*
@ -34,9 +41,10 @@ public class TRpWorktrayhistoryinfoController extends BaseController
{
private String prefix = "nanjing/WorkTrayHistoryInfo";
TRpWorktrayhistoryinfo thi = new TRpWorktrayhistoryinfo();
@Autowired
private ITRpWorktrayhistoryinfoService tRpWorktrayhistoryinfoService;
@Autowired
private ITBdSubstationService substationService;
@RequiresPermissions("nanjing:WorkTrayHistoryInfo:view")
@GetMapping()
@ -53,13 +61,46 @@ public class TRpWorktrayhistoryinfoController extends BaseController
@RequiresPermissions("nanjing:WorkTrayHistoryInfo:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TRpWorktrayhistoryinfo tRpWorktrayhistoryinfo)
{
public TableDataInfo list(TRpWorktrayhistoryinfo t1) throws Exception {
startPage();
List<TRpWorktrayhistoryinfo> list = tRpWorktrayhistoryinfoService.selectTRpWorktrayhistoryinfoList(tRpWorktrayhistoryinfo);
List<TRpWorktrayhistoryinfo> list = tRpWorktrayhistoryinfoService.selectTRpWorktrayhistoryinfoList(t1);
return getDataTable(list);
}
/**
*
* @param t1
* @param request
* @return
* @throws ParseException
*/
@PostMapping("/searchPara")
@ResponseBody
public TableDataInfo searchPara(TRpWorktrayhistoryinfo t1, HttpServletRequest request ) throws ParseException {
startPage();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//注意月份是MM
TRpWorktrayhistoryinfo tRpWorktrayhistoryinfo = new TRpWorktrayhistoryinfo();
String bt = request.getParameter("beginTime");
String et = request.getParameter("endTime");
if(!(bt.equals(""))&&bt!=null){
tRpWorktrayhistoryinfo.setBeginTime(bt);
}else if (!(et.equals(""))&&et!=null){
tRpWorktrayhistoryinfo.setEndTime(et);
}
else
{
String dt = simpleDateFormat.format(new Date());
tRpWorktrayhistoryinfo.setBeginTime("1975-01-01 00:00:000");
tRpWorktrayhistoryinfo.setEndTime(dt);
}
TBdSubstation substation = new TBdSubstation();
substation.setTableName(t1.getSubstation().getTableName());
tRpWorktrayhistoryinfo.setSubstation(substation);
tRpWorktrayhistoryinfo.setRfidNO(request.getParameter("rfidNO"));
List<TRpWorktrayhistoryinfo> list = tRpWorktrayhistoryinfoService.selectTRpWorktrayhistoryinfoList(tRpWorktrayhistoryinfo);
return getDataTable(list);
}
/**
*
*/
@ -67,9 +108,43 @@ public class TRpWorktrayhistoryinfoController extends BaseController
@Log(title = "工位历史生产信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TRpWorktrayhistoryinfo tRpWorktrayhistoryinfo)
public AjaxResult export(TRpWorktrayhistoryinfo t1,HttpServletRequest request)
{
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//注意月份是MM
TRpWorktrayhistoryinfo tRpWorktrayhistoryinfo = new TRpWorktrayhistoryinfo();
String bt = request.getParameter("beginTime");
String et = request.getParameter("endTime");
if(!(bt.equals(""))&&bt!=null){
tRpWorktrayhistoryinfo.setBeginTime(bt);
}else if (!(et.equals(""))&&et!=null){
tRpWorktrayhistoryinfo.setEndTime(et);
}
else
{
String dt = simpleDateFormat.format(new Date());
tRpWorktrayhistoryinfo.setBeginTime("1975-01-01 00:00:000");
tRpWorktrayhistoryinfo.setEndTime(dt);
}
TBdSubstation substation = new TBdSubstation();
substation.setTableName(t1.getSubstation().getTableName());
tRpWorktrayhistoryinfo.setSubstation(substation);
tRpWorktrayhistoryinfo.setRfidNO(request.getParameter("rfidNO"));
List<TRpWorktrayhistoryinfo> list = tRpWorktrayhistoryinfoService.selectTRpWorktrayhistoryinfoList(tRpWorktrayhistoryinfo);
for (TRpWorktrayhistoryinfo th: list) {
if(th.getSubstation()!=null&&th.getSubstation().getStationCode()!=null){
th.setStationCode(th.getSubstation().getStationCode());
}if(th.getStationpara()!=null&&th.getStationpara().getRfidNO()!=null){
th.setRfidNO(th.getStationpara().getRfidNO());
}if( th.getStationpara()!=null&&th.getStationpara().getBarcode()!=null){
th.setBarCode(th.getStationpara().getBarcode());
}if(th.getBarcoderelationship()!=null&&th.getBarcoderelationship().getProductBarcode()!=null){
th.setProductBarcode(th.getBarcoderelationship().getProductBarcode());
}if( th.getStationpara()!=null&&th.getStationpara().getState()!=null){
th.setState(th.getStationpara().getState());
}if( th.getStationpara()!=null&& th.getStationpara().getInsertTime()!=null){
th.setInsertTime(th.getStationpara().getInsertTime());
}
}
ExcelUtil<TRpWorktrayhistoryinfo> util = new ExcelUtil<TRpWorktrayhistoryinfo>(TRpWorktrayhistoryinfo.class);
return util.exportExcel(list, "WorkTrayHistoryInfo");
}

@ -0,0 +1,145 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('时段统计查询')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li>
<label class="required">产品码:</label>
<input type="text" name="semiBarcode" id="semiBarcode" required/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><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="celexport()" shiro:hasPermission="nanjing:ProRpList:export"><i class="fa fa-download"></i> 导出</a>
</li>
</ul>
</div>
</form>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table1"></table>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table2"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "nanjing/selectParaAll";
$(function() {
var formData = new FormData();
formData.append("semiBarcode",$("#semiBarcode").val());
$.ajax({
type: "post",
url: prefix + "/paraAllShow",
data: formData,
contentType: "application/json;charset=utf-8",
dataType: "json",
json: 'callback',
processData: false,
contentType: false,
success: function (json) {
var columnsArray2 = [];
columnsArray2.push({field : "state", title : "产品码",colspan: 1,rowspan: 2});
columnsArray2.push({field : "monitorName",title : "部件码",colspan: 1,rowspan: 2});
columnsArray2.push({field : "monitorType",title : "工位代码",colspan: 1,rowspan: 2});
columnsArray2.push({field : "monitorType",title : "记录时间",colspan: 1,rowspan: 2});
columnsArray2.push({field : "monitorType",title : "参数名称",colspan: 1,rowspan: 2});
columnsArray2.push({field : "monitorType",title : "实测值",colspan: 1,rowspan: 2});
columnsArray2.push({field : "monitorType",title : "最小值",colspan: 1,rowspan: 2});
columnsArray2.push({field : "monitorType",title : "最大值",colspan: 1,rowspan: 2});
columnsArray2.push({field : "monitorType",title : "参数状态",colspan: 1,rowspan: 2});
var columnsArray1 = [];
columnsArray1.push({field : "monitorType",title : "系统条码",colspan: 1,rowspan: 2});
columnsArray1.push({field : "monitorType",title : "产品码",colspan: 1,rowspan: 2});
columnsArray1.push({field : "monitorType",title : "机种类型",colspan: 1,rowspan: 2});
columnsArray1.push({field : "monitorType",title : "返修Y/N",colspan: 1,rowspan: 2});
columnsArray1.push({field : "monitorType",title : "合格状态",colspan: 1,rowspan: 2});
columnsArray1.push({field : "monitorType",title : "完成状态",colspan: 1,rowspan: 2});
columnsArray1.push({field : "monitorType",title : "当前工位",colspan: 1,rowspan: 2});
columnsArray1.push({field : "monitorType",title : "NG工位",colspan: 1,rowspan: 2});
columnsArray1.push({field : "monitorType",title : "标签Y/N",colspan: 1,rowspan: 2});
columnsArray1.push({field : "monitorType",title : "开始时间",colspan: 1,rowspan: 2});
columnsArray1.push({field : "monitorType",title : "结束时间",colspan: 1,rowspan: 2});
$('#bootstrap-table1').bootstrapTable('destroy').bootstrapTable({
id: "bootstrap-table1",
data:json,
toolbar: "#toolbar",
singleSelect: false,
clickToSelect: true,
sortName: "recordTime",
sortOrder: "desc",
pageSize: 50,
pageNumber: 1,
pageList: "[10, 15,25, 50, 100, All]",
showToggle: true,
showRefresh: true,
showColumns: true,
search: false,
pagination: true,
showExport: false,//工具栏上显示导出按钮
columns: columnsArray1
});
$('#bootstrap-table2').bootstrapTable('destroy').bootstrapTable({
id: "bootstrap-table2",
data:json,
toolbar: "#toolbar",
singleSelect: false,
clickToSelect: true,
sortName: "recordTime",
sortOrder: "desc",
pageSize: 50,
pageNumber: 1,
pageList: "[10, 15,25, 50, All]",
showToggle: true,
showRefresh: true,
showColumns: true,
search: false,
pagination: true,
showExport: false,//工具栏上显示导出按钮
columns: columnsArray2
});
},
error: function () {
alert("查询失败!");
}
});
});
function celexport(formId) {
table.set();
$.modal.confirm("确定导出所有" + table.options.modalName + "吗?", function() {
var currentId = $.common.isEmpty(formId) ? $('form').attr('id') : formId;
var params = $("#" + table.options.id).bootstrapTable('getOptions');
var dataParam = $("#" + currentId).serializeArray();
dataParam.push({ "name": "orderByColumn", "value": params.sortName });
dataParam.push({ "name": "isAsc", "value": params.sortOrder });
dataParam.push({"name":"semiBaarcode","value":$("#semiBarcode").val()});
$.modal.loading("正在导出数据,请稍后...");
$.post('nanjing/selectParaAll/export', dataParam, function(result) {
if (result.code == web_status.SUCCESS) {
window.location.href = ctx + "common/download?fileName=" + encodeURI(result.msg) + "&delete=" + true;
} else if (result.code == web_status.WARNING) {
$.modal.alertWarning(result.msg)
} else {
$.modal.alertError(result.msg);
}
$.modal.closeLoading();
});
});
}
</script>
</body>
</html>

@ -0,0 +1,119 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
<th:block th:include="include :: header('时段统计查询')" />
</head>
<body class="gray-bg">
<div class="container-div">
<div class="row">
<div class="col-sm-12 search-collapse">
<form id="formId">
<div class="select-list">
<ul>
<li class="select-time">
<label class="is-required">时间区间: </label>
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="beginTime" required/>
<span>-</span>
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime" required/>
</li>
<li>
<label>机种信息:</label>
<select name="productID">
<option value="">所有</option>
<option th:each="ls:${list}" th:value="${ls.productID}" th:text="${ls.productName}"></option>
</select>
</li>
<li>
<label>状态:</label>
<select name="state" th:with="type=${@dict.getType('proState')}">
<option value="">全部</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>类型:</label>
<select name="productType" th:with="type=${@dict.getType('productType')}">
<option value="">全部</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li>
<label>产品条码:</label>
<input type="text" name="semiBarcode"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><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="$.table.exportExcel()" shiro:hasPermission="nanjing:ProRpList:export"><i class="fa fa-download"></i> 导出</a>
</li>
</ul>
</div>
</form>
</div>
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "nanjing/selectProRpList";
$(function() {
var options = {
url: prefix + "/getData",
exportUrl: prefix + "/export",
modalName: "ProRpList",
pagination:false,
pageSize:100,
columns: [
{
field: 'barcode',
title: '系统条码'
},
{
field: 'productName',
title: '机种名称'
},
{
field: 'semiBarcode',
title: '产品条码'
},
{
field: 'state',
title: '状态'
},
{
field: 'currentStation',
title: '当前工位'
},
{
field: 'NGStation',
title: 'NG工位'
},
{
field: 'finishFlag',
title: '完成标志'
},
{
field: 'namePlateInfo',
title: '标签Y/N'
},
{
field: 'isDis',
title: '返修Y/N'
},
{
field: 'beginTime',
title: '开始时间'
},
{
field: 'endTime',
title: '结束时间'
},
]
};
$.table.init(options);
});
</script>
</body>
</html>

@ -12,20 +12,19 @@
<ul>
<li class="select-time">
<label>时间区间: </label>
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
<input type="text" class="time-input" id="beginTime" placeholder="开始时间" name="beginTime" required="required"/>
<span>-</span>
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime" required="required"/>
</li>
<li>
<label> 工位代码:</label>
<select name="substation.TableName" required>
<option value="">全部</option>
<select name="substation.TableName" id="tableName" required>
<option th:each="ls : ${list}" th:text="${ls.StationCode}" th:value="${ls.TableName}"></option>
</select>
</li>
<li>
<label>托盘RFID码</label>
<input type="text" name="stationpara.rfidNO"/>
托盘RFID码
<input type="text" name="rfidNO" id="rfidno"/>
</li>
<li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
@ -36,20 +35,20 @@
</div>
</form>
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<li>
<label>总数量:</label>
<input type="text" name="count" th:field="*{count}" readonly/>
</li>
<li>
<label>合格数量:</label>
<input type="text" name="okNum" th:field="*{okNum}" readonly/>
</li>
<li>
<label>合格率:</label>
<input type="text" name="okRate" th:field="*{okRate}" readonly/>
</li>
</div>
<!-- <div class="btn-group-sm" id="toolbar" role="group">-->
<!-- <li>-->
<!-- <label>总数量:</label>-->
<!-- <input type="text" name="count" th:value="${count}" readonly/>-->
<!-- </li>-->
<!-- <li>-->
<!-- <label>合格数量:</label>-->
<!--&lt;!&ndash; <input type="text" name="okNum" th:field="*{okNum}" readonly/>&ndash;&gt;-->
<!-- </li>-->
<!-- <li>-->
<!-- <label>合格率:</label>-->
<!--&lt;!&ndash; <input type="text" name="okRate" th:field="*{okRate}" readonly/>&ndash;&gt;-->
<!-- </li>-->
<!-- </div>-->
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
@ -59,17 +58,17 @@
<script th:inline="javascript">
var editFlag = [[${@permission.hasPermi('nanjing:WorkTrayHistoryInfo:edit')}]];
var removeFlag = [[${@permission.hasPermi('nanjing:WorkTrayHistoryInfo:remove')}]];
var stateDatas = [[${@dict.getType('palletState')}]];
var datas = [[${@dict.getType('proState')}]];
var prefix = ctx + "nanjing/WorkTrayHistoryInfo";
$(function() {
var options = {
url: prefix + "/list",
url: prefix + "/searchPara",
exportUrl: prefix + "/export",
modalName: "工位历史生产信息",
// datas:formData,
columns: [
{
field: 'substation.StationCode',
field: 'substation.stationCode',
title: '工位码'
},
{
@ -86,12 +85,29 @@
},
{
field: 'stationpara.state',
title: '状态'
title: '状态',
formatter: function(value, row, index) {
return $.table.selectDictLabel(datas, value);
}
},
// {
// field : 'count',
// title : '合格率',
// footerFormatter:function (value) {
// var count = 0;
// var okNUm = 0;
// for (var i in value) {
// console.log(i.toString());
// count +=1;
// // sumBalance += parseFloat(value[i].userBalance);
// }
// return "总数量:" + count;
// }
// },
{
field: 'stationpara.insertTime',
title: '记录时间'
}
},
]
};
$.table.init(options);

@ -0,0 +1,230 @@
package com.ruoyi.nanjing.domain;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;
public class ParaAllShow extends BaseEntity {
private static final long serialVersionUID = 1L;
// private ProParaInfo proParaInfo;
// private ProRpList proRpList;
@Excel(name = "系统条码")
private String barcode;
@Excel(name = "机种名称")
private String productName;
@Excel(name = "产品条码")
private String semiBarcode;
@Excel(name = "状态")
private String state;
@Excel(name = "当前工位")
private String currentStation;
@Excel(name = "NG工位")
private String NGStation;
@Excel(name = "完成标志")
private String finishFlag;
@Excel(name = "标签Y/N")
private String namePlateInfo;
@Excel(name = "返修Y/N")
private String isDis;
@Excel(name = "开始时间" ,width = 30,dateFormat = "yyyy-MM-dd")
private Date beginTime;
@Excel(name = "结束时间",width = 30,dateFormat = "yyyy-MM-dd")
private Date endTime;
@Excel(name = "部件码")
private String proBarcode;
// private String semiBarcode;
@Excel(name = "部件码")
private String stationCode;
@Excel(name = "记录时间")
private Date insertTime;
@Excel(name = "参数名称")
private String paraName;
@Excel(name = "实测值")
private String realVal;
@Excel(name = "最小值")
private String minVal;
@Excel(name = "最大值")
private String maxVal;
@Excel(name = "参数状态")
private String paraState;
@Override
public String toString() {
return "ParaAllShow{" +
"barcode='" + barcode + '\'' +
", productName='" + productName + '\'' +
", semiBarcode='" + semiBarcode + '\'' +
", state='" + state + '\'' +
", currentStation='" + currentStation + '\'' +
", NGStation='" + NGStation + '\'' +
", finishFlag='" + finishFlag + '\'' +
", namePlateInfo='" + namePlateInfo + '\'' +
", isDis='" + isDis + '\'' +
", beginTime=" + beginTime +
", endTime=" + endTime +
", proBarcode='" + proBarcode + '\'' +
", stationCode='" + stationCode + '\'' +
", insertTime=" + insertTime +
", paraName='" + paraName + '\'' +
", realVal='" + realVal + '\'' +
", minVal='" + minVal + '\'' +
", maxVal='" + maxVal + '\'' +
", paraState='" + paraState + '\'' +
'}';
}
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getSemiBarcode() {
return semiBarcode;
}
public void setSemiBarcode(String semiBarcode) {
this.semiBarcode = semiBarcode;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public String getCurrentStation() {
return currentStation;
}
public void setCurrentStation(String currentStation) {
this.currentStation = currentStation;
}
public String getNGStation() {
return NGStation;
}
public void setNGStation(String NGStation) {
this.NGStation = NGStation;
}
public String getFinishFlag() {
return finishFlag;
}
public void setFinishFlag(String finishFlag) {
this.finishFlag = finishFlag;
}
public String getNamePlateInfo() {
return namePlateInfo;
}
public void setNamePlateInfo(String namePlateInfo) {
this.namePlateInfo = namePlateInfo;
}
public String getIsDis() {
return isDis;
}
public void setIsDis(String isDis) {
this.isDis = isDis;
}
public Date getBeginTime() {
return beginTime;
}
public void setBeginTime(Date beginTime) {
this.beginTime = beginTime;
}
public Date getEndTime() {
return endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
public String getProBarcode() {
return proBarcode;
}
public void setProBarcode(String proBarcode) {
this.proBarcode = proBarcode;
}
public String getStationCode() {
return stationCode;
}
public void setStationCode(String stationCode) {
this.stationCode = stationCode;
}
public Date getInsertTime() {
return insertTime;
}
public void setInsertTime(Date insertTime) {
this.insertTime = insertTime;
}
public String getParaName() {
return paraName;
}
public void setParaName(String paraName) {
this.paraName = paraName;
}
public String getRealVal() {
return realVal;
}
public void setRealVal(String realVal) {
this.realVal = realVal;
}
public String getMinVal() {
return minVal;
}
public void setMinVal(String minVal) {
this.minVal = minVal;
}
public String getMaxVal() {
return maxVal;
}
public void setMaxVal(String maxVal) {
this.maxVal = maxVal;
}
public String getParaState() {
return paraState;
}
public void setParaState(String paraState) {
this.paraState = paraState;
}
}

@ -0,0 +1,114 @@
package com.ruoyi.nanjing.domain;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;
public class ProParaInfo extends BaseEntity {
private static final long serialVersionUID = 1L;
private String proBarcode;
private String semiBarcode;
private String stationCode;
private Date insertTime;
private String paraName;
private String realVal;
private String minVal;
private String maxVal;
private String paraState;
public String getProBarcode() {
return proBarcode;
}
public void setProBarcode(String proBarcode) {
this.proBarcode = proBarcode;
}
public String getSemiBarcode() {
return semiBarcode;
}
public void setSemiBarcode(String semiBarcode) {
this.semiBarcode = semiBarcode;
}
public String getStationCode() {
return stationCode;
}
public void setStationCode(String stationCode) {
this.stationCode = stationCode;
}
public Date getInsertTime() {
return insertTime;
}
public void setInsertTime(Date insertTime) {
this.insertTime = insertTime;
}
public String getParaName() {
return paraName;
}
public void setParaName(String paraName) {
this.paraName = paraName;
}
public String getRealVal() {
return realVal;
}
public void setRealVal(String realVal) {
this.realVal = realVal;
}
public String getMinVal() {
return minVal;
}
public void setMinVal(String minVal) {
this.minVal = minVal;
}
public String getMaxVal() {
return maxVal;
}
public void setMaxVal(String maxVal) {
this.maxVal = maxVal;
}
public String getParaState() {
return paraState;
}
public void setParaState(String paraState) {
this.paraState = paraState;
}
@Override
public String toString() {
return "ProParaInfo{" +
"proBarcode='" + proBarcode + '\'' +
", semiBarcode='" + semiBarcode + '\'' +
", stationCode='" + stationCode + '\'' +
", insertTime=" + insertTime +
", paraName='" + paraName + '\'' +
", realVal='" + realVal + '\'' +
", minVal='" + minVal + '\'' +
", maxVal='" + maxVal + '\'' +
", paraState='" + paraState + '\'' +
'}';
}
}

@ -0,0 +1,160 @@
package com.ruoyi.nanjing.domain;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;
/**
*
* @author limy
* @date 2021-01-29
*/
public class ProRpList extends BaseEntity {
private static final long serialVersionUID = 1L;
@Excel(name = "系统条码")
private String barcode;
@Excel(name = "机种名称")
private String productName;
@Excel(name = "产品条码")
private String semiBarcode;
@Excel(name = "状态")
private String state;
@Excel(name = "当前工位")
private String currentStation;
@Excel(name = "NG工位")
private String NGStation;
@Excel(name = "完成标志")
private String finishFlag;
@Excel(name = "标签Y/N")
private String namePlateInfo;
@Excel(name = "返修Y/N")
private String isDis;
@Excel(name = "开始时间" ,width = 30,dateFormat = "yyyy-MM-dd")
private Date beginTime;
@Excel(name = "结束时间",width = 30,dateFormat = "yyyy-MM-dd")
private Date endTime;
private String productID;
private String productType;
public String getProductID() {
return productID;
}
public void setProductID(String productID) {
this.productID = productID;
}
public String getProductType() {
return productType;
}
public void setProductType(String productType) {
this.productType = productType;
}
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getSemiBarcode() {
return semiBarcode;
}
public void setSemiBarcode(String semiBarcode) {
this.semiBarcode = semiBarcode;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public String getCurrentStation() {
return currentStation;
}
public void setCurrentStation(String currentStation) {
this.currentStation = currentStation;
}
public String getNGStation() {
return NGStation;
}
public void setNGStation(String NGStation) {
this.NGStation = NGStation;
}
public String getFinishFlag() {
return finishFlag;
}
public void setFinishFlag(String finishFlag) {
this.finishFlag = finishFlag;
}
public String getNamePlateInfo() {
return namePlateInfo;
}
public void setNamePlateInfo(String namePlateInfo) {
this.namePlateInfo = namePlateInfo;
}
public String getIsDis() {
return isDis;
}
public void setIsDis(String isDis) {
this.isDis = isDis;
}
public Date getBeginTime() {
return beginTime;
}
public void setBeginTime(Date beginTime) {
this.beginTime = beginTime;
}
public Date getEndTime() {
return endTime;
}
public void setEndTime(Date endTime) {
this.endTime = endTime;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("barcode", getBarcode())
.append("productName", getProductName())
.append("semiBarcode", getSemiBarcode())
.append("state", getState())
.append("currentStation", getCurrentStation())
.append("NGStation", getNGStation())
.append("finishFlag", getFinishFlag())
.append("namePlateInfo", getNamePlateInfo())
.append("isDis", getIsDis())
.append("beginTime", getBeginTime())
.append("endTime", getEndTime())
.toString();
}
}

@ -5,6 +5,8 @@ import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;
/**
* T_RP_WorkTrayHistoryInfo
*
@ -16,26 +18,94 @@ public class TRpWorktrayhistoryinfo extends BaseEntity
private static final long serialVersionUID = 1L;
/** 当前工位 */
@Excel(name = "当前工位")
// @Excel(name = "当前工位")
private String currentStation;
/** RFID条码 */
// @Excel(name = "RFID条码")
private String rfidNum;
// @Excel(name = "工位码")
private TBdSubstation substation;
// @Excel(name = "产品码")
private TRpBarcoderelationship barcoderelationship;
@Excel(name = "工位码")
private String stationCode;
@Excel(name = "托盘条码")
private String rfidNO;
/** 系统条码 */
@Excel(name = "系统条码")
private String barCode;
@Excel(name = "部件码")
private String productBarcode;
/** RFID条码 */
@Excel(name = "RFID条码")
private String rfidNum;
public String getStationCode() {
return stationCode;
}
public void setStationCode(String stationCode) {
this.stationCode = stationCode;
}
public String getProductBarcode() {
return productBarcode;
}
public void setProductBarcode(String productBarcode) {
this.productBarcode = productBarcode;
}
public Date getInsertTime() {
return insertTime;
}
public void setInsertTime(Date insertTime) {
this.insertTime = insertTime;
}
private int count;
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
/** 质量品级 */
@Excel(name = "质量品级")
@Excel(name = "状态")
private String state;
@Excel(name = "记录时间",width = 30, dateFormat = "yyyy-MM-dd")
private Date insertTime;
private String beginTime;
@Excel(name = "工位码")
private TBdSubstation substation;
public String getBeginTime() {
return beginTime;
}
@Excel(name = "产品码")
private TRpBarcoderelationship barcoderelationship;
public void setBeginTime(String beginTime) {
this.beginTime = beginTime;
}
public String getEndTime() {
return endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
private String endTime;
public String getRfidNO() {return rfidNO;}
public void setRfidNO(String rfidNO) {
this.rfidNO = rfidNO;
}
private TRpStationpara stationpara;

@ -1,6 +1,9 @@
package com.ruoyi.nanjing.mapper;
import java.util.List;
import java.util.Map;
import com.ruoyi.nanjing.domain.ProRpList;
import com.ruoyi.nanjing.domain.TBdProducttype;
/**
@ -11,13 +14,6 @@ import com.ruoyi.nanjing.domain.TBdProducttype;
*/
public interface TBdProducttypeMapper
{
/**
*
*
* @param ID ID
* @return
*/
public TBdProducttype selectTBdProducttypeById(Long ID);
/**
*
@ -27,37 +23,7 @@ public interface TBdProducttypeMapper
*/
public List<TBdProducttype> selectTBdProducttypeList(TBdProducttype tBdProducttype);
/**
*
*
* @param tBdProducttype
* @return
*/
public int insertTBdProducttype(TBdProducttype tBdProducttype);
/**
*
*
* @param tBdProducttype
* @return
*/
public int updateTBdProducttype(TBdProducttype tBdProducttype);
/**
*
*
* @param ID ID
* @return
*/
public int deleteTBdProducttypeById(Long ID);
/**
*
*
* @param IDs ID
* @return
*/
public int deleteTBdProducttypeByIds(String[] IDs);
List<TBdProducttype> selectTBdProducttype();
List<ProRpList> selectProLists(Map map);
}

@ -1,6 +1,9 @@
package com.ruoyi.nanjing.mapper;
import java.util.List;
import java.util.Map;
import com.ruoyi.nanjing.domain.ProRpList;
import com.ruoyi.nanjing.domain.TSyTracestate;
/**
@ -58,4 +61,6 @@ public interface TSyTracestateMapper
* @return
*/
public int deleteTSyTracestateByIds(String[] barcodes);
List<ProRpList> selectAllPara(Map map);
}

@ -1,7 +1,11 @@
package com.ruoyi.nanjing.service;
import java.util.List;
import java.util.Map;
import com.ruoyi.nanjing.domain.ProRpList;
import com.ruoyi.nanjing.domain.TBdProducttype;
import com.ruoyi.nanjing.domain.TRpProductchangeinfo;
/**
* Service
@ -11,13 +15,6 @@ import com.ruoyi.nanjing.domain.TBdProducttype;
*/
public interface ITBdProducttypeService
{
/**
*
*
* @param ID ID
* @return
*/
public TBdProducttype selectTBdProducttypeById(Long ID);
/**
*
@ -27,38 +24,9 @@ public interface ITBdProducttypeService
*/
public List<TBdProducttype> selectTBdProducttypeList(TBdProducttype tBdProducttype);
/**
*
*
* @param tBdProducttype
* @return
*/
public int insertTBdProducttype(TBdProducttype tBdProducttype);
/**
*
*
* @param tBdProducttype
* @return
*/
public int updateTBdProducttype(TBdProducttype tBdProducttype);
/**
*
*
* @param ids ID
* @return
*/
public int deleteTBdProducttypeByIds(String ids);
/**
*
*
* @param ID ID
* @return
*/
public int deleteTBdProducttypeById(Long ID);
// 查询最新添加的机种信息
List<TBdProducttype> selectTBdProducttype();
List<ProRpList> selectProLists(Map map);
}

@ -1,6 +1,9 @@
package com.ruoyi.nanjing.service;
import java.util.List;
import java.util.Map;
import com.ruoyi.nanjing.domain.ProRpList;
import com.ruoyi.nanjing.domain.TSyTracestate;
/**
@ -58,4 +61,6 @@ public interface ITSyTracestateService
* @return
*/
public int deleteTSyTracestateById(String barcode);
List<ProRpList> selectAllPara(Map map);
}

@ -1,6 +1,9 @@
package com.ruoyi.nanjing.service.impl;
import java.util.List;
import java.util.Map;
import com.ruoyi.nanjing.domain.ProRpList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.nanjing.mapper.TBdProducttypeMapper;
@ -20,18 +23,6 @@ public class TBdProducttypeServiceImpl implements ITBdProducttypeService
@Autowired
private TBdProducttypeMapper tBdProducttypeMapper;
/**
*
*
* @param ID ID
* @return
*/
@Override
public TBdProducttype selectTBdProducttypeById(Long ID)
{
return tBdProducttypeMapper.selectTBdProducttypeById(ID);
}
/**
*
*
@ -44,56 +35,13 @@ public class TBdProducttypeServiceImpl implements ITBdProducttypeService
return tBdProducttypeMapper.selectTBdProducttypeList(tBdProducttype);
}
/**
*
*
* @param tBdProducttype
* @return
*/
@Override
public int insertTBdProducttype(TBdProducttype tBdProducttype)
{
return tBdProducttypeMapper.insertTBdProducttype(tBdProducttype);
}
/**
*
*
* @param tBdProducttype
* @return
*/
@Override
public int updateTBdProducttype(TBdProducttype tBdProducttype)
{
return tBdProducttypeMapper.updateTBdProducttype(tBdProducttype);
}
/**
*
*
* @param ids ID
* @return
*/
@Override
public int deleteTBdProducttypeByIds(String ids)
{
return tBdProducttypeMapper.deleteTBdProducttypeByIds(Convert.toStrArray(ids));
}
/**
*
*
* @param ID ID
* @return
*/
@Override
public int deleteTBdProducttypeById(Long ID)
{
return tBdProducttypeMapper.deleteTBdProducttypeById(ID);
public List<TBdProducttype> selectTBdProducttype() {
return tBdProducttypeMapper.selectTBdProducttype();
}
@Override
public List<TBdProducttype> selectTBdProducttype() {
return tBdProducttypeMapper.selectTBdProducttype();
public List<ProRpList> selectProLists(Map map) {
return tBdProducttypeMapper.selectProLists(map);
}
}

@ -1,6 +1,9 @@
package com.ruoyi.nanjing.service.impl;
import java.util.List;
import java.util.Map;
import com.ruoyi.nanjing.domain.ProRpList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.nanjing.mapper.TSyTracestateMapper;
@ -91,4 +94,11 @@ public class TSyTracestateServiceImpl implements ITSyTracestateService
{
return tSyTracestateMapper.deleteTSyTracestateById(barcode);
}
@Override
public List<ProRpList> selectAllPara(Map map) {
return tSyTracestateMapper.selectAllPara(map);
}
}

@ -10,6 +10,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="ProductTypeName" column="ProductTypeName" />
</resultMap>
<resultMap id="ProRpList" type="com.ruoyi.nanjing.domain.ProRpList">
<result property="barcode" column="Barcode"/>
<result property="productName" column="ProductName"/>
<result property="semiBarcode" column="SemiBarcode_A"/>
<result property="state" column="State"/>
<result property="currentStation" column="CurrentStation"/>
<result property="NGStation" column="NGStation"/>
<result property="finishFlag" column="FinishFlag"/>
<result property="namePlateInfo" column="NamePlateInfo"/>
<result property="isDis" column="IsDis"/>
<result property="beginTime" column="BeginTime"/>
<result property="endTime" column="EndTime"/>
</resultMap>
<sql id="selectTBdProducttypeVo">
select ID, ProductTypeID, ProductTypeName from T_BD_ProductType
</sql>
@ -25,43 +40,72 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="selectTBdProducttypeById" parameterType="Long" resultMap="TBdProducttypeResult">
<include refid="selectTBdProducttypeVo"/>
where ID = #{ID}
<select id="selectProLists" parameterType="map" statementType="CALLABLE" resultMap="ProRpList">
{
call pro_ProRpList
(
#{beginTime,mode=IN,jdbcType=DATE},
#{endTime,mode=IN,jdbcType=DATE},
#{semiBarcode,mode=IN,jdbcType=VARCHAR},
#{state,mode=IN,jdbcType=VARCHAR},
#{productId,mode=IN,jdbcType=VARCHAR},
#{productType,mode=IN,jdbcType=VARCHAR}
)
}
</select>
<insert id="insertTBdProducttype" parameterType="TBdProducttype">
insert into T_BD_ProductType
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="ID != null">ID,</if>
<if test="ProductTypeID != null">ProductTypeID,</if>
<if test="ProductTypeName != null">ProductTypeName,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="ID != null">#{ID},</if>
<if test="ProductTypeID != null">#{ProductTypeID},</if>
<if test="ProductTypeName != null">#{ProductTypeName},</if>
</trim>
</insert>
<update id="updateTBdProducttype" parameterType="TBdProducttype">
update T_BD_ProductType
<trim prefix="SET" suffixOverrides=",">
<if test="ProductTypeID != null">ProductTypeID = #{ProductTypeID},</if>
<if test="ProductTypeName != null">ProductTypeName = #{ProductTypeName},</if>
</trim>
where ID = #{ID}
</update>
<delete id="deleteTBdProducttypeById" parameterType="Long">
delete from T_BD_ProductType where ID = #{ID}
</delete>
<delete id="deleteTBdProducttypeByIds" parameterType="String">
delete from T_BD_ProductType where ID in
<foreach item="ID" collection="array" open="(" separator="," close=")">
#{ID}
</foreach>
</delete>
<!-- <insert id="insertTBdProducttype" parameterType="TBdProducttype">-->
<!-- insert into T_BD_ProductType-->
<!-- <trim prefix="(" suffix=")" suffixOverrides=",">-->
<!-- <if test="ID != null">ID,</if>-->
<!-- <if test="ProductTypeID != null">ProductTypeID,</if>-->
<!-- <if test="ProductTypeName != null">ProductTypeName,</if>-->
<!-- </trim>-->
<!-- <trim prefix="values (" suffix=")" suffixOverrides=",">-->
<!-- <if test="ID != null">#{ID},</if>-->
<!-- <if test="ProductTypeID != null">#{ProductTypeID},</if>-->
<!-- <if test="ProductTypeName != null">#{ProductTypeName},</if>-->
<!-- </trim>-->
<!-- </insert>-->
<!-- <update id="updateTBdProducttype" parameterType="TBdProducttype">-->
<!-- update T_BD_ProductType-->
<!-- <trim prefix="SET" suffixOverrides=",">-->
<!-- <if test="ProductTypeID != null">ProductTypeID = #{ProductTypeID},</if>-->
<!-- <if test="ProductTypeName != null">ProductTypeName = #{ProductTypeName},</if>-->
<!-- </trim>-->
<!-- where ID = #{ID}-->
<!-- </update>-->
<!-- <delete id="deleteTBdProducttypeById" parameterType="Long">-->
<!-- delete from T_BD_ProductType where ID = #{ID}-->
<!-- </delete>-->
<!-- <delete id="deleteTBdProducttypeByIds" parameterType="String">-->
<!-- delete from T_BD_ProductType where ID in-->
<!-- <foreach item="ID" collection="array" open="(" separator="," close=")">-->
<!-- #{ID}-->
<!-- </foreach>-->
<!-- </delete>-->
</mapper>

@ -31,7 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<resultMap id="staCode" type="com.ruoyi.nanjing.domain.TBdSubstation">
<result property="StationCode" column="StationCode" />
<result property="StationCode" column="StationCode"/>
</resultMap>
<resultMap id="proBarcode" type="com.ruoyi.nanjing.domain.TRpBarcoderelationship">
<result property="productBarcode" column="ProductBarcode" />
@ -39,18 +39,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectTRpWorktrayhistoryinfoVo">
select * from T_RP_WorkTrayHistoryInfo
</sql>
<select id="selectTRpWorktrayhistoryinfoList" parameterType="TRpWorktrayhistoryinfo" resultMap="TRpWorktrayhistoryinfoResult">
<select id="selectTRpWorktrayhistoryinfoList" parameterType="TRpWorktrayhistoryinfo" resultMap="TRpWorktrayhistoryinfoResult" statementType="STATEMENT">
select t3.StationCode ,t1.RFIDNO, t1.Barcode,t2.ProductBarcode,
t1.State,t1.InsertTime from #{substation.TableName} t1
t1.State,t1.InsertTime from ${substation.TableName} t1
left join T_RP_BarcodeRelationShip t2 on t1.SemiBarcode=t2.SemiBarcode_Line
left join T_BD_SubStation t3 on t1.StationID=t3.StationID
<where>
<if test="stationpara.rfidNO != null "> and t1.RFIDNO = #{stationpara.rfidNO}</if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
AND datediff(dd,#{params.beginTime},t1.InsertTime)>=0
<if test="rfidNO != '' and rfidNO != null "> t1.RFIDNO = ${rfidNO}</if>
<if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 -->
AND t1.InsertTime >= '${beginTime}'
</if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
AND datediff(dd,t1.EndTime,#{params.InsertTime})>=0
<if test="endTime != null and endTime != ''"><!-- 结束时间检索 -->
AND '${endTime}' >= t1.InsertTime
</if>
</where>
</select>

@ -32,6 +32,28 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="d9Remark" column="D9Remark" />
</resultMap>
<resultMap id="paraAll" type="com.ruoyi.nanjing.domain.ParaAllShow">
<result property="barcode" column="Barcode" />
<result property="productName" column="ProductID" />
<result property="semiBarcode" column="BeginTime" />
<result property="state" column="EndTime" />
<result property="currentStation" column="ShiftID" />
<result property="NGStation" column="GroupID" />
<result property="finishFlag" column="ShiftNo" />
<result property="namePlateInfo" column="SemiBarcode_A" />
<result property="isDis" column="SemiBarcode_B" />
<result property="beginTime" column="SemiBarcode_C" />
<result property="endTime" column="ProductBarcode" />
<result property="proBarcode" column="SemiBarcode2" />
<result property="stationCode" column="shellbarcode" />
<result property="insertTime" column="NameplateInfo" />
<result property="paraName" column="MarkRecord" />
<result property="realVal" column="Attr1" />
<result property="minVal" column="Attr2" />
<result property="maxVal" column="ISDis" />
<result property="paraState" column="DisChecker" />
</resultMap>
<sql id="selectTSyTracestateVo">
select Barcode, ProductID, BeginTime, EndTime, ShiftID, GroupID, ShiftNo, SemiBarcode_A, SemiBarcode_B, SemiBarcode_C, ProductBarcode, SemiBarcode2, shellbarcode, NameplateInfo, MarkRecord, Attr1, Attr2, ISDis, DisChecker, DisTime, State, CurrentStationID, NGStationID, FinishFlag, D9Remark from T_SY_TraceState
</sql>
@ -47,6 +69,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where Barcode = #{barcode}
</select>
<select id="selectAllPara" parameterType="map" resultMap="paraAll" statementType="CALLABLE">
{
call pro_AllParaShowInfo_Net
(
#{semiBarcode,mode=IN,jdbcType=VARCHAR}
#{beginTime,mode=IN,jdbcType=VARCHAR}
#{endTime,mode=IN,jdbcType=VARCHAR}
)
}
</select>
<insert id="insertTSyTracestate" parameterType="TSyTracestate">
insert into T_SY_TraceState
<trim prefix="(" suffix=")" suffixOverrides=",">

Loading…
Cancel
Save