|
|
|
@ -86,13 +86,12 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getSelfOroducedProductsAndInventory" resultType="java.util.Map"> |
|
|
|
|
String processingName |
|
|
|
|
select t1.id, t1.processing_name as processingName,t1.inventory_production as inventoryProduction,t1.batch,t1.traceability_code as traceabilityCode |
|
|
|
|
from traceability_product t1 |
|
|
|
|
left join traceability_agricultural_product t2 on t1.cropper_id = t2.id |
|
|
|
|
where t1.deleted = 0 |
|
|
|
|
<if test="processingName != null and processingName != ''"> |
|
|
|
|
and processing_name like concat('%', #{processingName}, '%') |
|
|
|
|
and t1.processing_name like concat('%', #{processingName}, '%') |
|
|
|
|
</if> |
|
|
|
|
and t1.source_type=1 |
|
|
|
|
</select> |
|
|
|
|