| | |
| | | <select id="selectSampleProductListByOrderId3" resultMap="sampleDto3"> |
| | | select isa.id, |
| | | sample_code, |
| | | motor_number, |
| | | isa.sample, |
| | | entrust_code, |
| | | is_leave, |
| | |
| | | <result property="joinModel" column="join_model" jdbcType="VARCHAR"/> |
| | | <result property="joinName" column="join_name" jdbcType="VARCHAR"/> |
| | | <result property="sampleCode" column="sample_code" jdbcType="VARCHAR"/> |
| | | <result property="motorNumber" column="motor_number" jdbcType="VARCHAR"/> |
| | | <result property="testRequirements" column="test_requirements" jdbcType="VARCHAR"/> |
| | | <result property="factory" column="factory" jdbcType="VARCHAR"/> |
| | | <result property="laboratory" column="laboratory" jdbcType="VARCHAR"/> |
| | |
| | | <result property="code" column="entrust_code" jdbcType="VARCHAR"/> |
| | | <result property="isLeave" column="is_leave" jdbcType="VARCHAR"/> |
| | | <result property="sampleCode" column="sample_code" jdbcType="VARCHAR"/> |
| | | <result property="motorNumber" column="motor_number" jdbcType="VARCHAR"/> |
| | | <result property="factory" column="factory" jdbcType="VARCHAR"/> |
| | | <result property="laboratory" column="laboratory" jdbcType="VARCHAR"/> |
| | | <result property="sampleType" column="sample_type" jdbcType="VARCHAR"/> |
| | |
| | | where ins_order_id = #{orderId} |
| | | and ip.id is not null |
| | | </select> |
| | | <select id="selectInsSample" resultType="com.yuanchu.mom.pojo.InsSample"> |
| | | select isa.*,entrust_code |
| | | from ins_sample isa |
| | | left join ins_order io on isa.ins_order_id = io.id |
| | | where ins_order_id in |
| | | <foreach collection="ids" open="(" close=")" item="id" separator=","> |
| | | #{id} |
| | | </foreach> |
| | | </select> |
| | | <select id="selectSample" resultType="com.yuanchu.mom.pojo.InsSample"> |
| | | select distinct isa.* |
| | | from ins_sample isa |
| | | left join ins_product ip on isa.id = ip.ins_sample_id |
| | | where son_laboratory = '电路试验' |
| | | and state=1 |
| | | and ins_order_id=#{insOrderId} |
| | | </select> |
| | | </mapper> |