<?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.ProductModelMapper">
|
<!--查询标准模版列表-->
|
<select id="selectproductModel" resultType="java.util.Map">
|
select id,
|
father,
|
name,
|
unit
|
from lims_laboratory.product_model
|
where state=1
|
and material=#{material}
|
<if test="name!=null and name!=''">
|
and name like concat('%',#{name},'%')
|
</if>
|
<if test="father!=null and father!=''">
|
and father like concat('%',#{father},'%')
|
</if>
|
order by father
|
</select>
|
|
<update id="delAllproductModel">
|
update lims_laboratory.product_model
|
set state=0
|
where id in (${ids})
|
</update>
|
<!--添加标准选择项目分组-->
|
<select id="selectfather" resultType="java.lang.String">
|
select distinct father
|
from lims_laboratory.product_model
|
where state = 1
|
</select>
|
|
<!--查询项目模版根据样品名-->
|
<select id="seleMode" resultType="java.util.Map">
|
select name,
|
father,
|
unit
|
from lims_laboratory.product_model
|
where state = 1
|
and material =#{name}
|
</select>
|
</mapper>
|