XiaoRuby
2023-07-19 2d44844cafa096bd42391b8d2c2185f0bfbf2d79
standard-server/src/main/resources/mapper/StandardsMapper.xml
@@ -2,12 +2,12 @@
<!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 id="listPageStandardsInformation" 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},'%')
            OR s.name LIKE concat('%',#{idOrNameOfStandards},'%')
        </if>
    </select>
</mapper>