@ -35,7 +35,10 @@ public class TraceRecordRequest extends ListPageRequest {
* 更新时间
*/
private Date updateTime;
/**
* 查询方式(1:源头查询;2:现在检查查询)
private Integer traceSource;
* 查询方案(按UDI码查询/按批次号查询)
@ -47,7 +47,10 @@ public class TraceRecordResponse {
private Integer traceType;
* UDI码
@ -23,6 +23,12 @@
<if test="batchNo != '' and batchNo != null">
and `batchNo` = #{batchNo}
</if>
<if test="traceType != '' and traceType != null">
and trd.traceType = #{traceType}
<if test="traceSource != '' and traceSource != null">
and traceSource = #{traceSource}
</where>
</select>
</mapper>