| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.yuanchu.limslaboratory.mapper.SpecificationsMapper"> |
| | | |
| | | <select id="listSpecificationsInformation" resultType="map"> |
| | | SELECT s.`id`,s.`name`,DATE_FORMAT(s.`update_time`, '%Y-%m-%d %H:%i') updateTime,u.`name` username,s.`vel`,s.`spe_state` |
| | | FROM specifications s,`user` u |
| | | WHERE s.`user_id` = u.`id` |
| | | AND s.`serial_id` = #{serialNumberId} |
| | | <if test="specificationsName != null"> |
| | | AND s.`name` = #{specificationsName} |
| | | </if> |
| | | </select> |
| | | </mapper> |