PiLotViewQueryDTO.java
package com.mycim.valueobject.ems.pilot.dto;
/**
* @author songpy
* @version 1.0.0
* @date 2021/8/18
**/
public class PiLotViewQueryDTO extends PiLotSetupQueryDTO {
private static final long serialVersionUID = -6567699917509144904L;
private Long viewRrn = 0L;
private Long lotRrn = 0L;
private Long childLotRrn = 0L;
@Override
public String toSqlString() {
StringBuilder sql = new StringBuilder(super.toSqlString());
if (Long.valueOf(this.getViewRrn()) > 0L) {
sql.append(" AND VIEW_RRN = ?");
this.getParamList().add(this.getViewRrn());
}
if (Long.valueOf(this.getLotRrn()) > 0L) {
sql.append(" AND LOT_RRN = ?");
this.getParamList().add(this.getLotRrn());
}
if (Long.valueOf(this.getChildLotRrn()) > 0L) {
sql.append(" AND CHILD_LOT_RRN = ?");
this.getParamList().add(this.getChildLotRrn());
}
return sql.toString();
}
@Override
public String toString() {
return "PiLotViewQueryDTO{" + "viewRrn=" + viewRrn + ", lotRrn=" + lotRrn + ", childLotRrn=" + childLotRrn +
"} " + super.toString();
}
public Long getChildLotRrn() {
return childLotRrn;
}
public void setChildLotRrn(Long childLotRrn) {
this.childLotRrn = childLotRrn;
}
public Long getLotRrn() {
return lotRrn;
}
public void setLotRrn(Long lotRrn) {
this.lotRrn = lotRrn;
}
public Long getViewRrn() {
return viewRrn;
}
public void setViewRrn(Long viewRrn) {
this.viewRrn = viewRrn;
}
}