| | |
| | | </resultMap> |
| | | |
| | | <select id="findInsSampleAndOrder" resultType="com.yuanchu.mom.vo.InsOrderPlanVO"> |
| | | select * from(select * from( |
| | | select * from( |
| | | select * from( |
| | | SELECT |
| | | a.*, |
| | | ios.ins_state, |
| | |
| | | io.appointed, |
| | | io.send_time, |
| | | group_concat(distinct isa.sample,' ') sample, |
| | | group_concat(distinct isa.sample_code,' ') sampleCode, |
| | | userName, |
| | | checkName, |
| | | ip.son_laboratory, |
| | |
| | | io.appointed, |
| | | io.send_time, |
| | | group_concat(distinct isa.sample,' ') sampleType, |
| | | group_concat(distinct isa.sample_code,' ') sampleCode, |
| | | isu.user_id, |
| | | user.name userName, |
| | | ip.son_laboratory, |
| | |
| | | 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"/> |