| | |
| | | SELECT |
| | | qi.*, |
| | | <choose> |
| | | <when test="qualityInspect.inspectType == 0"> |
| | | <when test="qualityInspect.inspectType != 2"> |
| | | pl.purchase_contract_number as purchase_contract_no |
| | | </when> |
| | | <otherwise> |
| | |
| | | |
| | | </select> |
| | | |
| | | <select id="selectProductModelById" resultType="com.ruoyi.basic.pojo.ProductModel"> |
| | | SELECT id, product_id, model, unit |
| | | FROM product_model |
| | | WHERE id = #{id} |
| | | </select> |
| | | |
| | | <select id="selectProductById" resultType="com.ruoyi.basic.pojo.Product"> |
| | | SELECT id, product_name |
| | | FROM product |
| | | WHERE id = #{id} |
| | | </select> |
| | | |
| | | </mapper> |