查询记录后端代码备份

cert
1178634255 2 years ago
parent 884aa89a31
commit 0cffbac6bb

@ -68,17 +68,7 @@ public class TraceOrderController extends BaseController {
return ResultVOUtils.success(pageSimpleResponse);
}
@AuthRuleAnnotation("")
@GetMapping("udi/trace/order/filterBatchNo")
public BaseResponse filterCompanyName(TraceProductRecordRequest traceProductRecordRequest) {
List<TraceProductRecordResponse> traceProductRecordResponses = traceOrderService.filterBatchNo(traceProductRecordRequest);
PageInfo<TraceProductRecordResponse> pageInfo = new PageInfo<>(traceProductRecordResponses);
PageSimpleResponse<TraceProductRecordResponse> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal());
pageSimpleResponse.setList(traceProductRecordResponses);
return ResultVOUtils.success(pageSimpleResponse);
}

@ -5,7 +5,7 @@
resultType="com.glxp.api.res.trace.TraceRecordResponse">
SELECT tr.recordCode, tr.remark, trd.*, mid.*
FROM trace_record_log tr
LEFT JOIN trace_product_record trd ON trd.recordIdFk = tr.id
LEFT JOIN trace_product_record trd ON trd.id = tr.traceProductIdFk
LEFT JOIN (SELECT tor.billNo, tor.fromCorp, tor.toCorp, tor.createUser, uc.companyName
FROM trace_order tor
LEFT JOIN user_company uc ON uc.id = tor.companyIdFk) mid

@ -17,7 +17,7 @@
and cpmctymc LIKE CONCAT('%', #{cpmctymc}, '%')
</if>
<if test="ggxh != '' and ggxh != null">
and ggxh = #{ggxh}
and ggxh LIKE CONCAT('%', #{ggxh}, '%')
</if>
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc != null">
and ylqxzcrbarmc = #{ylqxzcrbarmc}

Loading…
Cancel
Save