| | |
| | | and state = 1 |
| | | and ins_fiber_id is null |
| | | and ins_fibers_id is null |
| | | and isa.sample_code NOT REGEXP '/' |
| | | </select> |
| | | <select id="getInsOrderAndSample" resultMap="sampleDto"> |
| | | select isa.*, |
| | |
| | | method, |
| | | man_day, |
| | | bsm, |
| | | ask, |
| | | tell as ask, |
| | | `last_value`, |
| | | ip.ins_result ip_ins_result, |
| | | state, |
| | |
| | | left join ins_product ip on isa.id = ip.ins_sample_id |
| | | left join ins_product_result ipr on ip.id = ipr.ins_product_id |
| | | where ins_order_id = #{id} |
| | | and template_id is not null |
| | | and state = 1 |
| | | </select> |
| | | |
| | |
| | | select ip.id ip_id, |
| | | inspection_item, |
| | | inspection_item_en, |
| | | inspection_item_class, |
| | | inspection_item_class_en, |
| | | inspection_item_subclass, |
| | | inspection_item_subclass_en, |
| | | ip.factory ip_factory, |