| | |
| | | </select> |
| | | <select id="selectByCodeAndName" resultType="com.nanometer.smartlab.entity.DangerousEncode"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | container_number containerNumber, reagent_code reagentCode, reagent_name reagentName, cas, memo, property, feature, avoid, |
| | | status, fire, random, code, update_time, creator, count |
| | | from sys_dangerous_encode |
| | | <where> |
| | | 1=1 |
| | |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="selectByReagentName" resultType="com.nanometer.smartlab.entity.DangerousEncodeVo"> |
| | | select |
| | | container_number containerNumber, reagent_code reagentCode, reagent_name reagentName, cas, memo, property, feature, avoid, |
| | | status, fire, random, code, update_time, creator, count |
| | | from sys_dangerous_encode |
| | | <where> |
| | | 1=1 |
| | | <if test="reagentname != null and reagentname != ''"> |
| | | and reagent_name like concat("%",#{reagentname},"%") |
| | | </if> |
| | | <if test="cas != null and cas != ''"> |
| | | and cas = #{cas} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="selectByName" resultType="com.nanometer.smartlab.entity.DangerousEncode"> |
| | | select |
| | | id,container_number containerNumber, reagent_code reagentCode, reagent_name reagentName, cas, memo, |
| | | property, feature, avoid, status, fire, random, code, update_time, creator, count |
| | | from sys_dangerous_encode |
| | | <where> |
| | | 1=1 |
| | | <if test="reagentname != null and reagentname != ''"> |
| | | and reagent_name = #{reagentname} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | </mapper> |