Merge remote-tracking branch 'origin/master'
commit
28e2f90ce5
@ -0,0 +1,51 @@
|
|||||||
|
package com.op.open.config;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DataSourceProperty;
|
||||||
|
import com.op.common.core.domain.R;
|
||||||
|
import com.op.common.datasource.creator.DynamicDatasourceCreator;
|
||||||
|
import com.op.system.api.RemoteUserService;
|
||||||
|
import com.op.system.api.domain.SysUser;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.PostConstruct;
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 初始化动态数据源
|
||||||
|
*
|
||||||
|
* @ClassName: DynamicDatasource
|
||||||
|
* @Description: TODO
|
||||||
|
* @author shichangzhou
|
||||||
|
* @date 2023年4月19日 下午1:01:30
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class DynamicDatasource {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private DynamicDatasourceCreator dynamicDatasourceCreator;
|
||||||
|
@Autowired
|
||||||
|
private RemoteUserService remoteUserService;
|
||||||
|
|
||||||
|
@PostConstruct
|
||||||
|
public void init() {
|
||||||
|
// 加载sf-cloud库的sys_datasource
|
||||||
|
SysUser sysUser = new SysUser();
|
||||||
|
sysUser.setUserId(1L);
|
||||||
|
R<List<Map<String, String>>> dateSources0 = remoteUserService.getPoolNameList(sysUser);
|
||||||
|
List<Map<String, String>> dateSources = dateSources0.getData();
|
||||||
|
for (Map<String, String> dateSource : dateSources) {
|
||||||
|
DataSourceProperty sdp = new DataSourceProperty();
|
||||||
|
sdp.setUrl(dateSource.get("url"));
|
||||||
|
sdp.setUsername(dateSource.get("userName"));
|
||||||
|
sdp.setPassword(dateSource.get("password"));
|
||||||
|
sdp.setDriverClassName(dateSource.get("driveClassName"));
|
||||||
|
sdp.setPoolName(dateSource.get("poolName"));// 这是数据源的key
|
||||||
|
sdp.setLazy(false);
|
||||||
|
dynamicDatasourceCreator.createDynamicDataSource(sdp);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
package com.op.open.mapper;
|
||||||
|
|
||||||
|
import com.op.system.api.domain.SysSapLog;
|
||||||
|
import com.op.system.api.domain.mes.MesReportWorkDTO;
|
||||||
|
import com.op.system.api.domain.mes.ProOrderWorkorderDTO;
|
||||||
|
import com.op.system.api.domain.mes.ProRfidProcessDetail;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生产rfid流程Mapper接口
|
||||||
|
*
|
||||||
|
* @author Open Platform
|
||||||
|
* @date 2023-08-18
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface OpenMapper {
|
||||||
|
|
||||||
|
public ProRfidProcessDetail getRfidInfo(String rfidNo);
|
||||||
|
|
||||||
|
public String getStationType(String equipmentCode);
|
||||||
|
|
||||||
|
Integer getEquipNum(String machineCode);
|
||||||
|
|
||||||
|
String getEquipStatus(String machineCode);
|
||||||
|
|
||||||
|
String getEquipMode(String machineCode);
|
||||||
|
|
||||||
|
List<MesReportWorkDTO> getReportWorkList(MesReportWorkDTO mesReportWork);
|
||||||
|
|
||||||
|
void addSapLog(SysSapLog sysSapLog);
|
||||||
|
|
||||||
|
void updateSyncSapStatus(MesReportWorkDTO work);
|
||||||
|
|
||||||
|
MesReportWorkDTO getProdResult(MesReportWorkDTO work);
|
||||||
|
|
||||||
|
void updateWorkOrderStatus(MesReportWorkDTO work);
|
||||||
|
|
||||||
|
ProOrderWorkorderDTO getOrderByCode(String workorderCode);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,18 @@
|
|||||||
|
package com.op.open.service;
|
||||||
|
|
||||||
|
import com.op.common.core.domain.R;
|
||||||
|
import com.op.system.api.domain.dto.WCSDTO;
|
||||||
|
import com.op.system.api.domain.mes.MesReportWorkDTO;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单Service接口
|
||||||
|
*
|
||||||
|
* @author Open Platform
|
||||||
|
* @date 2023-07-13
|
||||||
|
*/
|
||||||
|
public interface OpenService {
|
||||||
|
|
||||||
|
WCSDTO requestDestinationStations(WCSDTO wcsdto);
|
||||||
|
|
||||||
|
R reportWork(MesReportWorkDTO mesReportWork);
|
||||||
|
}
|
@ -1,12 +1,12 @@
|
|||||||
# Tomcat
|
# Tomcat
|
||||||
server:
|
server:
|
||||||
port: 9211
|
port: 9214
|
||||||
|
|
||||||
# Spring
|
# Spring
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
# 应用名称
|
# 应用名称
|
||||||
name: op-scada
|
name: op-open
|
||||||
profiles:
|
profiles:
|
||||||
# 环境配置
|
# 环境配置
|
||||||
active: dev
|
active: dev
|
@ -0,0 +1,112 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.op.open.mapper.OpenMapper">
|
||||||
|
<insert id="addSapLog">
|
||||||
|
insert into sys_sap_log
|
||||||
|
(id,messsge,create_time,reqcode,method,remark,status)
|
||||||
|
values(
|
||||||
|
#{id},#{messsge}, #{createTime}, #{reqcode},#{method},#{remark},#{status})
|
||||||
|
</insert>
|
||||||
|
<update id="updateSyncSapStatus">
|
||||||
|
update mes_report_work
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="uploadTime != null">upload_time = #{uploadTime},</if>
|
||||||
|
<if test="uploadStatus != null">upload_status = #{uploadStatus},</if>
|
||||||
|
<if test="uploadMsg != null">upload_msg = #{uploadMsg},</if>
|
||||||
|
</trim>
|
||||||
|
where 1=1
|
||||||
|
<if test="id != null">
|
||||||
|
and id = #{id}
|
||||||
|
</if>
|
||||||
|
<if test="reportCode != null">
|
||||||
|
and report_code = #{reportCode}
|
||||||
|
</if>
|
||||||
|
</update>
|
||||||
|
<update id="updateWorkOrderStatus">
|
||||||
|
update pro_order_workorder set status = #{status} where workorder_code = #{workorderCode}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<!--获取在邦rfid 工单的信息-->
|
||||||
|
<select id="getRfidInfo" resultType="com.op.system.api.domain.mes.ProRfidProcessDetail">
|
||||||
|
select
|
||||||
|
top 1
|
||||||
|
rfid.workorder_code workorderCode,
|
||||||
|
rfid.now_process_id nowProcessId,
|
||||||
|
rfid.next_process_id nextProcessId,
|
||||||
|
p.equipment machineCode,
|
||||||
|
bp.product_code productCode,
|
||||||
|
bp.product_model productModel,
|
||||||
|
w.prod_line_code prodLineCode
|
||||||
|
from pro_rfid_process_detail rfid
|
||||||
|
left join pro_process p on p.process_id = rfid.next_process_id
|
||||||
|
left join pro_order_workorder w on w.workorder_code = rfid.workorder_code
|
||||||
|
left join base_product bp on bp.product_code = w.product_code
|
||||||
|
where rfid.bind_status = '1'
|
||||||
|
and rfid.rfid = #{rfidNo}
|
||||||
|
order by rfid.create_time desc
|
||||||
|
</select>
|
||||||
|
<select id="getStationType" resultType="java.lang.String">
|
||||||
|
select
|
||||||
|
case when equipment_type_code ='equ_type_spj' then '3'
|
||||||
|
when equipment_type_code ='equ_type_hf' then '2'
|
||||||
|
else '' end
|
||||||
|
from base_equipment
|
||||||
|
where equipment_code = #{equipmentCode}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="getEquipNum" resultType="java.lang.Integer">
|
||||||
|
select isvalue from base_equipment_attached
|
||||||
|
where property = 'dollyNumber'
|
||||||
|
and device_code = #{machineCode}
|
||||||
|
</select>
|
||||||
|
<select id="getEquipStatus" resultType="java.lang.String">
|
||||||
|
select status from base_equipment where equipment_code = #{machineCode} and del_flag = '0'
|
||||||
|
</select>
|
||||||
|
<select id="getEquipMode" resultType="java.lang.String">
|
||||||
|
select isvalue from base_equipment_attached
|
||||||
|
where property = 'Mode'
|
||||||
|
and device_code = #{machineCode}
|
||||||
|
</select>
|
||||||
|
<select id="getReportWorkList" resultType="com.op.system.api.domain.mes.MesReportWorkDTO">
|
||||||
|
select ow.order_code orderCode,
|
||||||
|
ow.workorder_code workorderCode,
|
||||||
|
ow.workorder_code_sap workorderCodeSap,
|
||||||
|
ow.route_code routeCode,
|
||||||
|
rte.tec_machine sac1,
|
||||||
|
rte.tec_man sac2,
|
||||||
|
rte.tec_depreciation sac3,
|
||||||
|
rte.tec_other sac4,
|
||||||
|
rte.tec_conf_acivity5 sac5,
|
||||||
|
rte.tec_conf_acivity6 sac6,
|
||||||
|
mrw.id,
|
||||||
|
mrw.quantity_feedback quantityFeedback,
|
||||||
|
mrw.product_code productCode,
|
||||||
|
mrw.product_name productName
|
||||||
|
from mes_report_work mrw
|
||||||
|
left join pro_order_workorder ow on mrw.workorder_code = ow.workorder_code
|
||||||
|
left join pro_route rte on rte.route_code = ow.route_code
|
||||||
|
where mrw.upload_status != #{uploadStatus} and mrw.prod_type = #{prodType}
|
||||||
|
<if test="reportCode != null ">
|
||||||
|
and mrw.report_code = #{reportCode}
|
||||||
|
</if>
|
||||||
|
order by mrw.create_time
|
||||||
|
</select>
|
||||||
|
<select id="getProdResult" resultType="com.op.system.api.domain.mes.MesReportWorkDTO">
|
||||||
|
select
|
||||||
|
mrw.workorder_code workorderCode,
|
||||||
|
sum(mrw.quantity_feedback) quantityFeedback
|
||||||
|
from mes_report_work mrw
|
||||||
|
where mrw.del_flag = '0' and mrw.workorder_code = #{workorderCode}
|
||||||
|
group by mrw.workorder_code
|
||||||
|
</select>
|
||||||
|
<select id="getOrderByCode" resultType="com.op.system.api.domain.mes.ProOrderWorkorderDTO">
|
||||||
|
select workorder_code workorderCode,
|
||||||
|
parent_order parentOrder,
|
||||||
|
quantity_split quantitySplit,
|
||||||
|
unit
|
||||||
|
from pro_order_workorder where workorder_code = #{workorderCode}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,72 @@
|
|||||||
|
package com.op.quality.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.op.common.log.annotation.Log;
|
||||||
|
import com.op.common.log.enums.BusinessType;
|
||||||
|
import com.op.common.security.annotation.RequiresPermissions;
|
||||||
|
import com.op.quality.domain.QcStaticTable;
|
||||||
|
import com.op.quality.service.IQcStaticTableService;
|
||||||
|
import com.op.common.core.web.controller.BaseController;
|
||||||
|
import com.op.common.core.web.domain.AjaxResult;
|
||||||
|
import com.op.common.core.utils.poi.ExcelUtil;
|
||||||
|
import com.op.common.core.web.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 质量系统报Controller
|
||||||
|
*
|
||||||
|
* @author Open Platform
|
||||||
|
* @date 2023-11-08
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/staticTable")
|
||||||
|
public class QcStaticTableController extends BaseController {
|
||||||
|
@Autowired
|
||||||
|
private IQcStaticTableService qcStaticTableService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 来料质量报表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("quality:qcTableIncome:list")
|
||||||
|
@GetMapping("/getIncomeTableList")
|
||||||
|
public TableDataInfo getIncomeTableList(QcStaticTable qcStaticTable) {
|
||||||
|
startPage();
|
||||||
|
List<QcStaticTable> list = qcStaticTableService.selectQcStaticTableList(qcStaticTable);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
@RequiresPermissions("quality:qcTableIncome:list")
|
||||||
|
@Log(title = "质量系统报", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/exportIncomeTableList")
|
||||||
|
public void exportIncomeTableList(HttpServletResponse response, QcStaticTable qcStaticTable) {
|
||||||
|
List<QcStaticTable> list = qcStaticTableService.selectQcStaticTableList(qcStaticTable);
|
||||||
|
ExcelUtil<QcStaticTable> util = new ExcelUtil<QcStaticTable>(QcStaticTable.class);
|
||||||
|
util.exportExcel(response, list, "质量系统报数据");
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 生产过程质量报表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("quality:gcTableProduce:list")
|
||||||
|
@GetMapping("/getProduceTableList")
|
||||||
|
public TableDataInfo getProduceList(QcStaticTable qcStaticTable) {
|
||||||
|
startPage();
|
||||||
|
List<QcStaticTable> list = qcStaticTableService.selectQcStaticTableList(qcStaticTable);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
@RequiresPermissions("quality:gcTableProduce:list")
|
||||||
|
@Log(title = "质量系统报", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/exportTableList")
|
||||||
|
public void exportTableList(HttpServletResponse response, QcStaticTable qcStaticTable) {
|
||||||
|
List<QcStaticTable> list = qcStaticTableService.selectQcStaticTableList(qcStaticTable);
|
||||||
|
ExcelUtil<QcStaticTable> util = new ExcelUtil<QcStaticTable>(QcStaticTable.class);
|
||||||
|
util.exportExcel(response, list, "质量系统报数据");
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,123 @@
|
|||||||
|
package com.op.quality.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.op.common.core.annotation.Excel;
|
||||||
|
import com.op.common.core.web.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 质量系统报对象 qc_static_table
|
||||||
|
*
|
||||||
|
* @author Open Platform
|
||||||
|
* @date 2023-11-08
|
||||||
|
*/
|
||||||
|
public class QcStaticTable extends BaseEntity {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** ID */
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 文件名称 */
|
||||||
|
@Excel(name = "文件名称")
|
||||||
|
private String fileName;
|
||||||
|
|
||||||
|
/** 文件地址 */
|
||||||
|
@Excel(name = "文件地址")
|
||||||
|
private String fileAddress;
|
||||||
|
|
||||||
|
/** 版本号 */
|
||||||
|
@Excel(name = "版本号")
|
||||||
|
private String version;
|
||||||
|
|
||||||
|
/** 备用1 */
|
||||||
|
@Excel(name = "备用1")
|
||||||
|
private String attr1;
|
||||||
|
|
||||||
|
/** 备用2 */
|
||||||
|
@Excel(name = "备用2")
|
||||||
|
private String attr2;
|
||||||
|
|
||||||
|
/** 备用3 */
|
||||||
|
@Excel(name = "备用3")
|
||||||
|
private String attr3;
|
||||||
|
|
||||||
|
/** 备用4 */
|
||||||
|
@Excel(name = "备用4")
|
||||||
|
private String attr4;
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setFileName(String fileName) {
|
||||||
|
this.fileName = fileName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFileName() {
|
||||||
|
return fileName;
|
||||||
|
}
|
||||||
|
public void setFileAddress(String fileAddress) {
|
||||||
|
this.fileAddress = fileAddress;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFileAddress() {
|
||||||
|
return fileAddress;
|
||||||
|
}
|
||||||
|
public void setVersion(String version) {
|
||||||
|
this.version = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getVersion() {
|
||||||
|
return version;
|
||||||
|
}
|
||||||
|
public void setAttr1(String attr1) {
|
||||||
|
this.attr1 = attr1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAttr1() {
|
||||||
|
return attr1;
|
||||||
|
}
|
||||||
|
public void setAttr2(String attr2) {
|
||||||
|
this.attr2 = attr2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAttr2() {
|
||||||
|
return attr2;
|
||||||
|
}
|
||||||
|
public void setAttr3(String attr3) {
|
||||||
|
this.attr3 = attr3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAttr3() {
|
||||||
|
return attr3;
|
||||||
|
}
|
||||||
|
public void setAttr4(String attr4) {
|
||||||
|
this.attr4 = attr4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAttr4() {
|
||||||
|
return attr4;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("fileName", getFileName())
|
||||||
|
.append("fileAddress", getFileAddress())
|
||||||
|
.append("version", getVersion())
|
||||||
|
.append("attr1", getAttr1())
|
||||||
|
.append("attr2", getAttr2())
|
||||||
|
.append("attr3", getAttr3())
|
||||||
|
.append("attr4", getAttr4())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
package com.op.quality.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.op.quality.domain.QcStaticTable;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 质量系统报Mapper接口
|
||||||
|
*
|
||||||
|
* @author Open Platform
|
||||||
|
* @date 2023-11-08
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface QcStaticTableMapper {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询质量系统报列表
|
||||||
|
*
|
||||||
|
* @param qcStaticTable 质量系统报
|
||||||
|
* @return 质量系统报集合
|
||||||
|
*/
|
||||||
|
public List<QcStaticTable> selectQcStaticTableList(QcStaticTable qcStaticTable);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package com.op.quality.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.op.quality.domain.QcStaticTable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 质量系统报Service接口
|
||||||
|
*
|
||||||
|
* @author Open Platform
|
||||||
|
* @date 2023-11-08
|
||||||
|
*/
|
||||||
|
public interface IQcStaticTableService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询质量系统报列表
|
||||||
|
*
|
||||||
|
* @param qcStaticTable 质量系统报
|
||||||
|
* @return 质量系统报集合
|
||||||
|
*/
|
||||||
|
public List<QcStaticTable> selectQcStaticTableList(QcStaticTable qcStaticTable);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,36 @@
|
|||||||
|
package com.op.quality.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.op.common.core.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.op.quality.mapper.QcStaticTableMapper;
|
||||||
|
import com.op.quality.domain.QcStaticTable;
|
||||||
|
import com.op.quality.service.IQcStaticTableService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 质量系统报Service业务层处理
|
||||||
|
*
|
||||||
|
* @author Open Platform
|
||||||
|
* @date 2023-11-08
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class QcStaticTableServiceImpl implements IQcStaticTableService {
|
||||||
|
@Autowired
|
||||||
|
private QcStaticTableMapper qcStaticTableMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询质量系统报列表
|
||||||
|
*
|
||||||
|
* @param qcStaticTable 质量系统报
|
||||||
|
* @return 质量系统报
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
@DS("#header.poolName")
|
||||||
|
public List<QcStaticTable> selectQcStaticTableList(QcStaticTable qcStaticTable) {
|
||||||
|
return qcStaticTableMapper.selectQcStaticTableList(qcStaticTable);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.op.quality.mapper.QcStaticTableMapper">
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectQcStaticTableList" parameterType="QcStaticTable" resultType="QcStaticTable">
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
@ -1,27 +0,0 @@
|
|||||||
package com.op.scada.mapper;
|
|
||||||
|
|
||||||
import com.op.system.api.domain.mes.ProRfidProcessDetail;
|
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 生产rfid流程Mapper接口
|
|
||||||
*
|
|
||||||
* @author Open Platform
|
|
||||||
* @date 2023-08-18
|
|
||||||
*/
|
|
||||||
@Mapper
|
|
||||||
public interface ScadaMapper {
|
|
||||||
|
|
||||||
public ProRfidProcessDetail getRfidInfo(String rfidNo);
|
|
||||||
|
|
||||||
public String getStationType(String equipmentCode);
|
|
||||||
|
|
||||||
Integer getEquipNum(String machineCode);
|
|
||||||
|
|
||||||
String getEquipStatus(String machineCode);
|
|
||||||
|
|
||||||
String getEquipMode(String machineCode);
|
|
||||||
}
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
|||||||
package com.op.scada.service;
|
|
||||||
|
|
||||||
import com.op.system.api.domain.dto.WCSDTO;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 订单Service接口
|
|
||||||
*
|
|
||||||
* @author Open Platform
|
|
||||||
* @date 2023-07-13
|
|
||||||
*/
|
|
||||||
public interface ScadaService {
|
|
||||||
|
|
||||||
WCSDTO requestDestinationStations(WCSDTO wcsdto);
|
|
||||||
|
|
||||||
}
|
|
@ -1,49 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<!DOCTYPE mapper
|
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.op.scada.mapper.ScadaMapper">
|
|
||||||
|
|
||||||
<!--获取在邦rfid 工单的信息-->
|
|
||||||
<select id="getRfidInfo" resultType="com.op.system.api.domain.mes.ProRfidProcessDetail">
|
|
||||||
select
|
|
||||||
top 1
|
|
||||||
rfid.workorder_code workorderCode,
|
|
||||||
rfid.now_process_id nowProcessId,
|
|
||||||
rfid.next_process_id nextProcessId,
|
|
||||||
p.equipment machineCode,
|
|
||||||
bp.product_code productCode,
|
|
||||||
bp.product_model productModel,
|
|
||||||
w.prod_line_code prodLineCode
|
|
||||||
from pro_rfid_process_detail rfid
|
|
||||||
left join pro_process p on p.process_id = rfid.next_process_id
|
|
||||||
left join pro_order_workorder w on w.workorder_code = rfid.workorder_code
|
|
||||||
left join base_product bp on bp.product_code = w.product_code
|
|
||||||
where rfid.bind_status = '1'
|
|
||||||
and rfid.rfid = #{rfidNo}
|
|
||||||
order by rfid.create_time desc
|
|
||||||
</select>
|
|
||||||
<select id="getStationType" resultType="java.lang.String">
|
|
||||||
select
|
|
||||||
case when equipment_type_code ='equ_type_spj' then '3'
|
|
||||||
when equipment_type_code ='equ_type_hf' then '2'
|
|
||||||
else '' end
|
|
||||||
from base_equipment
|
|
||||||
where equipment_code = #{equipmentCode}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<select id="getEquipNum" resultType="java.lang.Integer">
|
|
||||||
select isvalue from base_equipment_attached
|
|
||||||
where property = 'dollyNumber'
|
|
||||||
and device_code = #{machineCode}
|
|
||||||
</select>
|
|
||||||
<select id="getEquipStatus" resultType="java.lang.String">
|
|
||||||
select status from base_equipment where equipment_code = #{machineCode} and del_flag = '0'
|
|
||||||
</select>
|
|
||||||
<select id="getEquipMode" resultType="java.lang.String">
|
|
||||||
select isvalue from base_equipment_attached
|
|
||||||
where property = 'Mode'
|
|
||||||
and device_code = #{machineCode}
|
|
||||||
</select>
|
|
||||||
|
|
||||||
</mapper>
|
|
Loading…
Reference in New Issue