|
|
|
@ -38,8 +38,7 @@
|
|
|
|
|
|
|
|
|
|
<select id="filterJoin" parameterType="com.glxp.api.req.trace.TraceOrderDetailRequest"
|
|
|
|
|
resultType="com.glxp.api.res.trace.TraceOrderResponse">
|
|
|
|
|
SELECT trace_order.*,
|
|
|
|
|
trace_product_record.udiCode,
|
|
|
|
|
SELECT trace_product_record.udiCode,
|
|
|
|
|
trace_product_record.ylqxzcrbarmc,
|
|
|
|
|
trace_product_record.creditNum,
|
|
|
|
|
trace_product_record.cpmctymc,
|
|
|
|
@ -50,6 +49,7 @@
|
|
|
|
|
trace_product_record.expireDate,
|
|
|
|
|
trace_product_record.serialNo,
|
|
|
|
|
trace_product_record.zczbhhzbapzbh,
|
|
|
|
|
trace_order.*,
|
|
|
|
|
uc.companyName
|
|
|
|
|
FROM trace_order
|
|
|
|
|
left join trace_product_record
|
|
|
|
@ -103,10 +103,9 @@
|
|
|
|
|
</select>
|
|
|
|
|
<select id="filterOrder" parameterType="com.glxp.api.req.trace.TraceOrderRequest"
|
|
|
|
|
resultType="com.glxp.api.res.trace.TraceOrderResponse">
|
|
|
|
|
SELECT tpr.cpmctymc,tpr.ggxh,tpr.ylqxzcrbarmc,tpr.creditNum,tpr.batchNo,tr.*
|
|
|
|
|
FROM
|
|
|
|
|
trace_order AS tr
|
|
|
|
|
LEFT JOIN trace_product_record tpr ON tr.traceProductIdFk = tpr.id
|
|
|
|
|
SELECT tpr.cpmctymc, tpr.ggxh, tpr.ylqxzcrbarmc, tpr.creditNum, tpr.batchNo, tr.*
|
|
|
|
|
FROM trace_order AS tr
|
|
|
|
|
LEFT JOIN trace_product_record tpr ON tr.traceProductIdFk = tpr.id
|
|
|
|
|
<where>
|
|
|
|
|
<if test="recordCode != '' and recordCode != null">
|
|
|
|
|
and recordCode = #{recordCode}
|
|
|
|
|