rfid流程修改

highway
陈恒杰 1 year ago
parent 9bb46f6a5e
commit dbd3b16007

@ -54,7 +54,7 @@ public class ProRfidProcessDetail extends BaseEntity {
/** 出时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "出时间", width = 30, dateFormat = "yyyy-MM-dd")
@Excel(name = "出时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date outTime;
/** 状态0待办1完成 */
@ -107,6 +107,39 @@ public class ProRfidProcessDetail extends BaseEntity {
@Excel(name = "订单号")
private String orderCode;
@Excel(name = "产品编码")
private String productName;
@Excel(name = "生产时间")
private String productDate;
@Excel(name = "班次")
private String shiftId;
public String getShiftId() {
return shiftId;
}
public void setShiftId(String shiftId) {
this.shiftId = shiftId;
}
public String getProductDate() {
return productDate;
}
public void setProductDate(String productDate) {
this.productDate = productDate;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getOrderCode() {
return orderCode;
}
@ -288,29 +321,35 @@ public class ProRfidProcessDetail extends BaseEntity {
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("recordId", getRecordId())
.append("workorderCode", getWorkorderCode())
.append("rfid", getRfid())
.append("factoryCode", getFactoryCode())
.append("machineCode", getMachineCode())
.append("nowProcessId", getNowProcessId())
.append("nextProcessId", getNextProcessId())
.append("orderNum", getOrderNum())
.append("inTime", getInTime())
.append("outTime", getOutTime())
.append("status", getStatus())
.append("remark", getRemark())
.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("workBatchCode", getWorkBatchCode())
.append("bindStatus", getBindStatus())
.toString();
return "ProRfidProcessDetail{" +
"recordId='" + recordId + '\'' +
", workorderCode='" + workorderCode + '\'' +
", rfid='" + rfid + '\'' +
", factoryCode='" + factoryCode + '\'' +
", machineCode='" + machineCode + '\'' +
", prodLineCode='" + prodLineCode + '\'' +
", nowProcessId='" + nowProcessId + '\'' +
", nextProcessId='" + nextProcessId + '\'' +
", orderNum=" + orderNum +
", inTime=" + inTime +
", outTime=" + outTime +
", status='" + status + '\'' +
", attr1='" + attr1 + '\'' +
", attr2='" + attr2 + '\'' +
", attr3='" + attr3 + '\'' +
", attr4='" + attr4 + '\'' +
", workBatchCode='" + workBatchCode + '\'' +
", bindStatus='" + bindStatus + '\'' +
", productCode='" + productCode + '\'' +
", productModel='" + productModel + '\'' +
", nowProcessCode='" + nowProcessCode + '\'' +
", nowProcessName='" + nowProcessName + '\'' +
", nextProcessCode='" + nextProcessCode + '\'' +
", nextProcessName='" + nextProcessName + '\'' +
", orderCode='" + orderCode + '\'' +
", productName='" + productName + '\'' +
", productDate='" + productDate + '\'' +
", shiftId='" + shiftId + '\'' +
'}';
}
}

@ -64,11 +64,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
pp.process_name as nextProcessName,
ppp.process_code as nowProcessCode,
ppp.process_name as nowProcessName,
pow.order_code as orderCode
pow.order_code as orderCode,
pow.product_code as productCode,
pow.product_name as productName,
pow.product_date as productDate,
pow.shift_id as shiftId
from pro_rfid_process_detail ppd
left join pro_process pp on pp.process_id = ppd.next_process_id
left join pro_process ppp on ppp.process_id = ppd.now_process_id
left join pro_order_workorder pow on pow.workorder_code = ppd.workorder_code
order by ppd.in_time desc
<where>
<if test="workorderCode != null and workorderCode != ''"> and ppd.workorder_code like concat('%', #{workorderCode}, '%')</if>
<if test="rfid != null and rfid != ''"> and rfid like concat('%', #{rfid}, '%')</if>

Loading…
Cancel
Save