| | |
| | | <mapper namespace="com.ruoyi.quality.mapper.QualityInspectMapper"> |
| | | <select id="qualityInspectListPage" resultType="com.ruoyi.quality.pojo.QualityInspect"> |
| | | SELECT |
| | | qi.*, |
| | | qi.id, |
| | | qi.inspect_type, |
| | | qi.check_time, |
| | | qi.supplier, |
| | | qi.customer, |
| | | qi.process, |
| | | qi.check_name, |
| | | qi.product_id, |
| | | qi.product_name, |
| | | qi.model, |
| | | ifnull(pm.unit, qi.unit) as unit, |
| | | qi.quantity, |
| | | qi.check_company, |
| | | qi.check_result, |
| | | qi.create_time, |
| | | qi.create_user, |
| | | qi.update_time, |
| | | qi.update_user, |
| | | qi.tenant_id, |
| | | qi.inspect_state, |
| | | qi.approval_status, |
| | | qi.approve_user_ids, |
| | | qi.purchase_ledger_id, |
| | | qi.product_main_id, |
| | | qi.defective_phenomena, |
| | | qi.product_model_id, |
| | | qi.test_standard_id, |
| | | <choose> |
| | | <when test="qualityInspect.inspectType == 0"> |
| | | pl.purchase_contract_number as purchase_contract_no, |
| | | pm.thickness |
| | | </when> |
| | | <when test="qualityInspect.inspectType == 1"> |
| | | pwo.work_order_no, |
| | | pm.thickness |
| | | </when> |
| | | <otherwise> |
| | | pwo.work_order_no, |
| | | pm.thickness |