src/main/resources/mapper/purchase/ProductRecordMapper.xml
@@ -32,10 +32,10 @@ and sl.supplier_name = #{c.supplierName} </if> <if test="c.createdAtStart != null and c.createdAtStart != ''"> and pr.created_at >= date_format(#{c.createdAtStart},'%Y-%m-%d') and pr.created_at >= date_format(#{c.createdAtStart},'%Y-%m-%d hh:mm:ss') </if> <if test="c.createdAtEnd != null and c.createdAtEnd != ''"> and pr.created_at < date_format(#{c.createdAtEnd},'%Y-%m-%d') and pr.created_at <= date_format(#{c.createdAtEnd},'%Y-%m-%d hh:mm:ss') </if> </select> </mapper>