1
2
3
4
5
6
7
8
9
10
11
12
13
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
| <mapper namespace="com.yuanchu.limslaboratory.mapper.StandardsMapper">
|
| <select id="listStandardsInformation" resultType="Map">
| SELECT s.`id`, s.`name`, s.`eng_name`, DATE_FORMAT(s.`create_time`, '%Y-%m-%d %H:%i') createTime
| FROM standards s
| <if test="idOrNameOfStandards != null">
| WHERE s.`id` LIKE concat('%',#{idOrNameOfStandards},'%')
| OR s.name LIKE concat('%',#{idOrNameOfStandards},'%')
| </if>
| </select>
| </mapper>
|
|