| | |
| | | SELECT |
| | | a.*, |
| | | ios.ins_state, |
| | | ios.is_out, |
| | | ios.laboratory son_laboratory, |
| | | ios.verify_tell, |
| | | verify_user, |
| | |
| | | io.send_time, |
| | | isa.id sampleId, |
| | | isa.sample sample, |
| | | isa.sample_code sampleCode, |
| | | isa.sample_code , |
| | | userName, |
| | | userNameId, |
| | | checkName, |
| | |
| | | ORDER BY ins_sample_id |
| | | )isu2 ON isu2.ins_sample_id = isa.id |
| | | WHERE io.state = 1 and send_time is not null |
| | | <if test="sampleCode !=null and sampleCode!=''"> |
| | | and (isa.sample_code like CONCAT ('%', #{sampleCode},'%') ) |
| | | </if> |
| | | <if test="userName !=null and userName!=''"> |
| | | and ( (userName like CONCAT ('%', #{userName},'%') ) |
| | | or (checkName like CONCAT ('%', #{userName},'%') ) ) |
| | |
| | | ios.create_time |
| | | ) b |
| | | where ins_state is not null |
| | | and (is_out is null or is_out !=1) |
| | | and son_laboratory=#{sonLaboratory} |
| | | and state =1 |
| | | <if test="laboratory!=null and laboratory!=''"> |