|
|
@ -50,7 +50,7 @@ |
|
|
|
logpm_basicdata_client lbc |
|
|
|
logpm_basicdata_client lbc |
|
|
|
JOIN logpm_basicdata_storage_services lbss ON lbss.client_id = lbc.id |
|
|
|
JOIN logpm_basicdata_storage_services lbss ON lbss.client_id = lbc.id |
|
|
|
LEFT JOIN logpm_basicdata_store_brand lbsb on lbsb.client_id = lbc.id |
|
|
|
LEFT JOIN logpm_basicdata_store_brand lbsb on lbsb.client_id = lbc.id |
|
|
|
WHERE lbc.client_type = '2' and lbss.serve_warehouse_id = #{id} |
|
|
|
WHERE lbc.client_type = '2' and lbc.is_deleted = 0 and lbss.serve_warehouse_id = #{id} |
|
|
|
GROUP BY lbc.id |
|
|
|
GROUP BY lbc.id |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|