mapper文件的写法为:(模糊查询,查询时间段) if test=com_name!=null and com_name!=and sc.com_name like concat(concat(%,#{com_name}),%)/ifif test=check_begin_date!=null and check_begin_date!=![cdata[ and date_format(tcb.check_begin_date, %y
mapper文件的写法为:(模糊查询,查询时间段)
and sc.com_name like concat(concat('%',#{com_name}),'%') = date_format(#{check_begin_date}, '%y-%m-%d') ]]>