| | |
| | | <result property="cellId" column="cell_id" jdbcType="INTEGER"/> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | id,ins_sample_id,state, |
| | | create_time,update_time,create_user, |
| | | update_user,cell_id |
| | | </sql> |
| | | <select id="getUserNameById" resultType="java.lang.String"> |
| | | select name from user where id = #{userId} |
| | | </select> |
| | | <select id="getHistoryListBySampleId" resultType="com.yuanchu.mom.dto.HistoryDto"> |
| | | select wh.*,u.name createUserName from warehouse_history wh |
| | | left join user u on u.id = wh.create_user |
| | | where wh.ins_sample_id = #{sampleId} |
| | | order by wh.id desc |
| | | </select> |
| | | </mapper> |