| | |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.yuanchu.mom.mapper.RawInspectMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.yuanchu.mom.pojo.RawInspect"> |
| | | <id property="id" column="id" jdbcType="INTEGER"/> |
| | | <result property="code" column="code" jdbcType="VARCHAR"/> |
| | |
| | | <result property="formTime" column="form_time" jdbcType="DATE"/> |
| | | </resultMap> |
| | | <select id="selectRawInspectsByLimit" resultType="com.yuanchu.mom.pojo.RawInspect"> |
| | | select id, code, name, specifications, unit, number, ins_state, judge_state, ins_time, user_name, create_time, form_time |
| | | from raw_inspect |
| | | select id, code, name, specifications, unit, number, ins_state, judge_state, ins_time, user_name, create_time, |
| | | form_time |
| | | from mom_ocean.raw_inspect |
| | | where state = 1 |
| | | <if test="formTime!=null and formTime!=''"> |
| | | and form_time = #{formTime} |
| | |
| | | <if test="judgeState!=2"> |
| | | and judge_state = #{judgeState} |
| | | </if> |
| | | order by id desc |
| | | limit #{pageSize},#{countSize} |
| | | </select> |
| | | </mapper> |