| | |
| | | and state = 1 |
| | | and ip.son_laboratory = #{laboratory} |
| | | and ios.laboratory = #{laboratory} |
| | | and (ipr2.num is null or ipr.num is null) |
| | | </select> |
| | | <select id="getSampleEn" resultType="java.lang.String"> |
| | | select name_en |
| | |
| | | ip.model ip_model, |
| | | ip.state, |
| | | io.issue_time, |
| | | u.name issueName, |
| | | ins_sample_id |
| | | from ins_sample isa |
| | | left join ins_product ip on isa.id = ip.ins_sample_id |
| | | left join ins_order io on io.id = ins_order_id |
| | | left join user u on io.issue_user = u.id |
| | | where ip.state = 1 |
| | | and ins_order_id in |
| | | <foreach collection="ids" open="(" close=")" item="id" separator=","> |
| | |
| | | <result property="joinNum" column="join_num" jdbcType="INTEGER"/> |
| | | <result property="remark" column="remark" jdbcType="VARCHAR"/> |
| | | <result property="issueTime" column="issue_time" /> |
| | | <result property="issueName" column="issueName" /> |
| | | <result property="createUser" column="create_user" jdbcType="INTEGER"/> |
| | | <result property="updateUser" column="update_user" jdbcType="INTEGER"/> |
| | | <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> |
| | |
| | | and state = 1 |
| | | and ins_order_id = #{insOrderId} |
| | | </select> |
| | | <select id="selectList1" resultType="com.yuanchu.mom.dto.SampleProductDto"> |
| | | select * from ins_sample where ins_order_id=#{id |
| | | } |
| | | </select> |
| | | </mapper> |