| | |
| | | qu.deal_result, |
| | | qu.deal_name, |
| | | qu.deal_time, |
| | | qu.reason_analysis, |
| | | qu.preventive_corrective, |
| | | qu.loss_working, |
| | | qu.loss_material, |
| | | CASE |
| | | WHEN qu.model = pm.id THEN pm.model |
| | | ELSE qu.model |
| | |
| | | qu.deal_result, |
| | | qu.deal_name, |
| | | qu.deal_time, |
| | | qu.reason_analysis, |
| | | qu.preventive_corrective, |
| | | qu.loss_working, |
| | | qu.loss_material, |
| | | CASE |
| | | WHEN qu.model = pm.id THEN pm.model |
| | | ELSE qu.model |
| | |
| | | 1=1 |
| | | and qu.id = #{id} |
| | | </select> |
| | | <select id="getModelId" resultType="java.lang.Long"> |
| | | select pm.id |
| | | from product_model pm |
| | | left join product p on pm.product_id=p.id |
| | | where pm.model=#{model} |
| | | and p.product_name=#{productName} |
| | | </select> |
| | | </mapper> |