| | |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.yuanchu.mom.mapper.RawInspectMapper"> |
| | | <!--清空原材料检验结论--> |
| | | <update id="updById"> |
| | | update mom_ocean.raw_inspect |
| | | set ins_state=0, |
| | | ins_time=null, |
| | | judge_state=null |
| | | where id = #{rawInspectId} |
| | | </update> |
| | | <select id="selCountRaw" resultType="java.lang.Integer"> |
| | | select count(id) |
| | | from mom_ocean.raw_inspect |
| | |
| | | <if test="name!=null and name!=''"> |
| | | and name like concat('%',#{name},'%') |
| | | </if> |
| | | ORDER BY id DESC |
| | | </select> |
| | | |
| | | <!--根据原材料检验单id查看详情--> |
| | |
| | | and rp.state = 1 |
| | | and r.id = #{id} |
| | | </select> |
| | | |
| | | <!--根据原材料编码查询最近一条数据--> |
| | | <select id="selOneByCode" resultType="com.yuanchu.mom.pojo.RawInspect"> |
| | | select * |
| | | from mom_ocean.raw_inspect |
| | | where state = 1 |
| | | and code = #{code} |
| | | order by id desc |
| | | limit 1 |
| | | </select> |
| | | </mapper> |