src/main/resources/mapper/purchase/ProductRecordMapper.xml
@@ -35,6 +35,9 @@ </if> <if test="c.createdAtStart != null and c.createdAtStart != ''"> and pr.created_at >= str_to_date(#{c.createdAtStart}, '%Y-%m-%d') </if> <if test="c.invoiceAmount != null"> and pr.tickets_amount like concat('%',#{c.invoiceAmount},'%') </if> <if test="c.createdAtEnd != null and c.createdAtEnd != ''"> and pr.created_at < date_add(str_to_date(#{c.createdAtEnd}, '%Y-%m-%d'), interval 1 day)