| | |
| | | <select id="selectStockOutBypage" resultType="com.ruoyi.inventory.dto.StockoutDto"> |
| | | SELECT |
| | | T1.id, |
| | | T1.product_recordid, |
| | | T1.productrecord_id, |
| | | T1.inbound_time, |
| | | T1.inbound_batch, |
| | | T1.supplier_id, |
| | |
| | | T2.tax_exclusive_total_price, |
| | | T1.user_id, |
| | | T1.tenant_id, |
| | | T2.product_category, |
| | | T2.specification_model, |
| | | T2.unit, |
| | | T6.product_name, |
| | | T5.model, |
| | | T5.unit, |
| | | T3.supplier_name, |
| | | T4.nick_name |
| | | FROM |
| | |
| | | INNER JOIN |
| | | product_record T2 |
| | | ON |
| | | T1.product_recordid = T2.id |
| | | T1.productrecord_id = T2.id |
| | | INNER JOIN |
| | | supplier_manage T3 |
| | | ON |
| | |
| | | sys_user T4 |
| | | ON |
| | | T1.user_id = T4.user_id |
| | | INNER JOIN |
| | | product_model T5 |
| | | ON |
| | | T2.product_model_id = T5.id |
| | | INNER JOIN |
| | | product T6 |
| | | ON |
| | | T2.product_id = T6.id |
| | | <where> |
| | | T2.type = 1 |
| | | <if test="stockOutdto.supplierName != null and stockOutdto.supplierName != ''"> |
| | | AND T3.supplier_name LIKE CONCAT('%', #{stockOutdto.supplierName}, '%') |
| | | </if> |
| | |
| | | T2.tax_exclusive_total_price, |
| | | T1.user_id, |
| | | T1.tenant_id, |
| | | T2.product_category, |
| | | T2.specification_model, |
| | | T2.unit, |
| | | T6.product_name, |
| | | T5.model, |
| | | T5.unit, |
| | | T3.supplier_name, |
| | | T4.nick_name |
| | | FROM |
| | |
| | | sys_user T4 |
| | | ON |
| | | T1.user_id = T4.user_id |
| | | INNER JOIN |
| | | product_model T5 |
| | | ON |
| | | T2.product_model_id = T5.id |
| | | INNER JOIN |
| | | product T6 |
| | | ON |
| | | T2.product_id = T6.id |
| | | <where> |
| | | T2.type = 1 |
| | | <if test="stockOutdto.supplierName != null and stockOutdto.supplierName != ''"> |
| | | AND T3.supplier_name LIKE CONCAT('%', #{stockOutdto.supplierName}, '%') |
| | | </if> |