src/main/resources/mapper/purchase/ProductRecordMapper.xml
@@ -35,5 +35,8 @@ <if test="c.createdAtEnd != null and c.createdAtEnd != ''"> and pr.created_at <= date_format(#{c.createdAtEnd},'%Y-%m-%d hh:mm:ss') </if> <if test="c.purchaseContractNumber != null and c.purchaseContractNumber != ''"> and tr.purchase_contract_number like concat('%',#{c.purchaseContractNumber},'%') </if> </select> </mapper>